Skip to content

Support extended control codes with windows-services #3610

@edvard-pettersen-elas-ai

Description

Suggestion

Currently the windows-services crate only supports regular service control codes due to using RegisterServiceCtrlHandlerW. Having support for the extended control codes would be needed for certain types of events, which requires the event handler to be registered with RegisterServiceCtrlHandlerExW.

Specifically, the support for the following extended control codes are requested:

  • SERVICE_CONTROL_DEVICEEVENT
  • SERVICE_CONTROL_HARDWAREPROFILECHANGE
  • SERVICE_CONTROL_POWEREVENT
  • SERVICE_CONTROL_SESSIONCHANGE
  • SERVICE_CONTROL_TIMECHANGE
  • SERVICE_CONTROL_TRIGGEREVENT
  • SERVICE_CONTROL_USERMODEREBOOT

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions