gongdehui

gongdehui

  • NA
  • 63
  • 0

How to fefine INVALID_HANDLE_VALUE in C#?

Oct 24 2004 11:24 PM
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)