Process Hacker
phsvcapi.h File Reference

Go to the source code of this file.

Data Structures

struct  _PHSVC_API_CONNECTINFO
 
union  _PHSVC_API_PLUGIN
 
union  _PHSVC_API_EXECUTERUNASCOMMAND
 
union  _PHSVC_API_UNLOADDRIVER
 
union  _PHSVC_API_CONTROLPROCESS
 
union  _PHSVC_API_CONTROLSERVICE
 
union  _PHSVC_API_CREATESERVICE
 
union  _PHSVC_API_CHANGESERVICECONFIG
 
union  _PHSVC_API_CHANGESERVICECONFIG2
 
union  _PHSVC_API_SETTCPENTRY
 
union  _PHSVC_API_CONTROLTHREAD
 
union  _PHSVC_API_ADDACCOUNTRIGHT
 
union  _PHSVC_API_ISSUEMEMORYLISTCOMMAND
 
union  _PHSVC_API_POSTMESSAGE
 
union  _PHSVC_API_CREATEPROCESSIGNOREIFEODEBUGGER
 
union  _PHSVC_API_SETSERVICESECURITY
 
union  _PHSVC_API_LOADDBGHELP
 
union  _PHSVC_API_WRITEMINIDUMPPROCESS
 
union  _PHSVC_API_PAYLOAD
 
struct  _PHSVC_API_MSG
 
struct  _PHSVC_API_MSG64
 

Macros

#define PHSVC_PORT_NAME   (L"\\BaseNamedObjects\\PhSvcApiPort")
 
#define PHSVC_WOW64_PORT_NAME   (L"\\BaseNamedObjects\\PhSvcWow64ApiPort")
 

Typedefs

typedef enum _PHSVC_API_NUMBER PHSVC_API_NUMBER
 
typedef enum _PHSVC_API_NUMBERPPHSVC_API_NUMBER
 
typedef struct
_PHSVC_API_CONNECTINFO 
PHSVC_API_CONNECTINFO
 
typedef struct
_PHSVC_API_CONNECTINFO
PPHSVC_API_CONNECTINFO
 
typedef union _PHSVC_API_PLUGIN PHSVC_API_PLUGIN
 
typedef union _PHSVC_API_PLUGINPPHSVC_API_PLUGIN
 
typedef union
_PHSVC_API_EXECUTERUNASCOMMAND 
PHSVC_API_EXECUTERUNASCOMMAND
 
typedef union
_PHSVC_API_EXECUTERUNASCOMMAND
PPHSVC_API_EXECUTERUNASCOMMAND
 
typedef union
_PHSVC_API_UNLOADDRIVER 
PHSVC_API_UNLOADDRIVER
 
typedef union
_PHSVC_API_UNLOADDRIVER
PPHSVC_API_UNLOADDRIVER
 
typedef enum
_PHSVC_API_CONTROLPROCESS_COMMAND 
PHSVC_API_CONTROLPROCESS_COMMAND
 
typedef union
_PHSVC_API_CONTROLPROCESS 
PHSVC_API_CONTROLPROCESS
 
typedef union
_PHSVC_API_CONTROLPROCESS
PPHSVC_API_CONTROLPROCESS
 
typedef enum
_PHSVC_API_CONTROLSERVICE_COMMAND 
PHSVC_API_CONTROLSERVICE_COMMAND
 
typedef union
_PHSVC_API_CONTROLSERVICE 
PHSVC_API_CONTROLSERVICE
 
typedef union
_PHSVC_API_CONTROLSERVICE
PPHSVC_API_CONTROLSERVICE
 
typedef union
_PHSVC_API_CREATESERVICE 
PHSVC_API_CREATESERVICE
 
typedef union
_PHSVC_API_CREATESERVICE
PPHSVC_API_CREATESERVICE
 
typedef union
_PHSVC_API_CHANGESERVICECONFIG 
PHSVC_API_CHANGESERVICECONFIG
 
typedef union
_PHSVC_API_CHANGESERVICECONFIG
PPHSVC_API_CHANGESERVICECONFIG
 
typedef union
_PHSVC_API_CHANGESERVICECONFIG2 
PHSVC_API_CHANGESERVICECONFIG2
 
