[an error occurred while processing this directive]
|
How to use driver:
------------------
1. Insert this code into your program.
HANDLE h;
h=CreateFile("\\\\.\\giveio", GENERIC_READ, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h==INVALID_HANDLE_VALUE) {
puts("Error: Unable to open driver!\n");
return -1;
}
else puts("Driver was successfully opened.");
CloseHandle(h);
2. After that you can use usual I/O ports read/write operations.
E-mail: info@telesys.ru