Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
2.2 KiB

#include "stdafx.h"
int InetIsThisExeAService(LPCTSTR lpFileNameToCheck, LPTSTR lpReturnServiceName);
int InetIsThisExeAService_Worker(LPCTSTR lpServiceName, LPCTSTR lpFileNameToCheck);
INT InetDisableService( LPCTSTR lpServiceName );
INT InetStartService( LPCTSTR lpServiceName );
DWORD InetQueryServiceStatus( LPCTSTR lpServiceName );
INT InetStopService( LPCTSTR lpServiceName );
INT InetDeleteService( LPCTSTR lpServiceName );
INT InetCreateService( LPCTSTR lpServiceName, LPCTSTR lpDisplayName, LPCTSTR lpBinaryPathName, DWORD dwStartType, LPCTSTR lpDependencies);
INT InetCreateDriver(LPCTSTR lpServiceName, LPCTSTR lpDisplayName, LPCTSTR lpBinaryPathName, DWORD dwStartType);
INT InetConfigService( LPCTSTR lpServiceName, LPCTSTR lpDisplayName, LPCTSTR lpBinaryPathName, LPCTSTR lpDependencies);
BOOL InetRegisterService(LPCTSTR pszMachine, LPCTSTR pszServiceName, GUID *pGuid, DWORD SapId, DWORD TcpPort, BOOL fAdd = TRUE);
DWORD RetrieveServiceConfig(IN SC_HANDLE ServiceHandle,OUT LPQUERY_SERVICE_CONFIG *ServiceConfig);
INT CheckifServiceExist( LPCTSTR lpServiceName );
INT CheckifServiceExistAndDependencies( LPCTSTR lpServiceName );
INT CheckifServiceMarkedForDeletion( LPCTSTR lpServiceName );
int ValidateDependentService(LPCTSTR lpServiceToValidate, LPCTSTR lpServiceWhichIsDependent);
int StopServiceAndDependencies(LPCTSTR ServiceName, int AddToRestartList);
int KillService(SC_HANDLE ServiceHandle);
INT InetConfigServiceInteractive(LPCTSTR lpServiceName, int AddInteractive);
DWORD CreateDriver_Wrap(CString csDriverName, CString csDisplayName, CString csFileName,BOOL bDisplayMsgOnErrFlag);
DWORD CreateService_wrap(CString csServiceName, CString csDisplayName, CString csBinPath, CString csDependencies, CString csDescription, BOOL bDisplayMsgOnErrFlag);
int ServicesRestartList_Add(LPCTSTR szServiceName);
int ServicesRestartList_EntryExists(LPCTSTR szServiceName);
int ServicesRestartList_RestartServices(void);
int IsThisServiceADriver(LPCTSTR lpServiceName);
void SetServiceStart(LPTSTR szServiceName, DWORD dwServiceStart);
BOOL IsServiceDisabled(LPTSTR szServiceName);
BOOL ChangeServiceDependency(LPTSTR szServiceName, BOOL bAddDependency, LPTSTR szDependantService);