Hi,
I'm trying to pend a PCPROPERTY_REQUEST and complete it at a later stage. My
code snippet is below. What I observed is that the PropertyRequest seem to
get completed in the end even though I return STATUS_PENDING. From DDK, this
seems to be all that is needed to pend the request. I need to pend the
request as I cannot complete it now. Can anyone advise me on this?
NTSTATUS
PropertyHandler_MyHandle
(
IN PPCPROPERTY_REQUEST PropertyRequest
)
{
ASSERT(PropertyRequest);
NTSTATUS ntStatus = STATUS_INVALID_PARAMETER;
if (PropertyRequest->Verb & KSPROPERTY_TYPE_GET)
{
switch (PropertyRequest->PropertyItem->Id)
{
case TO_PEND_CASE:
{
g_pPropertyRequest = PropertyRequest;
ntStatus = STATUS_PENDING;
break;
}
......
......
}
}
return ntStatus;
}
NTSTATUS
DeferredCompleteRequest(void)
{
....
PcCompletePendingPropertyRequest(g_pPropertyRequest);
...
}
Thanks,
Regards
Kee Seng