1 #include "sb16.h"
2
3 class CAdapterSB16 :
4 public IAdapterSB16,
5 public IAdapterPowerManagement,
6 public CUnknown
7 {
8 public :
9 DECLARE_STD_UNKNOWN();
10 DEFINE_STD_CONSTRUCTOR(CAdapterSB16);
11 ~CAdapterSB16();
12
13 STDMETHODIMP_(NTSTATUS) Init(
14 IN PRESOURCELIST ResourceList,
15 IN PDEVICE_OBJECT DeviceObject);
16
17 STDMETHODIMP_(PINTERRUPTSYNC) GetInterruptSync(void);
18
19 STDMETHODIMP_(void) SetWaveMiniport(
20 IN PWAVEMINIPORTSB16 Miniport);
21
22 STDMETHODIMP_(BYTE) Read(void);
23
24 STDMETHODIMP_(BOOLEAN) Write(
25 IN BYTE Value);
26
27 STDMETHODIMP_(NTSTATUS) Reset(void);
28
29 STDMETHODIMP_(void) SetMixerValue(
30 IN BYTE Index,
31 IN BYTE Value);
32
33 STDMETHODIMP_(BYTE) GetMixerValue(
34 IN BYTE Index);
35
36 STDMETHODIMP_(void) ResetMixer(void);
37
38 //IMP_IAdapterPowerManagement;
39 };
40
41
42 NTSTATUS
NewAdapter(OUT PUNKNOWN * Unknown,IN REFCLSID,IN PUNKNOWN UnknownOuter OPTIONAL,IN POOL_TYPE PoolType)43 NewAdapter(
44 OUT PUNKNOWN* Unknown,
45 IN REFCLSID,
46 IN PUNKNOWN UnknownOuter OPTIONAL,
47 IN POOL_TYPE PoolType)
48 {
49 STD_CREATE_BODY_( CAdapterSB16, Unknown, UnknownOuter, PoolType, PADAPTERSB16 );
50 }
51
52
Init(IN PRESOURCELIST ResourceList,IN PDEVICE_OBJECT DeviceObject)53 NTSTATUS CAdapterSB16::Init(
54 IN PRESOURCELIST ResourceList,
55 IN PDEVICE_OBJECT DeviceObject)
56 {
57 return STATUS_UNSUCCESSFUL;
58 }
59
~CAdapterSB16()60 CAdapterSB16::~CAdapterSB16()
61 {
62 }
63 /*
64 STDMETHODIMP
65 CAdapterSB16::NonDelegatingQueryInterface(
66 REFIID Interface,
67 PVOID* Object)
68 {
69 return STATUS_UNSUCCESSFUL;
70 }
71 */
STDMETHODIMP_(PINTERRUPTSYNC)72 STDMETHODIMP_(PINTERRUPTSYNC)
73 CAdapterSB16::GetInterruptSync()
74 {
75 return NULL;
76 }
77
STDMETHODIMP_(BYTE)78 STDMETHODIMP_(BYTE)
79 CAdapterSB16::Read()
80 {
81 return 0x00;
82 }
83
STDMETHODIMP_(BOOLEAN)84 STDMETHODIMP_(BOOLEAN)
85 CAdapterSB16::Write(
86 IN BYTE Value)
87 {
88 return FALSE;
89 }
90
STDMETHODIMP_(NTSTATUS)91 STDMETHODIMP_(NTSTATUS)
92 CAdapterSB16::Reset()
93 {
94 return STATUS_UNSUCCESSFUL;
95 }
96
STDMETHODIMP_(void)97 STDMETHODIMP_(void)
98 CAdapterSB16::SetMixerValue(
99 IN BYTE Index,
100 IN BYTE Value)
101 {
102 }
103
STDMETHODIMP_(BYTE)104 STDMETHODIMP_(BYTE)
105 CAdapterSB16::GetMixerValue(
106 IN BYTE Index)
107 {
108 return 0x00;
109 }
110
STDMETHODIMP_(void)111 STDMETHODIMP_(void)
112 CAdapterSB16::ResetMixer()
113 {
114 }
115
116
117 STDMETHODIMP_(void)
SetWaveMiniport(IN PWAVEMINIPORTSB16 Miniport)118 SetWaveMiniport(
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 */
144