summaryrefslogtreecommitdiffstats
path: root/Src/devices/ifc_devicecommand.h
blob: 810f40b28a74875b3672f39e7bc1e80f010a9692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER
#define _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <bfc/platform/guid.h>

// {52C5C581-65DC-435e-AEFA-1616CB81B283}
static const GUID IFC_DeviceCommand = 
{ 0x52c5c581, 0x65dc, 0x435e, { 0xae, 0xfa, 0x16, 0x16, 0xcb, 0x81, 0xb2, 0x83 } };


#include "ifc_deviceobject.h"

typedef enum DeviceCommandFlags
{
	DeviceCommandFlag_None = 0,
	DeviceCommandFlag_Primary = (1 << 0),
	DeviceCommandFlag_Disabled = (1 << 1),
	DeviceCommandFlag_Active = (1 << 2),
	DeviceCommandFlag_Hidden = (1 << 3),
	DeviceCommandFlag_Group	= (1 << 4),
}DeviceCommandFlags;
DEFINE_ENUM_FLAG_OPERATORS(DeviceCommandFlags);

typedef enum DeviceCommandContext
{
	DeviceCommandContext_Unknown = 0,
	DeviceCommandContext_NavigationMenu = 1,
	DeviceCommandContext_ViewMenu = 2,
	DeviceCommandContext_View = 3,

} DeviceCommandContext;

class __declspec(novtable) ifc_devicecommand : public ifc_deviceobject
{
protected:
	ifc_devicecommand() {}
	~ifc_devicecommand() {}

public:
	HRESULT GetDescription(wchar_t *buffer, size_t bufferSize);

public:
	DISPATCH_CODES
	{
		API_GETDESCRIPTION		= 10,
	};
};

inline HRESULT ifc_devicecommand::GetDescription(wchar_t *buffer, size_t bufferSize)
{
	return _call(API_GETDESCRIPTION, (HRESULT)E_NOTIMPL, buffer, bufferSize);
}

#endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER