Re: Is this interface WdfDeviceInterfaceDeReferenceNoOp provided in DDK header? compiler is cribbing

Praveen Kumar Amritaluru wrote:

When I use WdfDeviceInterfaceDeReferenceNoOp within my code, its cribbing
during compilation with
the following error:

\kmdf\nvnwcdevt.c(1215) : error C2065: ‘WdfDeviceInterfaceDeReferenceNoOp’ :
undeclared identifier

DDK mentions about the following explanation for this routine:

VOID
WdfDeviceInterfaceDereferenceNoOp(
PVOID Context
);

Search of ddk shows only toaster\bus\dynamic\buspdo.c is using it.
But I dont find definition for this function/interface in header files under
C:\WinDDK\5384\src\kmdf.

Although the comments in the include file have the name spelled
“DeReference”, the actual spelling is “Dereference”. It’s defined in
wdfqueryinterface.h.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Doron Holan wrote:

Check your spelling :wink:

>findstr NoOp *.h
>
>
wdfqueryinterface.w:// o WdfDeviceInterfaceReferenceNoOp
wdfqueryinterface.w:// o WdfDeviceInterfaceDeReferenceNoOp
wdfqueryinterface.w:WdfDeviceInterfaceReferenceNoOp(
wdfqueryinterface.w:WdfDeviceInterfaceDereferenceNoOp(

That might be good advice for the KMDF team, too. Did you notice that
the comments are spelled differently from the prototype?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

I saw that, it will be fixed in the future. The docs are the definitive
source and I believe it is spelled correctly there. Furthermore, the
sample which uses it has it spelled correctly too if you are coyping
from a sample.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, July 28, 2006 4:45 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Is this interface WdfDeviceInterfaceDeReferenceNoOp
provided in DDK header? compiler is cribbing

Doron Holan wrote:

Check your spelling :wink:

>findstr NoOp *.h
>
>
wdfqueryinterface.w:// o WdfDeviceInterfaceReferenceNoOp
wdfqueryinterface.w:// o WdfDeviceInterfaceDeReferenceNoOp
wdfqueryinterface.w:WdfDeviceInterfaceReferenceNoOp(
wdfqueryinterface.w:WdfDeviceInterfaceDereferenceNoOp(

That might be good advice for the KMDF team, too. Did you notice that
the comments are spelled differently from the prototype?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

OK. I got the problem. I took it from buspdo.c and thats the source of
error:

C:\WinDDK\5384\src\kmdf>findstr /nips WdfDeviceInterfacereferenceNoOp *.c
toaster\bus\dynamic\buspdo.c:417: WdfDeviceInterfaceReferenceNoOp;
toaster\bus\static\buspdo.c:231: WdfDeviceInterfaceReferenceNoOp;

“Doron Holan” wrote in message
news:xxxxx@ntdev…
I saw that, it will be fixed in the future. The docs are the definitive
source and I believe it is spelled correctly there. Furthermore, the
sample which uses it has it spelled correctly too if you are coyping
from a sample.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, July 28, 2006 4:45 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Is this interface WdfDeviceInterfaceDeReferenceNoOp
provided in DDK header? compiler is cribbing

Doron Holan wrote:

>Check your spelling :wink:
>
>
>
>>findstr NoOp *.h
>>
>>
>wdfqueryinterface.w:// o WdfDeviceInterfaceReferenceNoOp
>wdfqueryinterface.w:// o WdfDeviceInterfaceDeReferenceNoOp
>wdfqueryinterface.w:WdfDeviceInterfaceReferenceNoOp(
>wdfqueryinterface.w:WdfDeviceInterfaceDereferenceNoOp(
>

That might be good advice for the KMDF team, too. Did you notice that
the comments are spelled differently from the prototype?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks Tom.

“Tim Roberts” wrote in message news:xxxxx@ntdev…
> Praveen Kumar Amritaluru wrote:
>
>>When I use WdfDeviceInterfaceDeReferenceNoOp within my code, its cribbing
>>during compilation with
>>the following error:
>>
>>\kmdf\nvnwcdevt.c(1215) : error C2065: ‘WdfDeviceInterfaceDeReferenceNoOp’
>>:
>>undeclared identifier
>>
>>DDK mentions about the following explanation for this routine:
>>
>>VOID
>> WdfDeviceInterfaceDereferenceNoOp(
>> PVOID Context
>> );
>>
>>Search of ddk shows only toaster\bus\dynamic\buspdo.c is using it.
>>But I dont find definition for this function/interface in header files
>>under
>>C:\WinDDK\5384\src\kmdf.
>>
>>
>
> Although the comments in the include file have the name spelled
> “DeReference”, the actual spelling is “Dereference”. It’s defined in
> wdfqueryinterface.h.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>

>> The docs are the definitive source

LOL… Now THERE’s a statement that’ll come back to haunt you :wink:

Peter
OSR