📄 cemgr.h
字号:
/* interface __MIDL_itf_cemgr_0000 */
/* [local] */
// error codes
//
static const int E_BAD_PARAM = MAKE_HRESULT(1, FACILITY_ITF, 0x01);
static const int E_DUPLICATE = MAKE_HRESULT(1, FACILITY_ITF, 0x02);
static const int E_BUSY = MAKE_HRESULT(1, FACILITY_ITF, 0x03);
static const int E_BAD_CONFIG = MAKE_HRESULT(1, FACILITY_ITF, 0x04);
static const int E_NOSYSFILES = MAKE_HRESULT(1, FACILITY_ITF, 0x05);
static const int E_TIMEOUT = MAKE_HRESULT(1, FACILITY_ITF, 0x06);
static const int E_REFED = MAKE_HRESULT(1, FACILITY_ITF, 0x07);
static const int E_VERIFY = MAKE_HRESULT(1, FACILITY_ITF, 0x01);
static const int E_EXISTS = MAKE_HRESULT(1, FACILITY_ITF, 0x02);
static const int E_REGISTER = MAKE_HRESULT(1, FACILITY_ITF, 0x03);
static const int E_SKIP = MAKE_HRESULT(1, FACILITY_ITF, 0x01);
static const GUID PROPID_CURRENT_CONNECTION = {0xc5562463, 0xa1cc, 0x4b78, { 0xb7, 0xe2, 0xf2, 0x7, 0x9, 0xd2, 0xf7, 0x9d}};
static const wchar_t PROPINFO_BOOTABLE_DEVICE[] = L"CurrentDevice";
static const wchar_t PROPINFO_IMAGE[] = L"Image";
static const GUID CEMGRC2_ID = { 0x69793847, 0x677e, 0x4658, { 0x92, 0xd3, 0xb3, 0x2a, 0x2e, 0xd1, 0x3f, 0xe4 } };
static const GUID PROPID_UNIVERSAL_SDK = { 0x1315cf7c, 0xd79b, 0x47e8, { 0xa1, 0x41, 0xcc, 0x39, 0x65, 0x4e, 0x76, 0x7f } };
static const wchar_t PROPINFO_TUSDK[] = L"TUSDK";
static const wchar_t PROPVALUE_UNIVERSAL[] = L"Universal";
static const wchar_t PROPVALUE_PARENTS[] = L"Parents";
static const GUID PROP_SERIAL_GUID = { 0xEC345961, 0x5500, 0x4d8e, { 0x8C, 0x27, 0x38, 0x75, 0x42, 0xFA, 0xB8, 0x12 } };
static const wchar_t PROP_SERIAL_STRING[] = L"{EC345961-5500-4d8e-8C27-387542FAB812}";
static const GUID PROPID_CFG_REM_SRV = { 0x44f1dbd2, 0x16c1, 0x4e8a, { 0x9b, 0xc2, 0x3, 0xe6, 0x6a, 0xdb, 0x3, 0xe } };
static const wchar_t PROPINFONAME_PROCID[] = L"Process ID messages";
static const wchar_t PROPINFONAME_THRDID[] = L"Thread ID messages";
static const wchar_t PROPINFONAME_TSTAMP[] = L"Time stamp messages";
static const wchar_t PROPINFONAME_DLOAD[] = L"Download Image";
static const wchar_t PROPINFONAME_JUMP[] = L"Jump to Image";
static const wchar_t PROPINFONAME_CONNNECT[] = L"Connect On Download";
static const wchar_t PROPINFONAME_HARDWARE[] = L"Hardware Debugger";
static const wchar_t PROPINFONAME_DBGMSGFILENAME[] = L"Dbg Msg Filename";
static const wchar_t PROPINFONAME_SENDDBGMSGOUTPUT[] = L"Send Dbg Output";
static const wchar_t PROPINFONAME_DOWNLOAD_CFGSETTING[] = L"Download Config Setting";
static const wchar_t PROPINFONAME_KERNEL_CFGSETTING[] = L"Kernel Config Setting";
static const wchar_t PROPINFONAME_HARDWARE_DBG_GUID[] = L"eXdi Driver GUID";
static const wchar_t PROPINFONAME_HARDWARE_DBG_DESC[] = L"eXdi Driver Name";
static const wchar_t PROPINFONAME_COLDBOOT[] = L"Cold Reboot";
static const wchar_t PROPINFONAME_RESET_DL_ALWAYS[] = L"Reset DL Always";
static const wchar_t PROPINFONAME_RESET_DL_IMAGE_CHANGE[] = L"Reset DL Image Change";
static const wchar_t PROPINFONAME_RESET_JTI_ONLY[] = L"Reset JTI Only";
static const wchar_t PROPINFONAMR_LAST_OPEN_BIN_IMAGE[] = L"Last Open Bin Image";
static const wchar_t PROPINFONAME_SENDDBGMSGOUTPUTWINDOW[] = L"Send Dbg Output Window";
static const wchar_t PROPINFONAME_SENDDBGMSGOUTPUTWINDOWNL[] = L"DBGMSG append new line";
static const wchar_t PROPINFONAME_ALLOW_ACCESS_TO_FILESYSTEM[] = L"Allow Remote Access to Local File System";
static const wchar_t REGKEY_PLATMAN_PPFSACCESS[] = L"Software\\Microsoft\\Windows CE Tools\\Platform Manager\\PPFSAccess";
static const wchar_t REGVAL_PB_PPFS_ACCESS[] = L"AllowPPFSAccess";
typedef
enum component_kind
{ COMPONENT_TRANSPORT = 0,
COMPONENT_SERVER = COMPONENT_TRANSPORT + 1
} COMPONENT_KIND;
enum __MIDL___MIDL_itf_cemgr_0000_0001
{ DEVICE_TYPE_EMULATION = 0x1,
DEVICE_TYPE_CE = 0x2,
DEVICE_TYPE_NT = 0x4
} ;
typedef ULONG DEVICE_TYPE;
typedef
enum report_action_type
{ SERVER_START = 0,
SERVER_FAIL = SERVER_START + 1,
SERVER_FINISH = SERVER_FAIL + 1,
CONNECT_START = SERVER_FINISH + 1,
CONNECT_FAIL = CONNECT_START + 1,
CONNECT_FINISH = CONNECT_FAIL + 1,
VERIFY_START = CONNECT_FINISH + 1,
VERIFY_FAIL = VERIFY_START + 1,
VERIFY_FINISH = VERIFY_FAIL + 1,
COPY_START = VERIFY_FINISH + 1,
COPY_FAILED = COPY_START + 1,
COPY_FINISH = COPY_FAILED + 1,
REGISTER_START = COPY_FINISH + 1,
REGISTER_FAILED = REGISTER_START + 1,
REGISTER_FINISH = REGISTER_FAILED + 1,
COPY_COMPLETE = REGISTER_FINISH + 1,
ATTACH_TIMEOUT = COPY_COMPLETE + 1,
COPY_SOURCENOTFOUND = ATTACH_TIMEOUT + 1
} REPORT_ACTION_TYPE;
static const int FILE_FLAG_REQUIRED = 0x00000001;
static const int FILE_FLAG_16BIT = 0x00000002;
static const int FILE_FLAG_FPSUPPORT = 0x00000004;
static const int FILE_FLAG_CPUNUM = 0x00000008;
static const int DEVICE_FLAG_NO_FILESYS = 0x00000001;
typedef struct package_file_info
{
DEVICE_TYPE dt;
WORD wArchitecture;
DWORD dwCPUType;
WORD wProcessorLevel;
DWORD dwPageSize;
WORD wMajorVersion;
WORD wMinorVersion;
DWORD dwLocaleId;
DWORD dwFlags;
} PACKAGE_FILE_INFO;
typedef struct package_file_info *PPACKAGE_FILE_INFO;
typedef struct package_file_info2
{
DEVICE_TYPE dt;
WORD wArchitecture;
DWORD dwCPUType;
WORD wProcessorLevel;
DWORD dwPageSize;
WORD wMajorVersion;
WORD wMinorVersion;
DWORD dwLocaleId;
DWORD dwFlags;
GUID OSTypeId;
} PACKAGE_FILE_INFO2;
typedef struct package_file_info2 *PPACKAGE_FILE_INFO2;
extern RPC_IF_HANDLE __MIDL_itf_cemgr_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_cemgr_0000_v0_0_s_ifspec;
#ifndef __IPlatformManager_INTERFACE_DEFINED__
#define __IPlatformManager_INTERFACE_DEFINED__
/* interface IPlatformManager */
/* [object][unique][helpstring][uuid] */
EXTERN_C const IID IID_IPlatformManager;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("F384D882-F9AA-11D1-BB9E-00A0C9C9CCEE")
IPlatformManager : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE EnumPlatforms(
/* [out] */ IEnumPlatformCE **ppiEnumPlatform) = 0;
virtual HRESULT STDMETHODCALLTYPE GetProperty(
/* [in] */ GUID PropId,
/* [out] */ IProperty **ppiProperty) = 0;
virtual HRESULT STDMETHODCALLTYPE AddProperty(
/* [in] */ GUID PropId,
/* [full][in] */ LPCOLESTR pszLinkName,
/* [out] */ IProperty **ppiProperty) = 0;
virtual HRESULT STDMETHODCALLTYPE DeleteProperty(
/* [in] */ GUID PropId) = 0;
virtual HRESULT STDMETHODCALLTYPE EnumProperties(
/* [out] */ IEnumProperty **ppiEnumProperty) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPlatform(
/* [in] */ GUID PlatformId,
/* [out] */ IPlatformCE **ppiPlatform) = 0;
};
#else /* C style interface */
typedef struct IPlatformManagerVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IPlatformManager * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IPlatformManager * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IPlatformManager * This);
HRESULT ( STDMETHODCALLTYPE *EnumPlatforms )(
IPlatformManager * This,
/* [out] */ IEnumPlatformCE **ppiEnumPlatform);
HRESULT ( STDMETHODCALLTYPE *GetProperty )(
IPlatformManager * This,
/* [in] */ GUID PropId,
/* [out] */ IProperty **ppiProperty);
HRESULT ( STDMETHODCALLTYPE *AddProperty )(
IPlatformManager * This,
/* [in] */ GUID PropId,
/* [full][in] */ LPCOLESTR pszLinkName,
/* [out] */ IProperty **ppiProperty);
HRESULT ( STDMETHODCALLTYPE *DeleteProperty )(
IPlatformManager * This,
/* [in] */ GUID PropId);
HRESULT ( STDMETHODCALLTYPE *EnumProperties )(
IPlatformManager * This,
/* [out] */ IEnumProperty **ppiEnumProperty);
HRESULT ( STDMETHODCALLTYPE *GetPlatform )(
IPlatformManager * This,
/* [in] */ GUID PlatformId,
/* [out] */ IPlatformCE **ppiPlatform);
END_INTERFACE
} IPlatformManagerVtbl;
interface IPlatformManager
{
CONST_VTBL struct IPlatformManagerVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IPlatformManager_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IPlatformManager_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IPlatformManager_Release(This) \
(This)->lpVtbl -> Release(This)
#define IPlatformManager_EnumPlatforms(This,ppiEnumPlatform) \
(This)->lpVtbl -> EnumPlatforms(This,ppiEnumPlatform)
#define IPlatformManager_GetProperty(This,PropId,ppiProperty) \
(This)->lpVtbl -> GetProperty(This,PropId,ppiProperty)
#define IPlatformManager_AddProperty(This,PropId,pszLinkName,ppiProperty) \
(This)->lpVtbl -> AddProperty(This,PropId,pszLinkName,ppiProperty)
#define IPlatformManager_DeleteProperty(This,PropId) \
(This)->lpVtbl -> DeleteProperty(This,PropId)
#define IPlatformManager_EnumProperties(This,ppiEnumProperty) \
(This)->lpVtbl -> EnumProperties(This,ppiEnumProperty)
#define IPlatformManager_GetPlatform(This,PlatformId,ppiPlatform) \
(This)->lpVtbl -> GetPlatform(This,PlatformId,ppiPlatform)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IPlatformManager_EnumPlatforms_Proxy(
IPlatformManager * This,
/* [out] */ IEnumPlatformCE **ppiEnumPlatform);
void __RPC_STUB IPlatformManager_EnumPlatforms_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IPlatformManager_GetProperty_Proxy(
IPlatformManager * This,
/* [in] */ GUID PropId,
/* [out] */ IProperty **ppiProperty);
void __RPC_STUB IPlatformManager_GetProperty_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IPlatformManager_AddProperty_Proxy(
IPlatformManager * This,
/* [in] */ GUID PropId,
/* [full][in] */ LPCOLESTR pszLinkName,
/* [out] */ IProperty **ppiProperty);
void __RPC_STUB IPlatformManager_AddProperty_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IPlatformManager_DeleteProperty_Proxy(
IPlatformManager * This,
/* [in] */ GUID PropId);
void __RPC_STUB IPlatformManager_DeleteProperty_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IPlatformManager_EnumProperties_Proxy(
IPlatformManager * This,
/* [out] */ IEnumProperty **ppiEnumProperty);
void __RPC_STUB IPlatformManager_EnumProperties_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IPlatformManager_GetPlatform_Proxy(
IPlatformManager * This,
/* [in] */ GUID PlatformId,
/* [out] */ IPlatformCE **ppiPlatform);
void __RPC_STUB IPlatformManager_GetPlatform_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IPlatformManager_INTERFACE_DEFINED__ */
#ifndef __IPlatformManager2_INTERFACE_DEFINED__
#define __IPlatformManager2_INTERFACE_DEFINED__
/* interface IPlatformManager2 */
/* [object][unique][helpstring][uuid] */
EXTERN_C const IID IID_IPlatformManager2;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("D08B18FB-0471-4a4d-88F3-9F1187A058AA")
IPlatformManager2 : public IPlatformManager
{
public:
virtual HRESULT STDMETHODCALLTYPE GetConnection(
/* [in] */ GUID ConnectId,
/* [out] */ IConnection **ppiConnection) = 0;
};
#else /* C style interface */
typedef struct IPlatformManager2Vtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IPlatformManager2 * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IPlatformManager2 * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IPlatformManager2 * This);
HRESULT ( STDMETHODCALLTYPE *EnumPlatforms )(
IPlatformManager2 * This,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -