
API - Opening a Comm port -NT
Having a problem with opening a port on NT op sys.
Using
r = CreateFile("COM2", GENERIC_READ or GENERIC_WRITE, 0,0,
OPEN_EXISTING, 0,0)
but ...
it always returns INVALID_HANDLE_VALUE
All per Dan Appleman's VB 5.0 Programmers Guide to API and the KB
documentation.
Harware ok - everthing work with MSComm.
Any ideas ???