WdfLookasideCreate() takes an WDF_OBJECT_ATTRIBUTES structure for both the
WDFLOOKASIDE itself and the WDFMEMORY objects that will eventually be
created from the underlying lookaside list.
I have initialized the object attributes for the ‘memory’ with
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE() specifying a struct typedef name
that was declared in a WDF_DECLARE_CONTEXT_TYPE_WITH_NAME().
Allocations from the WDFLOOKASIDE succeed but when the I attempt to retrieve
the typed context from the WDFMEMORY, NULL is returned.
Am I missing some key point here? Should this work?
On a secondary note: The symbols for the checked build of KMDF from the
6001 WDK fail to download from the MSFT symbol server. Am I wrong to expect
that these should have downloaded?
Thanks,
-dave
Can you post the code? What does !wdfkd.wdfhandle and !wdfkd.wdfhandle say?
Thx
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Friday, January 25, 2008 8:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting object context from WDFMEMORY allocated from WDFLOOKASIDE failing
WdfLookasideCreate() takes an WDF_OBJECT_ATTRIBUTES structure for both the
WDFLOOKASIDE itself and the WDFMEMORY objects that will eventually be
created from the underlying lookaside list.
I have initialized the object attributes for the ‘memory’ with
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE() specifying a struct typedef name
that was declared in a WDF_DECLARE_CONTEXT_TYPE_WITH_NAME().
Allocations from the WDFLOOKASIDE succeed but when the I attempt to retrieve
the typed context from the WDFMEMORY, NULL is returned.
Am I missing some key point here? Should this work?
On a secondary note: The symbols for the checked build of KMDF from the
6001 WDK fail to download from the MSFT symbol server. Am I wrong to expect
that these should have downloaded?
Thanks,
-dave
—
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
Doron,
False alarm. I am an idiot. After painstakingly extracting a ‘test-case’
for this scenario to post in isolation, of course, the test case worked. I
then picked through the original code for the 14th time and found a typo
from a cut/paste I had repeatedly missed which ultimately resulted in that I
was asking for the wrong context from the memory object. My bad.
Thanks,
-dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Saturday, January 26, 2008 7:12 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
Can you post the code? What does !wdfkd.wdfhandle and
!wdfkd.wdfhandle say?
Thx
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Friday, January 25, 2008 8:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
WdfLookasideCreate() takes an WDF_OBJECT_ATTRIBUTES structure for both the
WDFLOOKASIDE itself and the WDFMEMORY objects that will eventually be
created from the underlying lookaside list.
I have initialized the object attributes for the ‘memory’ with
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE() specifying a struct typedef name
that was declared in a WDF_DECLARE_CONTEXT_TYPE_WITH_NAME().
Allocations from the WDFLOOKASIDE succeed but when the I attempt to retrieve
the typed context from the WDFMEMORY, NULL is returned.
Am I missing some key point here? Should this work?
On a secondary note: The symbols for the checked build of KMDF from the
6001 WDK fail to download from the MSFT symbol server. Am I wrong to expect
that these should have downloaded?
Thanks,
-dave
—
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
BTW - the secondary problem of not being able to get symbols for
WDF01000.SYS (checked) from WDK 6001 rendered wdfkd somewhat less than
useful in this case. I really would like to figure out where I should be
getting symbols for this component from.
Thanks,
-dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Monday, January 28, 2008 8:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
Doron,
False alarm. I am an idiot. After painstakingly extracting a ‘test-case’
for this scenario to post in isolation, of course, the test case worked. I
then picked through the original code for the 14th time and found a typo
from a cut/paste I had repeatedly missed which ultimately resulted in that I
was asking for the wrong context from the memory object. My bad.
Thanks,
-dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Saturday, January 26, 2008 7:12 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
Can you post the code? What does !wdfkd.wdfhandle and
!wdfkd.wdfhandle say?
Thx
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Friday, January 25, 2008 8:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
WdfLookasideCreate() takes an WDF_OBJECT_ATTRIBUTES structure for both the
WDFLOOKASIDE itself and the WDFMEMORY objects that will eventually be
created from the underlying lookaside list.
I have initialized the object attributes for the ‘memory’ with
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE() specifying a struct typedef name
that was declared in a WDF_DECLARE_CONTEXT_TYPE_WITH_NAME().
Allocations from the WDFLOOKASIDE succeed but when the I attempt to retrieve
the typed context from the WDFMEMORY, NULL is returned.
Am I missing some key point here? Should this work?
On a secondary note: The symbols for the checked build of KMDF from the
6001 WDK fail to download from the MSFT symbol server. Am I wrong to expect
that these should have downloaded?
Thanks,
-dave
—
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
—
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
Glad it all worked out in the end 
D
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Monday, January 28, 2008 5:45 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Getting object context from WDFMEMORY allocated from WDFLOOKASIDE failing
Doron,
False alarm. I am an idiot. After painstakingly extracting a ‘test-case’
for this scenario to post in isolation, of course, the test case worked. I
then picked through the original code for the 14th time and found a typo
from a cut/paste I had repeatedly missed which ultimately resulted in that I
was asking for the wrong context from the memory object. My bad.
Thanks,
-dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Saturday, January 26, 2008 7:12 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
Can you post the code? What does !wdfkd.wdfhandle and
!wdfkd.wdfhandle say?
Thx
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Friday, January 25, 2008 8:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting object context from WDFMEMORY allocated from
WDFLOOKASIDE failing
WdfLookasideCreate() takes an WDF_OBJECT_ATTRIBUTES structure for both the
WDFLOOKASIDE itself and the WDFMEMORY objects that will eventually be
created from the underlying lookaside list.
I have initialized the object attributes for the ‘memory’ with
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE() specifying a struct typedef name
that was declared in a WDF_DECLARE_CONTEXT_TYPE_WITH_NAME().
Allocations from the WDFLOOKASIDE succeed but when the I attempt to retrieve
the typed context from the WDFMEMORY, NULL is returned.
Am I missing some key point here? Should this work?
On a secondary note: The symbols for the checked build of KMDF from the
6001 WDK fail to download from the MSFT symbol server. Am I wrong to expect
that these should have downloaded?
Thanks,
-dave
—
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
—
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