Re: Re[2]: DeviceIOControl ... again ...
"Timur Safin" <[email protected]> Sun, 28 Aug 2005 14:09:00 +0400
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Soya, That was a couple of years ago when I worked with NDIS drivers, so details might be vague. Anyhow, I'll try to help (though it is largely offtopic for JEDI list). 1. You mentioned you used DDK 2600 build (which is Windows XP DDK fortunately), so if you run the test sample under Windows XP the protocol driver should be preinstalled (look into %SystemRoot%\SYSTEM32\Drivers for ndisuio.sys file); 2. Since the moment they have release XP they have changed mind and renamed protocol driver in DDK from ndisuio to ndisprot. That was made for purpose. There were introduced many painful problems made by some not very careful programmers once they started to rely either on ndisuio existence, or used the modified ndisuio sample without modifying the resultant driver name. Just don't do it! 3. Anyhow. Let try to make WINDDK sample (ndis\ndisuio\test) to work. Please read carefully instructions in the ndisprot\ndisprot.htm, build the user-level test sample (build -czg), start the installed version of a driver with commands mentioned in the readme, and check UIOTEST sample. If you were careful enough you should be ok till the moment. And could reproduce the same tests with your Delphi derivative. For a future: if you want to modify a bit ndisuio.sys driver - change the target protocol driver name first. Or better yet - start from the WINDDK 3790.1106 (aka Windows 2003 Server SP1 DDK) version. It is already renamed, and you won't get problems with built-in protocol driver. If you would still the problems in modifications of your NDIS protocol driver - go ask to the proper forums: 1. The only NDIS specific-list - [email protected] ; 2. driver-developments list on OSR.com - news://lists.osr.com/ntdev/ 3. Driver-developments list on Microsoft.com - news://msnews.microsoft.com/microsoft.public.development.device.drivers (and several others); Good Luck, Timur ----- Original Message ----- From: "soya protein" <[email protected]> To: "Oliver Schneider" <[email protected]> Sent: Sunday, August 28, 2005 12:42 AM Subject: Re[2]: [Delphi-JEDI] DeviceIOControl ... again ... > Hello Oliver, > > Saturday, August 27, 2005, 10:27:47 PM, you wrote: > >>> I don't know why this should happen, but DeviceIOControl() >>> fails again with code 50. >> ERROR_NOT_SUPPORTED ... makes sense, if you did something wrong. > >>> I tried the \src\network\ndis\ndisuio\test\uiotest.c example from >>> DDK 2600 and it also fails with error code 32 ("unsupported operation" >>> !?). >> And you are sure that the appropriate driver is running? That you converted >> the IOCTLs correctly and all this? > > I've changed the original ndisuio example to print all required constants > in hex and then copied the results. > > It should be ok. I'll have to reinstall the DDK, there's no other way > around it. > IIRC i was tinkering with header files ... It doesn't pay to "play God" in > that arena. > > -- > Best regards, > soya > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/