Re: KMDF Interface : is it possible to use a c++ class ?
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 10:40:45 -0700
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.
.
- Follow-Ups:
- Re: KMDF Interface : is it possible to use a c++ class ?
- From: Mark Roddy
- Re: KMDF Interface : is it possible to use a c++ class ?
- References:
- Prev by Date: Re: KMDF Interface : is it possible to use a c++ class ?
- Next by Date: Re: KSPIN_DISPATCH members for KSCATEGORY_TVTUNER filter
- Previous by thread: Re: KMDF Interface : is it possible to use a c++ class ?
- Next by thread: Re: KMDF Interface : is it possible to use a c++ class ?
- Index(es):
Relevant Pages
|