I'm using WaitForSingleObject(), and at times in my program it
returns the value WAIT_FAILED. Looking at the reference page for the
function, it says to call GetLastErr() to get extended error
information. My questions is, where can I find information about the
values GetLastErr() returns when WaitForSingleObject() fails? If it
helps, I get the value 0x6 from GetLastErr().
Any help is appreciated.
Willy
Valery Barer <val...@netmanage.co.il>
Willy Mene <wbm...@abondigas.engr.ucdavis.edu> wrote in article
<51a3l3$m...@mark.ucdavis.edu>...
Look at the file 'winerr.h' or something like that.
It has three 'cracker' macros to extract the various parts of the error
code: severity, subsystem and code. Then you can look at the massive list
of error codes, subsystems and severities in that file to figure out what
it is.
--
Lucian
Error 6 is ERROR_INVALID_HANDLE.
--
(Note that my return address is intentionally invalid in order
to foil electronic mailing list generation software.)
Take a look at FormatMessage, which will give you a printable text
error message for the normal error codes.
> If it helps, I get the value 0x6 from GetLastErr().
That's the code for an invalid handle.
--
Later,
Jerry.
Joe
Willy Mene <wbm...@abondigas.engr.ucdavis.edu> wrote in article
<51a3l3$m...@mark.ucdavis.edu>...
>
>My questions is, where can I find information about the
> values GetLastErr() returns when WaitForSingleObject() fails? If it
Willy Mene <wbm...@abondigas.engr.ucdavis.edu> wrote in article
<51a3l3$m...@mark.ucdavis.edu>...
>
> I'm using WaitForSingleObject(), and at times in my program it
> returns the value WAIT_FAILED. Looking at the reference page for the
> function, it says to call GetLastErr() to get extended error
> information. My questions is, where can I find information about the
> values GetLastErr() returns when WaitForSingleObject() fails? If it