Win32 API 日本語リファレンス
ホームDevices.Sensors › ISensor

ISensor

COM
IID5fa08f80-2657-458e-af75-46f73fa6ac5c継承元IUnknown自前メソッド開始 vtbl3

メソッド 15

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtblメソッド
3HRESULT GetID(GUID* pID)
4HRESULT GetCategory(GUID* pSensorCategory)
5HRESULT GetType(GUID* pSensorType)
6HRESULT GetFriendlyName(LPWSTR* pFriendlyName)
7HRESULT GetProperty(PROPERTYKEY* key, PROPVARIANT* pProperty)
8HRESULT GetProperties(IPortableDeviceKeyCollection* pKeys, IPortableDeviceValues** ppProperties)
9HRESULT GetSupportedDataFields(IPortableDeviceKeyCollection** ppDataFields)
10HRESULT SetProperties(IPortableDeviceValues* pProperties, IPortableDeviceValues** ppResults)
11HRESULT SupportsDataField(PROPERTYKEY* key, VARIANT_BOOL* pIsSupported)
12HRESULT GetState(SensorState* pState)
13HRESULT GetData(ISensorDataReport** ppDataReport)
14HRESULT SupportsEvent(GUID* eventGuid, VARIANT_BOOL* pIsSupported)
15HRESULT GetEventInterest(GUID** ppValues, DWORD* pCount)
16HRESULT SetEventInterest(GUID* pValues, DWORD count)
17HRESULT SetEventSink(ISensorEvents* pEvents)