1
Reply

How to fefine INVALID_HANDLE_VALUE in C#?

gongdehui

gongdehui

Oct 24 2004 11:24 PM
6.4k
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?

Answers (1)