import { WindowsService } from "https://deno.land/x/windows_service@1.0.11/mod.ts";
WindowsService class for managing Windows services.
Methods
private
cleanup()Stops the service.
Triggered when the dispatcher worker returns
private
logDebug(message: string)Logs a debug message.
private
serviceCtrlHandler(controlCode: number, _eventType: number)Handles service control events.
on(eventName: string, callback: unknown): void
Registers a callback function for a specific event.
run(mainFunction: (argc?: number, argv?: string[]) => Promise<void>)
Main entrypoint for the service.
ServiceMain(argc: number, argv: string[] | null)
ServiceMain function called by Service Control Manager (SCM).
stop()
Stops the service.