NotifyServiceStatusChange

[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool NotifyServiceStatusChange(
   IntPtr hService,
   uint dwNotifyMask,
   ref SERVICE_NOTIFY StatusInfo,
   IntPtr pfnNotifyCallback,
   IntPtr pContext
);

Microsoft documentation: Link

Last updated