ReactOS  0.4.15-dev-439-g292f67a
adapter.cpp
Go to the documentation of this file.
1 #include "sb16.h"
2 
3 class CAdapterSB16 :
4  public IAdapterSB16,
5  public IAdapterPowerManagement,
6  public CUnknown
7 {
8  public :
11  ~CAdapterSB16();
12 
16 
17  STDMETHODIMP_(PINTERRUPTSYNC) GetInterruptSync(void);
18 
20  IN PWAVEMINIPORTSB16 Miniport);
21 
22  STDMETHODIMP_(BYTE) Read(void);
23 
25  IN BYTE Value);
26 
27  STDMETHODIMP_(NTSTATUS) Reset(void);
28 
29  STDMETHODIMP_(void) SetMixerValue(
30  IN BYTE Index,
32 
33  STDMETHODIMP_(BYTE) GetMixerValue(
34  IN BYTE Index);
35 
36  STDMETHODIMP_(void) ResetMixer(void);
37 
38  //IMP_IAdapterPowerManagement;
39 };
40 
41 
45  IN REFCLSID,
46  IN PUNKNOWN UnknownOuter OPTIONAL,
48 {
49  STD_CREATE_BODY_( CAdapterSB16, Unknown, UnknownOuter, PoolType, PADAPTERSB16 );
50 }
51 
52 
56 {
57  return STATUS_UNSUCCESSFUL;
58 }
59 
61 {
62 }
63 /*
64 STDMETHODIMP
65 CAdapterSB16::NonDelegatingQueryInterface(
66  REFIID Interface,
67  PVOID* Object)
68 {
69  return STATUS_UNSUCCESSFUL;
70 }
71 */
73 CAdapterSB16::GetInterruptSync()
74 {
75  return NULL;
76 }
77 
80 {
81  return 0x00;
82 }
83 
86  IN BYTE Value)
87 {
88  return FALSE;
89 }
90 
92 CAdapterSB16::Reset()
93 {
94  return STATUS_UNSUCCESSFUL;
95 }
96 
97 STDMETHODIMP_(void)
98 CAdapterSB16::SetMixerValue(
99  IN BYTE Index,
100  IN BYTE Value)
101 {
102 }
103 
105 CAdapterSB16::GetMixerValue(
106  IN BYTE Index)
107 {
108  return 0x00;
109 }
110 
111 STDMETHODIMP_(void)
112 CAdapterSB16::ResetMixer()
113 {
114 }
115 
116 
117 STDMETHODIMP_(void)
119  IN PWAVEMINIPORTSB16 Miniport)
120 {
121 }
122 
123 /*
124 STDMETHODIMP_(void)
125 CAdapterSB16::PowerChangeState(
126  IN POWER_STATE NewState)
127 {
128 }
129 
130 STDMETHODIMP_(NTSTATUS)
131 CAdapterSB16::QueryPowerChangeState(
132  IN POWER_STATE NewStateQuery)
133 {
134  return STATUS_UNSUCCESSFUL;
135 }
136 
137 STDMETHODIMP_(NTSTATUS)
138 CAdapterSB16::QueryDeviceCapabilities(
139  IN PDEVICE_CAPABILITIES)
140 {
141  return STATUS_UNSUCCESSFUL;
142 }
143 */
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2373
#define IN
Definition: typedefs.h:39
_In_ BOOLEAN Read
Definition: strmini.h:479
#define STDMETHODIMP_(t)
Definition: basetyps.h:44
#define REFCLSID
Definition: guiddef.h:117
IN BYTE Value
Definition: adapter.cpp:31
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NewAdapter(OUT PUNKNOWN *Unknown, IN REFCLSID, IN PUNKNOWN UnknownOuter OPTIONAL, IN POOL_TYPE PoolType)
Definition: adapter.cpp:43
BOOL Init(PUSERCONNECT UserCon)
Definition: dllmain.c:385
static BOOL Write(PBYTE Address, PBYTE Data, SIZE_T Size)
Definition: vmhorizon.c:15
const MUI_LANGUAGE_RESOURCE ResourceList[]
Definition: muilanguages.h:414
IWaveMiniportSB16 * PWAVEMINIPORTSB16
Definition: sb16.h:99
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
IN PDEVICE_OBJECT DeviceObject
Definition: adapter.cpp:15
INT POOL_TYPE
Definition: typedefs.h:77
static const UCHAR Index[8]
Definition: usbohci.c:18
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
STDMETHODIMP_(void) SetWaveMiniport(IN PWAVEMINIPORTSB16 Miniport)
DEFINE_STD_CONSTRUCTOR(CAdapterSB16)
unsigned char BYTE
Definition: xxhash.c:193
IAdapterSB16 * PADAPTERSB16
Definition: sb16.h:137
IResourceList * PRESOURCELIST
Definition: portcls.h:442
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1569
SetWaveMiniport(IN PWAVEMINIPORTSB16 Miniport)
Definition: adapter.cpp:118
IInterruptSync * PINTERRUPTSYNC
Definition: portcls.h:878
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68