Home | History | Annotate | Download | only in SystemService

Lines Matching refs:scm

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