Re: How to include IOCTL Command into a DLL by Valter
Valter
Mon Aug 20 07:11:52 CDT 2007
=?Utf-8?B?SmltbXkgTGlt?= <JimmyLim@discussions.microsoft.com> wrote
in news:EC507479-A359-43FF-A15F-FBDD20EA1140@microsoft.com:
> Hi All,
> I have create a dll to control a driver. I wish to use IOCTL
> method to let
> application access function into this driver. How do I achieve it?
>
> What setting should i set? Or should I just add the
> XXX_IOControl API
> prototype and insert my codes which a big switch case statement?
You should implement the XXX_IOControl function inside your driver.
You can implement it as a big switch statement, calling different
functions or throught a code-function pointer table.
You can then provide and application dll/library that wraps the
DeviceIoControl calls into more intuitive function calls or into a C++
object.
--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)