18#define SERVICE_NAME L"WLAN Service"
69 DPRINT(
"ServiceMain() called\n");
95 DPRINT(
"Can't create RpcThread\n");
103 DPRINT(
"ServiceMain() done\n");
118 DPRINT(
"wlansvc: main() started\n");
122 DPRINT(
"wlansvc: main() done\n");
static SERVICE_STATUS_HANDLE(WINAPI *pRegisterServiceCtrlHandlerExA)(LPCSTR
static SERVICE_TABLE_ENTRYW ServiceTable[2]
#define ERROR_CALL_NOT_IMPLEMENTED
VOID WINAPI ExitThread(IN DWORD uExitCode)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
#define UNREFERENCED_PARAMETER(P)
RPC_STATUS WINAPI RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
BOOL WINAPI StartServiceCtrlDispatcherW(const SERVICE_TABLE_ENTRYW *lpServiceStartTable)
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
DWORD dwServiceSpecificExitCode
SERVICE_STATUS_HANDLE hServiceStatus
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
#define SERVICE_ACCEPT_STOP
#define SERVICE_STOP_PENDING
#define SERVICE_CONTROL_SHUTDOWN
#define SERVICE_START_PENDING
#define SERVICE_CONTROL_STOP
#define SERVICE_ACCEPT_SHUTDOWN
#define SERVICE_CONTROL_INTERROGATE
static WCHAR ServiceName[]
static void UpdateServiceStatus(HANDLE hServiceStatus, DWORD NewStatus, DWORD Increment)
static VOID CALLBACK ServiceMain(DWORD argc, LPWSTR *argv)
static DWORD WINAPI ServiceControlHandler(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext)
SERVICE_STATUS_HANDLE ServiceStatusHandle
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
#define SERVICE_WIN32_OWN_PROCESS