#include <stdio.h>
#include <windows.h>
#include <ntddk.h>
#include "mpu401.h"
Go to the source code of this file.
◆ main()
Definition at line 6 of file test.c.
7{
8
9
10
13 BYTE Notes[] = {50, 52, 54, 55, 57, 59, 61};
17
18 printf(
"Test program for MPU401 driver\n");
19
26
28 {
29 printf(
"Device is busy or could not be found.\n");
30 return -1;
31 }
32
33 printf(
"Device is open, let's play some music...\n");
34
37
38 for (Note = 0; Note < sizeof(Notes); Note ++)
39 {
40 Test[1] = Notes[Note];
41
48 0,
51 );
52
53 for (Junk = 0; Junk < 100000; Junk ++);
54 }
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70}
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)
#define INVALID_HANDLE_VALUE
#define FILE_FLAG_NO_BUFFERING
_Must_inspect_result_ _In_ WDFDEVICE Device
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_ ULONG _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesReturned
Referenced by Indic_process_next_syllable(), mainCRTStartup(), parse_consonant_syllable(), and test_texture_shader().