1
Answer

How to fefine INVALID_HANDLE_VALUE in C#?

gongdehui

gongdehui

20y
6.4k
1
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)