ReactOS 0.4.15-dev-7659-ga55345b
adapter.cpp
Go to the documentation of this file.
1#include "sb16.h"
2
4 public IAdapterSB16,
5 public IAdapterPowerManagement,
6 public CUnknown
7{
8 public :
12
16
17 STDMETHODIMP_(PINTERRUPTSYNC) GetInterruptSync(void);
18
20 IN PWAVEMINIPORTSB16 Miniport);
21
23
25 IN BYTE Value);
26
27 STDMETHODIMP_(NTSTATUS) Reset(void);
28
29 STDMETHODIMP_(void) SetMixerValue(
32
33 STDMETHODIMP_(BYTE) GetMixerValue(
34 IN BYTE Index);
35
36 STDMETHODIMP_(void) ResetMixer(void);
37
38 //IMP_IAdapterPowerManagement;
39};
40
41
46 IN PUNKNOWN UnknownOuter OPTIONAL,
48{
49 STD_CREATE_BODY_( CAdapterSB16, Unknown, UnknownOuter, PoolType, PADAPTERSB16 );
50}
51
52
53NTSTATUS CAdapterSB16::Init(
56{
58}
59
61{
62}
63/*
64STDMETHODIMP
65CAdapterSB16::NonDelegatingQueryInterface(
66 REFIID Interface,
67 PVOID* Object)
68{
69 return STATUS_UNSUCCESSFUL;
70}
71*/
73CAdapterSB16::GetInterruptSync()
74{
75 return NULL;
76}
77
79CAdapterSB16::Read()
80{
81 return 0x00;
82}
83
85CAdapterSB16::Write(
87{
88 return FALSE;
89}
90
92CAdapterSB16::Reset()
93{
95}
96
97STDMETHODIMP_(void)
98CAdapterSB16::SetMixerValue(
100 IN BYTE Value)
101{
102}
103
105CAdapterSB16::GetMixerValue(
106 IN BYTE Index)
107{
108 return 0x00;
109}
110
111STDMETHODIMP_(void)
112CAdapterSB16::ResetMixer()
113{
114}
115
116
117STDMETHODIMP_(void)
119 IN PWAVEMINIPORTSB16 Miniport)
120{
121}
122
123/*
124STDMETHODIMP_(void)
125CAdapterSB16::PowerChangeState(
126 IN POWER_STATE NewState)
127{
128}
129
130STDMETHODIMP_(NTSTATUS)
131CAdapterSB16::QueryPowerChangeState(
132 IN POWER_STATE NewStateQuery)
133{
134 return STATUS_UNSUCCESSFUL;
135}
136
137STDMETHODIMP_(NTSTATUS)
138CAdapterSB16::QueryDeviceCapabilities(
139 IN PDEVICE_CAPABILITIES)
140{
141 return STATUS_UNSUCCESSFUL;
142}
143*/
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
#define STDMETHODIMP_(t)
Definition: basetyps.h:44
STDMETHODIMP_(BYTE) Read(void)
STDMETHODIMP_(BOOLEAN) Write(IN BYTE Value)
STDMETHODIMP_(NTSTATUS) Reset(void)
STDMETHODIMP_(BYTE) GetMixerValue(IN BYTE Index)
STDMETHODIMP_(void) SetWaveMiniport(IN PWAVEMINIPORTSB16 Miniport)
STDMETHODIMP_(void) ResetMixer(void)
STDMETHODIMP_(PINTERRUPTSYNC) GetInterruptSync(void)
STDMETHODIMP_(void) SetMixerValue(IN BYTE Index
DEFINE_STD_CONSTRUCTOR(CAdapterSB16)
STDMETHODIMP_(NTSTATUS) Init(IN PRESOURCELIST ResourceList
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
NTSTATUS NewAdapter(OUT PUNKNOWN *Unknown, IN REFCLSID, IN PUNKNOWN UnknownOuter OPTIONAL, IN POOL_TYPE PoolType)
Definition: adapter.cpp:43
SetWaveMiniport(IN PWAVEMINIPORTSB16 Miniport)
Definition: adapter.cpp:118
@ Unknown
Definition: i8042prt.h:114
IInterruptSync * PINTERRUPTSYNC
Definition: portcls.h:888
IResourceList * PRESOURCELIST
Definition: portcls.h:442
#define REFCLSID
Definition: guiddef.h:117
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
_In_ BOOLEAN Read
Definition: strmini.h:479
INT POOL_TYPE
Definition: typedefs.h:78
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
static BOOL Write(PBYTE Address, PBYTE Data, SIZE_T Size)
Definition: vmhorizon.c:15
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
Definition: wdfresource.h:309
IWaveMiniportSB16 * PWAVEMINIPORTSB16
Definition: sb16.h:101
IAdapterSB16 * PADAPTERSB16
Definition: sb16.h:139
unsigned char BYTE
Definition: xxhash.c:193