Hi all,
I am trying to access ports via the giveio.sys driver but I can't even open it.
In Visual C++ I built a normal Dos Box application and the routine ran fine but when I use the same stuff in my DLL, it just won't work. The CreateFile() always returns an invalid handle value:
h = CreateFile("\\\\.\\giveio", GENERIC_READ, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h == INVALID_HANDLE_VALUE) {
MessageBox(0,"Couldn't access giveio device","Error",MB_ICONHAND);
}
Can anybody give me a hint why this happens, why it does not work in my DLL?
Thanks a lot!
--mccoz