rem: Ns_Log(Notice, "nswin32: removing service '%s'", name.string);
context: NsRemoveService(void){    SC_HANDLE       hmgr, hsrv;    SERVICE_STATUS  status;    Ns_DString	    name;    BOOL            ok;    Ns_DStringInit(&name);    GetServiceName(&name);    Ns_Log(Notice, "nswin32: removing service '%s'", name.string);    ok = FALSE;    hmgr = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);    if (hmgr != NULL) {        hsrv = OpenService(hmgr, name.string, SERVICE_ALL_ACCESS);        if (hsrv != NULL) {            ControlService(hsrv, SERVICE_CONTROL_STOP, &status);            ok = DeleteService(hsrv);            CloseServiceHandle(hsrv);        }        CloseServiceHandle(hmgr);    }    if (!ok) {	Ns_Log(Error, "nswin32: failed to remove service '%s': '%s'",	       name.string, SysErrMsg());    }    Ns_DStringFree(&name);    return (ok ? NS_OK : NS_ERROR);}