Re: How to Valid Event Handle
From: Michael J. Salamone [eMVP] (mikesa#at#entrek#dot#com)
Date: 03/29/04
- Next message: Kent Lottis [MS]: "Re: How to Valid Event Handle"
- Previous message: Bruce Eitman \(eMVP\): "Re: How do I stop stuff from being on the desktop?"
- In reply to: John: "How to Valid Event Handle"
- Next in thread: Kent Lottis [MS]: "Re: How to Valid Event Handle"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 09:18:29 -0800
Use DuplicateHandle() itself. It will return FALSE on any error. You could
then call GetLastError() to get a specific error code, which, in the case
you mention, should be ERROR_INVALID_HANDLE.
-- Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell Microsoft! https://www.windowsembeddedeval.com/community/newsgroups Michael Salamone [eMVP] Entrek Software, Inc. www.entrek.com "John" <jvasquez@spam.getntds.com> wrote in message news:edkg601udr2sn8mcqiv41un4d7goglgddh@4ax.com... > PB4.20 > Developing a PCI Device Driver. Receive Event handler from Application via > ioctl. Call DuplicateHandler() to obtain a handle that I can use in the IST to > signal the application when the interrupt occurs. > How can the IST verify that the handle is valid? It's possible that the > application has terminated or closed the handle. > > JV
- Next message: Kent Lottis [MS]: "Re: How to Valid Event Handle"
- Previous message: Bruce Eitman \(eMVP\): "Re: How do I stop stuff from being on the desktop?"
- In reply to: John: "How to Valid Event Handle"
- Next in thread: Kent Lottis [MS]: "Re: How to Valid Event Handle"
- Messages sorted by: [ date ] [ thread ]