|
|
1.1 root 1:
2: #include "windows.h"
3: #include "stdio.h"
4:
5: int main(int argc, char **argv) {
6:
7:
8: HANDLE hTest;
9:
10:
11: if ((hTest = CreateFile(
12: "\\\\.\\LOADTEST",
13: GENERIC_READ | GENERIC_WRITE,
14: 0,
15: NULL,
16: OPEN_EXISTING,
17: FILE_ATTRIBUTE_NORMAL,
18: NULL
19: )) != ((HANDLE)-1)) {
20:
21: printf("Wow - it really worked!!!\n");
22:
23: //
24: // Point proven. Be a nice program and close up shop.
25: //
26:
27: CloseHandle(hTest);
28:
29: } else {
30:
31: printf("Can't get a handle to LOADTEST\n");
32:
33: }
34:
35: return 1;
36:
37: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.