How to fefine INVALID_HANDLE_VALUE in C#?
In the follow code:
hDevInfo = SetupDiGetClassDevs(ptrGUID,
null,
null,
DIGCF_PRESENT|DIGCF_DEVICEINTERFACE);
if( hDevInfo == INVALID_HANDLE_VALUE)
{
MessageBox.Show("Can not get information set of this device class!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
how to define INVALID_HANDLE_VALUE in my c# code?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

bilnaadRank #2,169 · 655 reputationPosted Oct 25, 2004, 10:24 AM EDT