WDF_REL_TIMEOUT_IN_SEC - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfcore.h

WDF_EXTERN_C_START LONGLONG WDF_REL_TIMEOUT_IN_SEC(
  [in] ULONGLONG Time
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfcore-wdf_rel_timeout_in_sec)

WDF_REL_TIMEOUT_IN_SEC function

Description

[Applies to KMDF and UMDF]

The WDF_REL_TIMEOUT_IN_SEC function converts a specified number of seconds to a relative time value.

Parameters

Time [in]

The number of seconds to convert.

Return value

WDF_REL_TIMEOUT_IN_SEC returns the relative time value, in system time units (100-nanosecond intervals), that represents the number of seconds that Time specifies.

Remarks

A relative time is a time value that is relative to the current system time. For example, if a caller passes a relative time value of five seconds to a function that accepts a time-out value, the function will time out five seconds after it is called.

Examples

The following code example specifies a relative timeout value of 5 seconds for an I/O request.

WDF_REQUEST_SEND_OPTIONS  requestSendOptions;
...
requestSendOptions.Timeout = WDF_REL_TIMEOUT_IN_SEC(5);
...

See also

WDF_ABS_TIMEOUT_IN_SEC

WDF_REQUEST_SEND_OPTIONS