EvtRequestImpersonate
WdfRequestGetEffectiveIoType method
WdfRequestGetRequestorProcessId method
WdfRequestGetUserModeInitiatedIo method
WdfRequestImpersonate method
WdfRequestIsFromUserModeDriver method
WdfRequestRetrieveActivityId method
WdfRequestSetActivityId method
WdfRequestSetUserModeDriverInitiatedIo method
展开 最小化

WdfRequestGetCompletionParams 方法

The WdfRequestGetCompletionParams method retrieves the I/O completion parameters that are associated with a specified framework request object.

语法

VOID WdfRequestGetCompletionParams(
  [in]   WDFREQUEST Request,
  [out]  PWDF_REQUEST_COMPLETION_PARAMS Params
);

参数

Request [in]

A handle to a framework request object.

Params [out]

A pointer to a caller-supplied WDF_REQUEST_COMPLETION_PARAMS structure.

返回值

None.

A bug check occurs if the driver supplies an invalid object handle.

评论

After a driver has called WdfRequestSend to synchronously or asynchronously send an I/O request to an I/O target, and after the I/O target has completed the I/O request, the driver can call WdfRequestGetCompletionParams to obtain the I/O request's completion parameters.

Note that if your driver calls one of the methods that sends I/O requests to I/O targets only synchronously (such as WdfIoTargetSendReadSynchronously), the driver must not call WdfRequestGetCompletionParams.

The WdfRequestGetCompletionParams method copies the I/O request's completion parameters into the specified WDF_REQUEST_COMPLETION_PARAMS structure.

For more information about WdfRequestGetCompletionParams, see Completing I/O Requests.

示例

The following code example initializes a WDF_REQUEST_COMPLETION_PARAMS structure and then calls WdfRequestGetCompletionParams.

WDF_REQUEST_COMPLETION_PARAMS completionParams;

WDF_REQUEST_COMPLETION_PARAMS_INIT(&completionParams);
WdfRequestGetCompletionParams(
                              request,
                              &completionParams
                              );

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfrequest.h (包括Wdf.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<=DISPATCH_LEVEL

另请参见

WDF_REQUEST_COMPLETION_PARAMS
WDF_REQUEST_COMPLETION_PARAMS_INIT
CompletionRoutine

 

 

社区附加资源

添加
显示:
© 2015 Microsoft