CreateFile on a device driver

From: sienaman (sienaman_at_discussions.microsoft.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 12:39:02 -0700

Whenever I try and hFile =
CreateFile(L"MYDRIVER1:",GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL)
where "MyDriver" is a driver I have built I get the following error
"The specified network resource or device is no longer available. " I am
pretty sure my driver is running because I was able to set a breakpoint in
DllMain and see that the DLL_PROCESS_ATTACH message arrives and no detach
message arrives. Also, I can see that my driver is loaded into device.exe's
memory using the remote process viewer. I have written several XP drivers but
since this my first CE driver I am a bit stumped on why my driver seems
loaded but CreateFile disagrees.



Relevant Pages

  • Occasional kernel panic...
    ... The ISO's are all built using script files and they are always built the ... They may include new packages but the boot image is built the ... RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize ... routing cache hash table of 512 buckets, ...
    (Debian-User)
  • Re: ALCXSENS.SYS
    ... built and so the Belarc inventory was invaluable in finding my sound card ... manufacturer. ... I downloaded the driver last night and it seems to have corrected a few ... The motherboard mftr.'s website if onboard video; ...
    (microsoft.public.windowsxp.newusers)
  • [PATCH 2.6] I2C: chips/Kconfig corrections
    ... If you say yes here you get support for Analog Devices ADM1025 ... This driver can also be built as a module. ...
    (Linux-Kernel)
  • Re: [OT] Re: keyboard driver of 2.6 kernel
    ... >>> doesn't exit in 2.4.22 ... IIRC, ... Not in the driver itself, of course, in rpl_ioctl.h and rpl_packet.h. ... Since the driver you ship in the ttyrpld tarball can only be built ...
    (Linux-Kernel)
  • Re: were is the .exe and .bsc??????
    ... you are trying to build a driver, it is not going to be a .exe it is ... most likely you have installed this ddk in a path that contains spaces. ... > not....I'm not sure what it should be there if it built it.... ... > it did create two directory obj and objchk\i836.... ...
    (microsoft.public.development.device.drivers)