📄 platman_idl.inc
字号:
);
HRESULT GetBootableDeviceName
(
[out] LPOLESTR *ppszBootableDeviceName
);
HRESULT GetService
(
[in] GUID ServiceCategoryId,
[out] IService **ppiService
);
HRESULT EnumProperties
(
[out] IEnumProperty **ppiEnumProperty
);
HRESULT GetProperty
(
[in] GUID PropId,
[out] IProperty **ppiProperty
);
HRESULT AddProperty
(
[in] GUID PropId,
[in,ptr] LPCOLESTR pszLinkName,
[out] IProperty **ppiProperty
);
HRESULT DeleteProperty
(
[in] GUID PropId
);
HRESULT ShutdownService
(
);
};
// IService to support
// bootable devices
[
object,
uuid(E408B5F2-348F-4263-B551-6437635C46E8),
helpstring("IService Interface"),
pointer_default(unique)
]
interface IService : IUnknown
{
HRESULT InitService
(
[in] IBootableDevice *piBootableDevice,
[in] IServiceInfo *piServiceInfo
);
HRESULT GetServiceCLSID
(
[out] GUID *pServiceCLSID
);
HRESULT GetServiceCategoryId
(
[out] GUID *pServiceCategoryId
);
HRESULT IsServiceReleaseable
(
[out] BOOL *pBool
);
HRESULT IsServiceConfigured
(
[out] BOOL *pConfigured
);
};
// IPMServiceNuke to support self-unloading services
[
object,
uuid(BDAF11A3-78BD-4B32-91E8-8911B7A7FAAF),
helpstring("IPMServiceNuke Interface: Used to cleanup any resources on an abnormal termination"),
pointer_default(unique)
]
interface IPMServiceNuke : IUnknown
{
HRESULT UnloadServiceProvider
(
);
};
[
object,
uuid(768C9904-36E1-423b-91B4-433D709B6A19),
helpstring("IServiceConfig Interface"),
pointer_default(unique)
]
interface IServiceConfig : IUnknown
{
HRESULT ConfigureServiceUI
(
[in] HWND hWnd,
[in] IBootableDevice *piDevice,
[in] IServiceInfo *piServiceInfo
);
};
[
object,
uuid(F384D885-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IEnumPlatformCE Interface"),
pointer_default(unique)
]
interface IEnumPlatformCE : IUnknown
{
HRESULT Next
(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] IPlatformCE *rgelt[],
[out] ULONG *pceltFetched
);
HRESULT Skip
(
[in] ULONG celt
);
HRESULT Reset
(
);
HRESULT Clone
(
[out] IEnumPlatformCE **ppEnum
);
HRESULT GetCount
(
[out] ULONG *pcelt
);
HRESULT GetNext
(
[out] IPlatformCE **ppiPlatform
);
};
[
object,
uuid(F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IPlatformCE Interface"),
pointer_default(unique)
]
interface IPlatformCE : IUnknown
{
HRESULT GetPlatformId
(
[out] GUID *pPlatformId
);
HRESULT EnumProperties
(
[out] IEnumProperty **ppiEnumProperty
);
HRESULT GetProperty
(
[in] GUID PropId,
[out] IProperty **ppiProperty
);
HRESULT AddProperty
(
[in] GUID PropId,
[in,ptr] LPCOLESTR pszLinkName,
[out] IProperty **ppiProperty
);
HRESULT DeleteProperty
(
[in] GUID PropId
);
HRESULT GetPlatformName
(
[out] LPOLESTR *ppszPlatformName
);
HRESULT EnumDevices
(
[out] IEnumDevice **ppiEnumDevice
);
HRESULT GetDevice
(
[in] GUID DeviceId,
[out] IRemoteDevice **ppiRemoteDevice
);
HRESULT EnumCPU
(
[out] IEnumCPU **ppiEnumCPU
);
HRESULT GetOSInfo
(
[out] LPWORD pwMajorVersion,
[out] LPWORD pwMinorVersion
);
};
[
object,
uuid(F384D88B-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IRemoteDevice Interface"),
pointer_default(unique)
]
interface IRemoteDevice : IUnknown
{
HRESULT EnumProperties
(
[out] IEnumProperty **ppiEnumProperty
);
HRESULT GetProperty
(
[in] GUID PropId,
[out] IProperty **ppiProperty
);
HRESULT AddProperty
(
[in] GUID PropId,
[in,ptr] LPCOLESTR pszLinkName,
[out] IProperty **ppiProperty
);
HRESULT DeleteProperty
(
[in] GUID PropId
);
HRESULT GetDeviceId
(
[out] GUID *pDeviceId
);
HRESULT GetDeviceType
(
[out] DEVICE_TYPE *pdt
);
HRESULT GetDeviceName
(
[out] LPOLESTR *ppszDeviceName
);
HRESULT Attach
(
[in] DWORD dwProcessId,
[in] LPCOLESTR pszProcessName,
[in] DWORD dwTimeOut,
[out] IConnection **ppiConnection,
[in] ICallBack *piCallBack
);
};
// IRemoteDevice2 interface to support
// the new GetConnection method
[
object,
uuid(C4C0EE08-FC65-40f0-863E-B3C891A750C2),
helpstring("IRemoteDevice2 Interface"),
pointer_default(unique)
]
interface IRemoteDevice2 : IRemoteDevice
{
// GetConnection will return a IConnection from a GUID. If
// there are no connections active that is assigned with the
// specified GUID then E_FAIL is returned
HRESULT GetConnection
(
[in] GUID ConnectId,
[out] IConnection **ppiConnection
);
};
[
object,
uuid(F384D88E-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IEnumDevice Interface"),
pointer_default(unique)
]
interface IEnumDevice : IUnknown
{
HRESULT Next
(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] IRemoteDevice *rgelt[],
[out] ULONG *pceltFetched
);
HRESULT Skip
(
[in] ULONG celt
);
HRESULT Reset
(
);
HRESULT Clone
(
[out] IEnumDevice **ppEnum
);
HRESULT GetCount
(
[out] ULONG *pcelt
);
HRESULT GetNext
(
[out] IRemoteDevice **ppiRemoteDevice
);
};
[
object,
uuid(F384D891-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IEnumProperty Interface"),
pointer_default(unique)
]
interface IEnumProperty : IUnknown
{
HRESULT Next
(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] IProperty *rgelt[],
[out] ULONG *pceltFetched
);
HRESULT Skip
(
[in] ULONG celt
);
HRESULT Reset
(
);
HRESULT Clone
(
[out] IEnumProperty **ppEnum
);
HRESULT GetCount
(
[out] ULONG *pcelt
);
HRESULT GetNext
(
[out] IProperty **ppiProperty
);
};
[
object,
uuid(F384D894-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IProperty Interface"),
pointer_default(unique)
]
interface IProperty : IUnknown
{
HRESULT EnumProperties
(
[out] IEnumProperty **ppiEnumProperty
);
HRESULT GetPropertyId
(
[out] GUID *pPropId
);
HRESULT GetProperty
(
[in] GUID PropId,
[out] IProperty **ppiProperty
);
HRESULT AddProperty
(
[in] GUID PropId,
[in,ptr] LPCOLESTR pszLinkName,
[out] IProperty **ppiProperty
);
HRESULT DeleteProperty
(
[in] GUID PropId
);
HRESULT EnumPropInfo
(
[out] IEnumPropInfo **ppiEnumPropInfo
);
//
//
// dwPropType can be one of the following values
//
/*
#define REG_SZ ( 1 ) // Unicode nul terminated string
#define REG_EXPAND_SZ ( 2 ) // Unicode nul terminated string
// (with environment variable references)
#define REG_BINARY ( 3 ) // Free form binary
#define REG_DWORD ( 4 ) // 32-bit number
#define REG_DWORD_LITTLE_ENDIAN ( 4 ) // 32-bit number (same as REG_DWORD)
#define REG_DWORD_BIG_ENDIAN ( 5 ) // 32-bit number
#define REG_LINK ( 6 ) // Symbolic Link (unicode)
#define REG_MULTI_SZ ( 7 ) // Multiple Unicode strings
#define REG_RESOURCE_LIST ( 8 ) // Resource list in the resource map
*/
HRESULT SetPropInfo
(
[in] LPCOLESTR pszName,
[in] DWORD dwPropSize,
[in] DWORD dwPropType,
[in, size_is(dwPropSize)] BYTE *pPropValue
);
HRESULT DeletePropInfo
(
[in] LPCOLESTR pszName
);
// see notes for SetPropInfo
HRESULT GetPropInfo
(
[in] LPCOLESTR pszName,
[in] DWORD dwSizeIn,
[out] LPDWORD pdwPropType,
[out, size_is(dwSizeIn), length_is(*pdwSizeReturned)] BYTE *pBuffer,
[out] DWORD *pdwSizeReturned,
[out] DWORD *pdwSizeActual
);
};
[
object,
uuid(F384D897-F9AA-11D1-BB9E-00A0C9C9CCEE),
helpstring("IEnumPropInfo Interface"),
pointer_default(unique)
]
interface IEnumPropInfo : IUnknown
{
HRESULT Next
(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] LPOLESTR rgelt[],
[out] ULONG *pceltFetched
);
HRESULT Skip
(
[in] ULONG celt
);
HRESULT Reset
(
);
HRESULT Clone
(
[out] IEnumPropInfo **ppEnum
);
HRESULT GetCount
(
[out] ULONG *pcelt
);
HRESULT GetNext
(
[out] LPOLESTR *ppszName
);
};
[
object,
uuid(DA438BAA-FA87-11D1-BB9E-00A0C9C9CCEE),
helpstring("IConnection Interface"),
pointer_default(unique)
]
interface IConnection : IUnknown
{
HRESULT FileCopy
(
[in] LPCOLESTR pszSource,
[in] LPCOLESTR pszDest,
[in] BOOL fOverWrite,
[in] ICallBack *piCallBack,
[out] LPDWORD pdwTotalSize
);
HRESULT CopyPackage
(
[in] GUID PackageId,
[in] LPCOLESTR pszDestPath,
[in] BOOL fOverWrite,
[in] ICallBack *piCallBack,
[out] LPDWORD pdwTotalSize
);
HRESULT QueuePackage
(
[in] GUID PackageId,
[in] LPCOLESTR pszDestPath,
[in] BOOL fOverWrite
);
HRESULT QueueFile
(
[in] LPCOLESTR pszSource,
[in] LPCOLESTR pszDest,
[in] BOOL fOverWrite
);
HRESULT CopyQueuedFiles
(
[in] ICallBack *piCallBack,
[out] LPDWORD pdwTotalSize
);
HRESULT GetQueueCount
(
[out] LPDWORD pdwCount
);
HRESULT Launch
(
[in] LPCOLESTR pszRemotePath,
[in,ptr] LPCOLESTR pszCmdLine
);
HRESULT SystemGetInfo
(
[out] LPWORD pwArchitecture,
[out] LPDWORD pdwCPUType,
[out] LPDWORD pdwPageSize,
[out] LPWORD pwMajorVersion,
[out] LPWORD pwMinorVersion
);
HRESULT FileGetInfo
(
[in] LPCOLESTR pszRemotePath,
[out] LPDWORD pdwFileAttributes,
[out] LPDWORD pdwFileSize,
[out] LPFILETIME pCreationTime
);
HRESULT FileDelete
(
[in] LPCOLESTR pszFullPath
);
HRESULT CreateStream
(
[in] GUID HostId,
[in] DWORD dwPortId,
[out] IConnectionStream **ppiConnectionStream,
[in] ICallBack *piCallBack
);
HRESULT GetLocalInfo
(
[out] LPDWORD pdwLocaleId
);
HRESULT GetFile
(
[in] LPCOLESTR pszRemotePath,
[in] LPCOLESTR pszDest,
[in] ICallBack *piCallBack,
[out] LPDWORD pdwTotalSize
);
HRESULT GetPlatformId
(
[out] GUID *pPlatformId
);
HRESULT ResetQueue
(
);
HRESULT CloseAllStreams
(
);
};
// IConnection2 interface to support the updated SystemGetInfo method.
// GetConnectId method to retrieve the GUID that represents
// the connection.
[
object,
uuid(073E4A43-45BC-46ef-B114-F42BA51C6366),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -