RegisterDeviceNotification(Handle,   &DevInt,   DEVICE_NOTIFY_WINDOW_HANDLE);   这里有个参数是handle,请问,在win32 console里怎么处理?谢谢

解决方案 »

  1.   

    Handle:
    Handle to the window or service 
    Services can specify either a window handle or service status handle. 
    service status handle:CALLBACK
    Flags 
    [in] This parameter can be one of the following valuesDEVICE_NOTIFY_WINDOW_HANDLE The hRecipient parameter is a window handle. 
    DEVICE_NOTIFY_SERVICE_HANDLE The hRecipient parameter is a service status handle.