52 _tprintf(
_T(
"Remote service control is not yet implemented\n"));
156 Create(ServiceArgs, ArgCount);
167 if (!
lstrcmpi(ServiceArgs[0],
_T(
"paramchange")))
169 else if (!
lstrcmpi(ServiceArgs[0],
_T(
"netbindadd")))
171 else if (!
lstrcmpi(ServiceArgs[0],
_T(
"netbindremove")))
173 else if (!
lstrcmpi(ServiceArgs[0],
_T(
"netbindenable")))
175 else if (!
lstrcmpi(ServiceArgs[0],
_T(
"netbinddisable")))
348 if ((
argv[1][0] ==
'\\') && (
argv[1][1] ==
'\\'))
BOOL GetKeyName(LPWSTR pszDest, size_t iDestLength, HKEY hRootKey, LPCWSTR lpSubKey)
BOOL QueryConfig(LPCTSTR ServiceName)
BOOL SetConfig(LPCTSTR *ServiceArgs, INT ArgCount)
BOOL Delete(LPCTSTR ServiceName)
BOOL GetDisplayName(LPCTSTR ServiceName)
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended)
static WCHAR ServiceName[]
BOOL EnumDepend(LPCTSTR ServiceName)
BOOL SetDescription(LPCTSTR ServiceName, LPCTSTR Description)
BOOL QueryDescription(LPCTSTR ServiceName)
static const WCHAR Description[]
BOOL SetFailure(LPCTSTR *ServiceArgs, INT ArgCount)
BOOL QueryFailure(LPCTSTR ServiceName)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
DWORD ReportLastError(void)
_In_ NDIS_ERROR_CODE ErrorCode
static INT ScControl(LPCTSTR Server, LPCTSTR Command, LPCTSTR *ServiceArgs, DWORD ArgCount)
VOID QueryConfigUsage(VOID)
VOID QueryFailureUsage(VOID)
VOID SetDescriptionUsage(VOID)
BOOL SdSet(LPCTSTR ServiceName, LPCTSTR SecurityDescriptor)
VOID QueryDescriptionUsage(VOID)
VOID GetDisplayNameUsage(VOID)
VOID EnumDependUsage(VOID)
VOID InterrogateUsage(VOID)
BOOL SdShow(LPCTSTR ServiceName)
VOID GetKeyNameUsage(VOID)
static void Server(int port)
_In_ WDF_WMI_PROVIDER_CONTROL Control
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define SERVICE_CONTROL_PARAMCHANGE
#define SERVICE_CONTROL_NETBINDREMOVE
#define SERVICE_CONTROL_NETBINDADD
#define SERVICE_CONTROL_NETBINDDISABLE
#define SERVICE_CONTROL_NETBINDENABLE
#define SERVICE_CONTROL_CONTINUE
#define SERVICE_CONTROL_STOP
#define SERVICE_CONTROL_PAUSE
#define SERVICE_CONTROL_INTERROGATE
_IRQL_requires_same_ typedef _In_ ULONG ControlCode
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor