Process Hacker
sbiedll.h
Go to the documentation of this file.
1 #ifndef SBIEDLL_H
2 #define SBIEDLL_H
3 
4 #define PLUGIN_NAME L"ProcessHacker.SbieSupport"
5 #define SETTING_NAME_SBIE_DLL_PATH (PLUGIN_NAME L".SbieDllPath")
6 
7 typedef LONG (__stdcall *P_SbieApi_QueryBoxPath)(
8  const WCHAR *box_name, // pointer to WCHAR [34]
9  WCHAR *file_path,
10  WCHAR *key_path,
11  WCHAR *ipc_path,
12  ULONG *file_path_len,
13  ULONG *key_path_len,
14  ULONG *ipc_path_len);
15 
16 typedef LONG (__stdcall *P_SbieApi_EnumBoxes)(
17  LONG index, // initialize to -1
18  WCHAR *box_name); // pointer to WCHAR [34]
19 
20 typedef LONG (__stdcall *P_SbieApi_EnumProcessEx)(
21  const WCHAR *box_name, // pointer to WCHAR [34]
22  BOOLEAN all_sessions,
23  ULONG which_session,
24  ULONG *boxed_pids); // pointer to ULONG [512]
25 
26 typedef BOOLEAN (__stdcall *P_SbieDll_KillAll)(
27  ULONG session_id,
28  const WCHAR *box_name);
29 
30 #ifdef _WIN64
31 #define SbieApi_QueryBoxPath_Name "SbieApi_QueryBoxPath"
32 #define SbieApi_EnumBoxes_Name "SbieApi_EnumBoxes"
33 #define SbieApi_EnumProcessEx_Name "SbieApi_EnumProcessEx"
34 #define SbieDll_KillAll_Name "SbieDll_KillAll"
35 #else
36 #define SbieApi_QueryBoxPath_Name "_SbieApi_QueryBoxPath@28"
37 #define SbieApi_EnumBoxes_Name "_SbieApi_EnumBoxes@8"
38 #define SbieApi_EnumProcessEx_Name "_SbieApi_EnumProcessEx@16"
39 #define SbieDll_KillAll_Name "_SbieDll_KillAll@8"
40 #endif
41 
42 #endif