Important: Please read the Qt Code of Conduct -

QtService & RegisterDeviceNotification

  • Hi!
    I wrote Windows service using QtService and try ti use RegisterDeviceNotification (QtServiceSysPrivate::instance->serviceStatus as service handle, guid for usb devices), but RegisterDeviceNotification return false and GetLastError return 1066 - The service has returned a service-specific error code. Can I use RegisterDeviceNotification with QtService? If yes - what I do wrong?

Log in to reply