Hi everybody, and sorry for troubling you with
newbies questions, but I have a problem with CreateFile
that I just can’t figure out:
I have a driver, to which I want to connect from my application,
using CreateFile(), and I have 2 processes that try to
attach to the driver.
The first succeeds, and the second fails with error code #2
(ERROR_FILE_NOT_FOUND).
The CreateFile line is this:
CreateFile(SymbolicLinkName,
GENERIC_WRITE | GENERIC_READ,
0,
NULL,
CREATE_ALWAYS,
FILE_FLAG_OVERLAPPED,0);
My guess is that it’s something with the flags, but I don’t seem
to find the correct flag…
thanks in advance,
- Barak