UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:wdfrequest.WdfRequestIsFrom32BitProcess |
WdfRequestIsFrom32BitProcess function (wdfrequest.h) |
The WdfRequestIsFrom32BitProcess method checks whether the originator of a specified I/O request is a 32-bit user-mode application. |
wdf\wdfrequestisfrom32bitprocess.htm |
wdf |
02/26/2018 |
|
DFRequestObjectRef_d700883f-10dc-428b-abbf-7d257d2bd62d.xml, WdfRequestIsFrom32BitProcess, WdfRequestIsFrom32BitProcess method, kmdf.wdfrequestisfrom32bitprocess, wdf.wdfrequestisfrom32bitprocess, wdfrequest/WdfRequestIsFrom32BitProcess |
wdfrequest.h |
Wdf.h |
Universal |
1.0 |
2.0 |
DriverCreate, InvalidReqAccess, InvalidReqAccessLocal, KmdfIrql, KmdfIrql2 |
Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF) |
<=DISPATCH_LEVEL |
Windows |
|
|
|
|
|
[Applies to KMDF and UMDF]
The WdfRequestIsFrom32BitProcess method checks whether the originator of a specified I/O request is a 32-bit user-mode application.
A handle to a framework request object.
On 64-bit systems,WdfRequestIsFrom32BitProcess returns TRUE if the originator of the current I/O request is a 32-bit user-mode process, and FALSE otherwise. On 32-bit systems, WdfRequestIsFrom32BitProcess always returns TRUE.
A bug check occurs if the driver supplies an invalid object handle.
Drivers can call WdfRequestIsFrom32BitProcess to determine whether an I/O request is likely to contain data elements that need to be converted, or "thunked," before they can be used in a 64-bit driver.
The specified request handle must have been obtained from one of the driver's I/O queues and not from a call to WdfRequestCreate.
The following code example determines if an I/O request came from a 32-bit application.
VOID
MyEvtIoRead(
IN WDFQUEUE Queue,
IN WDFREQUEST Request,
IN size_t Length
)
{
...
if (WdfRequestIsFrom32BitProcess(Request)) {
//
// The driver is running on a 64-bit computer and the
// I/O request came from a 32-bit application.
//
...
}
...
}