typedef union
_PHSVC_API_CHANGESERVICECONFIG2
PPHSVC_API_CHANGESERVICECONFIG2
 
typedef union
_PHSVC_API_SETTCPENTRY 
PHSVC_API_SETTCPENTRY
 
typedef union
_PHSVC_API_SETTCPENTRY
PPHSVC_API_SETTCPENTRY
 
typedef enum
_PHSVC_API_CONTROLTHREAD_COMMAND 
PHSVC_API_CONTROLTHREAD_COMMAND
 
typedef union
_PHSVC_API_CONTROLTHREAD 
PHSVC_API_CONTROLTHREAD
 
typedef union
_PHSVC_API_CONTROLTHREAD
PPHSVC_API_CONTROLTHREAD
 
typedef union
_PHSVC_API_ADDACCOUNTRIGHT 
PHSVC_API_ADDACCOUNTRIGHT
 
typedef union
_PHSVC_API_ADDACCOUNTRIGHT
PPHSVC_API_ADDACCOUNTRIGHT
 
typedef union
_PHSVC_API_ISSUEMEMORYLISTCOMMAND 
PHSVC_API_ISSUEMEMORYLISTCOMMAND
 
typedef union
_PHSVC_API_ISSUEMEMORYLISTCOMMAND
PPHSVC_API_ISSUEMEMORYLISTCOMMAND
 
typedef union
_PHSVC_API_POSTMESSAGE 
PHSVC_API_POSTMESSAGE
 
typedef union
_PHSVC_API_POSTMESSAGE
PPHSVC_API_POSTMESSAGE
 
typedef union
_PHSVC_API_CREATEPROCESSIGNOREIFEODEBUGGER 
PHSVC_API_CREATEPROCESSIGNOREIFEODEBUGGER
 
typedef union
_PHSVC_API_CREATEPROCESSIGNOREIFEODEBUGGER
PPHSVC_API_CREATEPROCESSIGNOREIFEODEBUGGER
 
typedef union
_PHSVC_API_SETSERVICESECURITY 
PHSVC_API_SETSERVICESECURITY
 
typedef union
_PHSVC_API_SETSERVICESECURITY
PPHSVC_API_SETSERVICESECURITY
 
typedef union
_PHSVC_API_LOADDBGHELP 
PHSVC_API_LOADDBGHELP
 
typedef union
_PHSVC_API_LOADDBGHELP
PPHSVC_API_LOADDBGHELP
 
typedef union
_PHSVC_API_WRITEMINIDUMPPROCESS 
PHSVC_API_WRITEMINIDUMPPROCESS
 
typedef union
_PHSVC_API_WRITEMINIDUMPPROCESS
PPHSVC_API_WRITEMINIDUMPPROCESS
 
typedef union _PHSVC_API_PAYLOAD PHSVC_API_PAYLOAD
 
typedef union _PHSVC_API_PAYLOADPPHSVC_API_PAYLOAD
 
typedef struct _PHSVC_API_MSG PHSVC_API_MSG
 
typedef struct _PHSVC_API_MSGPPHSVC_API_MSG
 
typedef struct _PHSVC_API_MSG64 PHSVC_API_MSG64
 
typedef struct _PHSVC_API_MSG64PPHSVC_API_MSG64
 

Enumerations

enum  _PHSVC_API_NUMBER {
  PhSvcPluginApiNumber = 1, PhSvcExecuteRunAsCommandApiNumber = 2, PhSvcUnloadDriverApiNumber = 3, PhSvcControlProcessApiNumber = 4,
  PhSvcControlServiceApiNumber = 5, PhSvcCreateServiceApiNumber = 6, PhSvcChangeServiceConfigApiNumber = 7, PhSvcChangeServiceConfig2ApiNumber = 8,
  PhSvcSetTcpEntryApiNumber = 9, PhSvcControlThreadApiNumber = 10, PhSvcAddAccountRightApiNumber = 11, PhSvcInvokeRunAsServiceApiNumber = 12,
  PhSvcIssueMemoryListCommandApiNumber = 13, PhSvcPostMessageApiNumber = 14, PhSvcSendMessageApiNumber = 15, PhSvcCreateProcessIgnoreIfeoDebuggerApiNumber = 16,
  PhSvcSetServiceSecurityApiNumber = 17, PhSvcLoadDbgHelpApiNumber = 18, PhSvcWriteMiniDumpProcessApiNumber = 19, PhSvcMaximumApiNumber
}
 
