NotifyServiceStatusChange function advapi32

int NotifyServiceStatusChange(
  1. int hService,
  2. int dwNotifyMask,
  3. Pointer<SERVICE_NOTIFY_2> pNotifyBuffer
)

Enables an application to receive notification when the specified service is created or deleted or when its status changes.

DWORD NotifyServiceStatusChangeW(
  [in] SC_HANDLE        hService,
  [in] DWORD            dwNotifyMask,
  [in] PSERVICE_NOTIFYW pNotifyBuffer
);

Implementation

int NotifyServiceStatusChange(int hService, int dwNotifyMask,
        Pointer<SERVICE_NOTIFY_2> pNotifyBuffer) =>
    _NotifyServiceStatusChange(hService, dwNotifyMask, pNotifyBuffer);