Re: KMDF Interface : is it possible to use a c++ class ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



if you are exporting an interface via WdfDeviceAddQueryInterface, eachof the
function pointers you pass in must be static pointers since the caller will
not have the this pointer.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"b.lu" <b.lu@xxxxxxxxxxxxx> wrote in message
news:%23zi$9IHbGHA.1228@xxxxxxxxxxxxxxxxxxxxxxx
Dear Skywing,
thank you for your answer.

I think I will not do, but how to do (it is just curiosity) ?

Thank you,
Blu


Skywing ha scritto:
I would not recommend it. If you change the class or upgrade the
compiler you risk breaking compatibility with existing binaries.

"b.lu" <b.lu@xxxxxxxxxxxxx> wrote in message
news:%23yuqSwGbGHA.488@xxxxxxxxxxxxxxxxxxxxxxx

Dear all,
I'm developing a driver similar to Toaster example using Kernel Mode
Driver Framework.

Is it possible to create an interface to export a c++ class instead of c
functions with WdfDeviceAddQueryInterface ?

Unfortunately when I try to call class members from Function Driver build
stop with unresolved external error (and it is obvious because class
member are not implemented in Function Driver but only in Bus Driver).

Thank you very much,
Blu.



.



Relevant Pages

  • Re: Linux Firewall/LoadBalancer
    ... The bonding driver originally came from Donald Becker's beowulf patches for ... Build kernel with the bonding driver ... "Bonding driver support" in the "Network device support" section. ... so the bonding driver will automatically load when the bond0 interface is ...
    (Security-Basics)
  • Re: [RFC] Staging:IIO: New ABI
    ... Hardware chip or device accessed by on communication port. ... An event driven driver of data capture to an in kernel buffer. ... There is already a well-defined api for these things. ... don't have a custom interface just for these device. ...
    (Linux-Kernel)
  • [PATCH] IPMI driver updates, part 2
    ... It has been far too long since the last IPMI driver updates, ... This second part adds the "System Interface" driver. ...
    (Linux-Kernel)
  • [2.6 patch] remove comx driver docs
    ... info on the driver for Baycom style amateur radio modems ... -LMI) protocols are available as link-level protocol. ... -The COMX driver set has a new type of user interface based on the /proc ... -To create the interface 'comx0' which is the first channel of a COMX card: ...
    (Linux-Kernel)
  • [2.6 patch] remove the documentation for the legacy CDROM drivers
    ... This patch removes the documentation for the removed legacy CDROM drivers. ... SC1200 WDT DRIVER ... LaTeX document on standardizing the CD-ROM programming interface. ... THIS DRIVER WILL WORK WITH THE CD-ROM DRIVES LISTED, ...
    (Linux-Kernel)