Click here to Skip to main content
15,921,548 members
Home / Discussions / System Admin
   

System Admin

 
GeneralW2K3 Remote Desktop Web Connection Pin
nvethis7-Oct-04 7:36
nvethis7-Oct-04 7:36 
GeneralRe: W2K3 Remote Desktop Web Connection Pin
Mekong River7-Mar-06 12:19
Mekong River7-Mar-06 12:19 
GeneralIIS Exception Monitor Pin
Gavin Jeffrey7-Oct-04 5:25
Gavin Jeffrey7-Oct-04 5:25 
GeneralRe: IIS Exception Monitor Pin
Mekong River8-Oct-04 4:09
Mekong River8-Oct-04 4:09 
GeneralError Reporting in Batch File Pin
Its due when6-Oct-04 15:15
Its due when6-Oct-04 15:15 
GeneralRe: Error Reporting in Batch File Pin
Mekong River7-Oct-04 3:38
Mekong River7-Oct-04 3:38 
GeneralWhy would OpenEvent() API call on Windows2000 fail with GetLastError returning error = 2 => ERROR_FILE_NOT_FOUND Pin
SimCard6-Oct-04 4:23
SimCard6-Oct-04 4:23 
GeneralRe: Why would OpenEvent() API call on Windows2000 fail with GetLastError returning error = 2 => ERROR_FILE_NOT_FOUND Pin
Mike Dimmick8-Oct-04 14:01
Mike Dimmick8-Oct-04 14:01 
If you're trying to use the same event from two (or more) threads in the same app, simply use the same handle. Keep the handle in a global location, or pass it into the ThreadProc.

If you're trying to use the same event from two (or more) different apps (or instances of the same app), you'd typically call CreateEvent in each app's code. If you need to know whether this call actually created it, call GetLastError immediately after CreateEvent succeeds. If this call created the object, it will return 0 (ERROR_SUCCESS). If the object already existed, it will return ERROR_ALREADY_EXISTS.

I've never used OpenEvent.

I suspect the problem you're running into is some form of race condition - either the creator hasn't created it yet, or the other apps have quit and there are no handles open to it, so the kernel deletes it.

Stability. What an interesting concept. -- Chris Maunder
GeneralQuery AD for locked Accounts Pin
Anonymous5-Oct-04 23:43
Anonymous5-Oct-04 23:43 
GeneralRe: Query AD for locked Accounts Pin
Mekong River6-Oct-04 0:02
Mekong River6-Oct-04 0:02 
GeneralSimple Question On Drives Pin
sweep1235-Oct-04 23:39
sweep1235-Oct-04 23:39 
GeneralRe: Simple Question On Drives Pin
Mekong River5-Oct-04 23:57
Mekong River5-Oct-04 23:57 
GeneralRe: Simple Question On Drives Pin
sweep1236-Oct-04 1:58
sweep1236-Oct-04 1:58 
GeneralRe: Simple Question On Drives Pin
Mekong River6-Oct-04 4:31
Mekong River6-Oct-04 4:31 
GeneralRe: Simple Question On Drives Pin
Nathan Holt at EMOM6-Oct-04 5:48
Nathan Holt at EMOM6-Oct-04 5:48 
GeneralUninstalling Windows Services without original installer binary Pin
devvvy5-Oct-04 15:51
devvvy5-Oct-04 15:51 
GeneralRe: Uninstalling Windows Services without original installer binary Pin
Vasudevan Deepak Kumar8-Oct-04 4:28
Vasudevan Deepak Kumar8-Oct-04 4:28 
GeneralRe: Uninstalling Windows Services without original installer binary Pin
devvvy8-Oct-04 13:39
devvvy8-Oct-04 13:39 
GeneralITS URGENT ! Pin
zeemalik4-Oct-04 19:53
zeemalik4-Oct-04 19:53 
GeneralRe: ITS URGENT ! Pin
Roger Wright4-Oct-04 21:23
professionalRoger Wright4-Oct-04 21:23 
GeneralRe: ITS URGENT ! Pin
Mekong River4-Oct-04 23:56
Mekong River4-Oct-04 23:56 
GeneralRe: ITS URGENT ! Pin
Roger Wright5-Oct-04 3:57
professionalRoger Wright5-Oct-04 3:57 
GeneralRe: ITS URGENT ! Pin
benjymous5-Oct-04 5:01
benjymous5-Oct-04 5:01 
GeneralRunning Multiple Batch files Pin
Its due when4-Oct-04 19:47
Its due when4-Oct-04 19:47 
GeneralRe: Running Multiple Batch files Pin
Roger Wright4-Oct-04 21:29
professionalRoger Wright4-Oct-04 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.