enum  _PHSVC_API_CONTROLPROCESS_COMMAND {
  PhSvcControlProcessTerminate = 1, PhSvcControlProcessSuspend, PhSvcControlProcessResume, PhSvcControlProcessPriority,
  PhSvcControlProcessIoPriority
}
 
enum  _PHSVC_API_CONTROLSERVICE_COMMAND {
  PhSvcControlServiceStart = 1, PhSvcControlServiceContinue, PhSvcControlServicePause, PhSvcControlServiceStop,
  PhSvcControlServiceDelete
}
 
enum  _PHSVC_API_CONTROLTHREAD_COMMAND { PhSvcControlThreadTerminate = 1, PhSvcControlThreadSuspend, PhSvcControlThreadResume, PhSvcControlThreadIoPriority }
 

Functions

 C_ASSERT (FIELD_OFFSET(PHSVC_API_PAYLOAD, u)==8)
 
 C_ASSERT (sizeof(PHSVC_API_MSG)<=PORT_TOTAL_MAXIMUM_MESSAGE_LENGTH)
 
 C_ASSERT (sizeof(PHSVC_API_MSG64)<=PORT_TOTAL_MAXIMUM_MESSAGE_LENGTH)
 

Macro Definition Documentation

#define PHSVC_PORT_NAME   (L"\\BaseNamedObjects\\PhSvcApiPort")

Definition at line 4 of file phsvcapi.h.

#define PHSVC_WOW64_PORT_NAME   (L"\\BaseNamedObjects\\PhSvcWow64ApiPort")

Definition at line 5 of file phsvcapi.h.

Typedef Documentation

typedef struct _PHSVC_API_MSG PHSVC_API_MSG
typedef struct _PHSVC_API_MSG * PPHSVC_API_MSG

Enumeration Type Documentation

Enumerator:
PhSvcControlProcessTerminate 
PhSvcControlProcessSuspend 
PhSvcControlProcessResume 
PhSvcControlProcessPriority 
PhSvcControlProcessIoPriority 

Definition at line 76 of file phsvcapi.h.

Enumerator:
PhSvcControlServiceStart 
PhSvcControlServiceContinue 
PhSvcControlServicePause 
PhSvcControlServiceStop 
PhSvcControlServiceDelete 

Definition at line 95 of file phsvcapi.h.

Enumerator:
PhSvcControlThreadTerminate 
PhSvcControlThreadSuspend 
PhSvcControlThreadResume 
PhSvcControlThreadIoPriority 

Definition at line 180 of file phsvcapi.h.

Enumerator:
PhSvcPluginApiNumber 
PhSvcExecuteRunAsCommandApiNumber 
PhSvcUnloadDriverApiNumber 
PhSvcControlProcessApiNumber 
PhSvcControlServiceApiNumber 
PhSvcCreateServiceApiNumber 
PhSvcChangeServiceConfigApiNumber 
PhSvcChangeServiceConfig2ApiNumber 
PhSvcSetTcpEntryApiNumber 
PhSvcControlThreadApiNumber 
PhSvcAddAccountRightApiNumber 
PhSvcInvokeRunAsServiceApiNumber 
PhSvcIssueMemoryListCommandApiNumber 
PhSvcPostMessageApiNumber 
PhSvcSendMessageApiNumber 
PhSvcCreateProcessIgnoreIfeoDebuggerApiNumber 
PhSvcSetServiceSecurityApiNumber 
PhSvcLoadDbgHelpApiNumber 
PhSvcWriteMiniDumpProcessApiNumber 
PhSvcMaximumApiNumber 

Definition at line 7 of file phsvcapi.h.

Function Documentation

C_ASSERT ( FIELD_OFFSET(PHSVC_API_PAYLOAD, u)  = =8)
C_ASSERT ( sizeof(PHSVC_API_MSG)<=  PORT_TOTAL_MAXIMUM_MESSAGE_LENGTH)
C_ASSERT ( sizeof(PHSVC_API_MSG64)<=  PORT_TOTAL_MAXIMUM_MESSAGE_LENGTH)