public static interface Winsvc.SERVICE_MAIN_FUNCTION extends StdCallLibrary.StdCallCallback
Callback.UncaughtExceptionHandler
FORBIDDEN_NAMES, METHOD_NAME
Modifier and Type | Method and Description |
---|---|
void |
callback(int dwArgc,
Pointer lpszArgv) |
void callback(int dwArgc, Pointer lpszArgv)
dwArgc
- [in] The number of arguments in the lpszArgv array.lpszArgv
- [in] The null-terminated argument strings passed to
the service by the call to the StartService function
that started the service. If there are no arguments,
this parameter can be NULL. Otherwise, the first
argument (lpszArgv[0]) is the name of the service,
followed by any additional arguments (lpszArgv[1]
through lpszArgv[dwArgc-1]).
If the user starts a manual service using the Services snap-in from the Control Panel, the strings for the lpszArgv parameter come from the properties dialog box for the service (from the Services snap-in, right-click the service entry, click Properties, and enter the parameters in Start parameters.)