Has anyone used the context fields when creating an object? I’m using
WdfCreateTimer and would like to pass volatile context information to the
timer callback function, and, per the normal state of stepping outside the
very limited documentation in WDF 5054, it’s the blind leading the blind.
Gary G. Little
You mean a context assigned via a WDF_OBJECT_ATTRIBUTES when you create
the timer? If so, that is the perfect way to pass data around to the
timer callback and set it from some other thread. Just use the context
accessor function that you declared for the type in
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME. This is just like the context you
create on your WDFDEVICE, all WDF object contexts behave the same way.
Does that help?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@seagate.com
Sent: Thursday, December 01, 2005 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Using WDF context space when creating objects
Has anyone used the context fields when creating an object? I’m using
WdfCreateTimer and would like to pass volatile context information to
the
timer callback function, and, per the normal state of stepping outside
the
very limited documentation in WDF 5054, it’s the blind leading the
blind.
Gary G. Little
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Yup, it looks to do the trick. It was simply a matter of “grok’ng” it and
finally finding the example under WDF_DECLARE_CONTEXT_TYPE_WITH_NAME to
instantiate “GetThatThereContext”.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, December 01, 2005 11:53 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Using WDF context space when creating objects
You mean a context assigned via a WDF_OBJECT_ATTRIBUTES when you create
the timer? If so, that is the perfect way to pass data around to the
timer callback and set it from some other thread. Just use the context
accessor function that you declared for the type in
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME. This is just like the context you
create on your WDFDEVICE, all WDF object contexts behave the same way.
Does that help?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@seagate.com
Sent: Thursday, December 01, 2005 9:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Using WDF context space when creating objects
Has anyone used the context fields when creating an object? I’m using
WdfCreateTimer and would like to pass volatile context information to
the
timer callback function, and, per the normal state of stepping outside
the
very limited documentation in WDF 5054, it’s the blind leading the
blind.
Gary G. Little
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com