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?