Who Create WdfFunctions

I wonder who created the global paramters WdfFunctions and WdfDriverGlobals. I can only find them in wdf.h and wdfglobal.h, where they are declared with a “extern” prefix. But can’t find any way where they are initially created.
I guess its wdfldr did it. Right?
Anything will be appriciated.

Why do you care> They are part of the undocumented infastructure of KMDF
they aren’t something that you act on directly.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

“changpei1982” wrote in message
news:xxxxx@ntdev…
> I wonder who created the global paramters WdfFunctions and
> WdfDriverGlobals. I can only find them in wdf.h and wdfglobal.h, where
> they are declared with a “extern” prefix. But can’t find any way where
> they are initially created.
> I guess its wdfldr did it. Right?
> Anything will be appriciated.
>
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 5364 (20100813)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 5364 (20100813)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

They are declared for you by wdfdriverentry.lib which is linked against your driver.

d

dent from a phpne with no keynoard

-----Original Message-----
From: changpei1982
Sent: August 13, 2010 7:02 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Who Create WdfFunctions

I wonder who created the global paramters WdfFunctions and WdfDriverGlobals. I can only find them in wdf.h and wdfglobal.h, where they are declared with a “extern” prefix. But can’t find any way where they are initially created.
I guess its wdfldr did it. Right?
Anything will be appriciated.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

>>Why do you care> They are part of the undocumented infastructure of KMDF

>they aren’t something that you act on directly.
I just curiously about this. If no one create it, they can’t be used. They are list on the wdf header file, and used anywhere. But no way, no document show where they come from. I hate undocument on this point, and it prevent my thought.
Any way, thanks Don!

Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“changpei1982” wrote in message
news:xxxxx@ntdev…
> I wonder who created the global paramters WdfFunctions and
> WdfDriverGlobals. I can only find them in wdf.h and wdfglobal.h, where
> they are declared with a “extern” prefix. But can’t find any way where
> they are initially created.
> I guess its wdfldr did it. Right?
> Anything will be appriciated.
>
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 5364 (20100813)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
Information from ESET NOD32 Antivirus, version of virus signature database 5364 (20100813)
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com

NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

>>They are declared for you by wdfdriverentry.lib which is linked against your driver.
Got! Thank you Doron!

d
dent from a phpne with no keynoard
-----Original Message-----
From: changpei1982
Sent: August 13, 2010 7:02 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Who Create WdfFunctions
I wonder who created the global paramters WdfFunctions and WdfDriverGlobals. I can only find them in wdf.h and wdfglobal.h, where they are declared with a “extern” prefix. But can’t find any way where they are initially created.
I guess its wdfldr did it. Right?
Anything will be appriciated.

NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer