#include "mmdrv.h"
#include <winuser.h>
#include <debug.h>
Go to the source code of this file.
|
MMRESULT | CobbleDeviceName (DeviceType device_type, UINT device_id, PWCHAR out_device_name) |
|
MMRESULT | OpenKernelDevice (DeviceType device_type, UINT device_id, DWORD access, HANDLE *handle) |
|
void | CloseKernelDevice (HANDLE device_handle) |
|
MMRESULT | SetDeviceData (HANDLE device_handle, DWORD ioctl, PBYTE input_buffer, DWORD buffer_size) |
|
MMRESULT | GetDeviceData (HANDLE device_handle, DWORD ioctl, PBYTE output_buffer, DWORD buffer_size) |
|
◆ NDEBUG
◆ CloseKernelDevice()
◆ CobbleDeviceName()
Definition at line 28 of file kernel.c.
32{
34
35
36
38 {
41 break;
42
45 break;
46
49 break;
50
53 break;
54
57 break;
58
59 default :
61 };
62
63
64
67 base_device_name +
strlen(
"\\Device"),
68 device_id);
69
71}
ACPI_SIZE strlen(const char *String)
#define WAVE_OUT_DEVICE_NAME
#define MIDI_IN_DEVICE_NAME
#define MIDI_OUT_DEVICE_NAME
#define WAVE_IN_DEVICE_NAME
#define MAX_DEVICE_NAME_LENGTH
#define MMSYSERR_BADDEVICEID
Referenced by OpenKernelDevice().
◆ GetDeviceData()
Definition at line 152 of file kernel.c.
157{
159 DWORD bytes_returned;
162
163 DPRINT(
"GetDeviceData\n");
164
165 memset(&overlap, 0,
sizeof(overlap));
166
168
171
175 0,
178 &bytes_returned,
179 &overlap);
180
182 {
184 {
186 {
189 }
190 }
191 else
192 {
195 }
196 }
197
199 {
201
203 {
204 break;
205 }
206 }
207
209
211}
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
MMRESULT ErrorToMmResult(UINT error_code)
BOOL WINAPI GetOverlappedResult(IN HANDLE hFile, IN LPOVERLAPPED lpOverlapped, OUT LPDWORD lpNumberOfBytesTransferred, IN BOOL bWait)
static void buffer_size(GLcontext *ctx, GLuint *width, GLuint *height)
DWORD WINAPI WaitForSingleObjectEx(IN HANDLE hHandle, IN DWORD dwMilliseconds, IN BOOL bAlertable)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
#define success(from, fromstr, to, tostr)
DWORD WINAPI GetLastError(void)
#define WAIT_IO_COMPLETION
◆ OpenKernelDevice()
Definition at line 84 of file kernel.c.
89{
93
95
96
97
99
101
104
105
106
109
110
111
117 open_flags,
119
122
124}
#define INVALID_HANDLE_VALUE
MMRESULT CobbleDeviceName(DeviceType device_type, UINT device_id, PWCHAR out_device_name)
static const WCHAR device_name[]
GLuint GLint GLboolean GLint GLenum access
#define FILE_FLAG_OVERLAPPED
Referenced by GetDeviceCapabilities(), GetDeviceCount(), and OpenDevice().
◆ SetDeviceData()