Lines Matching refs:scm
390 SC_HANDLE scm; in InstallService() local
397 scm = NULL; in InstallService()
408 scm = OpenSCManager( NULL, NULL, SC_MANAGER_ALL_ACCESS ); in InstallService()
409 err = translate_errno( scm, (OSStatus) GetLastError(), kOpenErr ); in InstallService()
412 …service = CreateService( scm, inName, inDisplayName, SERVICE_ALL_ACCESS, SERVICE_WIN32_SHARE_PROCE… in InstallService()
423 err = SetServiceInfo( scm, inName, inDescription ); in InstallService()
439 if( scm ) in InstallService()
441 CloseServiceHandle( scm ); in InstallService()
453 SC_HANDLE scm; in RemoveService() local
458 scm = NULL; in RemoveService()
463 scm = OpenSCManager( 0, 0, SC_MANAGER_ALL_ACCESS ); in RemoveService()
464 err = translate_errno( scm, (OSStatus) GetLastError(), kOpenErr ); in RemoveService()
467 service = OpenService( scm, inName, SERVICE_STOP | SERVICE_QUERY_STATUS | DELETE ); in RemoveService()
495 if( scm ) in RemoveService()
497 CloseServiceHandle( scm ); in RemoveService()