[APPHELP_APITEST] Add tests for SdbGetMatchingExe, to test matching on version resour...
[reactos.git] / reactos / drivers / multimedia / audio / sndblst.old / test / sb.c
1 #include <stdio.h>
2 #include <windows.h>
3 #include <ntddk.h>
4
5 int main()
6 {
7 // NTSTATUS s;
8 // PHANDLE Handle;
9 // PIO_STATUS_BLOCK Status;
10
11 HANDLE Device;
12 DWORD BytesReturned;
13
14 printf("SB Test\n");
15
16 Device = CreateFile("\\\\.\\SndBlst", GENERIC_READ | GENERIC_WRITE,
17 FILE_SHARE_READ | FILE_SHARE_WRITE,
18 NULL,
19 OPEN_EXISTING,
20 FILE_FLAG_NO_BUFFERING,
21 NULL);
22
23 if (Device == INVALID_HANDLE_VALUE)
24 {
25 printf("Device is busy or could not be found.\n");
26 return -1;
27 }
28
29 // DeviceIoControl(
30 // Device,
31 // IOCTL_FILE_DISK_OPEN_FILE,
32 // OpenFileInformation,
33 // sizeof(OPEN_FILE_INFORMATION) + OpenFileInformation->FileNameLength - 1,
34 // NULL
35 // 0,
36 // &BytesReturned,
37 // NULL
38 // )
39
40
41 /* s = IoCreateFile(Handle, GENERIC_READ | GENERIC_WRITE,
42 OBJ_KERNEL_HANDLE,
43 Status,
44 0,
45 FILE_SHARE_READ | FILE_SHARE_WRITE,
46 FILE_OPEN,
47 FILE_NON_DIRECTORY_FILE,
48 NULL,
49 0,
50 CreateFileTypeNone,
51 NULL,
52 0);
53 */
54 }