Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Puts an asynchronous operation on a work queue.
Syntax
HRESULT RtwqPutWorkItem(
[in] DWORD dwQueue,
[in] LONG lPriority,
[in] IRtwqAsyncResult *result
);
Parameters
[in] dwQueue
The identifier for the work queue. This value can specify one of the standard work queues, or a work queue created by the app. To access to a work queue, call RtwqLockSharedWorkQueue.
[in] lPriority
The priority of the work item. Work items are performed in order of priority. This value should be -1, 0, or 1, where -1 is the lowest priority and 1 is the highest priority.
[in] result
A pointer to the callback . The caller must implement this interface.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8.1 [desktop apps only] |
| Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | rtworkq.h |
| Library | Rtworkq.lib |
| DLL | RTWorkQ.dll |