Re: SDK CreateFile() failing to open device by Antranik
Antranik
Sat Sep 06 02:25:45 CDT 2003
Thanks for the reply. I myself am a provacateur and will
show your response to my boss and try to squeeze some more
money out of his wallet. Actually, I already got SoftIce
and the Win2k DDK. For the target machine and other stuff
it ain't so much not having the money as convincing the
echelon to spend it my way. It doesn't help that I am the
only one in the company that understands anything about
device driver development and the boss(es) are not s/w
engineers but bean-counters.
Antranik
>-----Original Message-----
>Yes but you probably won't like it. Get yourself a
proper kernel debug
>environment, either SoftIce or a remote/target system.
SoftIce will cost
>about $700 US and a second machine will cost less than
$600 US.
>
>That, plus the DDK and an MSDN subscription, is the cost
of doing driver
>development. If you or your company can't afford the
tools, then you don't
>need to be developing device drivers.
>
>--
>Gary G. Little
>
>"Antranik" <ardziv1@freenet.am> wrote in message
>news:2a7301c373ab$cfc74210$a501280a@phx.gbl...
>> In the test_myDriver.cpp application I have the code
>>
>> ----------
>> char *sLinkName = "\\\\.\\myDevice0";
>>
>>
>> return CreateFile(sLinkName, GENERIC_READ |
GENERIC_WRITE,
>> FILE_SHARE_READ,
>> NULL,
>> OPEN_EXISTING,
>> FILE_ATTRIBUTE_NORMAL,
>> NULL);
>>
>> -------------
>>
>> Unfortunately in debug (on MS Visual C++ 6.0),
CreateFile
>> () is failing to get a handle to myDevice and whenever I
>> start the driver using Numega EzDriverInstaller or the
>> Hardware Installation Wizard the OS (WinXP) crashes and
>> sometimes I get the Blue Screen (sometimes the machine
>> goes automatically into reboot.) If it means anything, I
>> am running myDriver on the host machine (ain't got the
>> funding for a dedicated target machine).
>>
>> Can anyone offer any suggestions? Thanks.
>>
>> Antranik
>
>
>.
>