Re: CreateFile on a device driver

From: Paul L (nospam_at_nospam.org)
Date: 08/30/04


Date: Sun, 29 Aug 2004 17:50:02 -0700

If you want good template for working CE drivers, run the driver Wizard at
http://www.codetelligence.com/productsCE.htm

It's a free download.

Paul L
www.codetelligence.com
"sienaman" <sienaman@discussions.microsoft.com> wrote in message
news:959DE913-B2A9-41B6-8E55-2E73B7AB9E45@microsoft.com...
> 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

  • Re: Connect or disconnect from network
    ... Paul G. Tobey ha escrito: ... > file from the SDK for your target device. ... > Constants and types to access the NDISUIO driver. ... > // by the input buffer length passed to DeviceIoControl. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Tracy engages gearbox before brain...
    ... Tag had some justification for his actions. ... Regardless of who it is, Champ Car should give the offending driver, in this case PT, a few races to cool down before they let him back on the track. ... Should Paul be subjected to a worse penality than historically they have handed down because he is Paul Tracy and has a big mouth at times? ... Legge's incident did not endanger herself or other drvers in the same way Tracy's did. ...
    (rec.autos.sport.cart)
  • Re: What is the equivalent of REG32 type in C#?
    ... Paul G. Tobey wrote: ... driver to add or remove an 'interested party'. ... implement a call back from the IST in the driver to managed code. ... For those who have done this kind of stuff, are ISTs ever done at ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Compiling modified driver
    ... As Paul pointed out earlier, don't modify files in the Public folder, so ... You have a project.reg for that kind of registry setting. ... new function driver in common.reg with appropriate flag. ... actual SOURCES file. ...
    (microsoft.public.windowsce.embedded)
  • Re: Accessing peripherals from a managed application
    ... And .NET CF 2.0 has serial port classes built into it... ... I tried the P/Invoke Wizard from Paul Yao's ... Maybe you open the driver with CreateFile, ... Call on the imported functions to access the hardware. ...
    (microsoft.public.windowsce.app.development)