[This is preliminary documentation and subject to change.]
The GetNtmsRequestOrder function gets the order that the specified request will be processed in the library queue.
DWORD WINAPI GetNtmsRequestOrder(
HANDLE hSession,
LPNTMS_GUID lpRequestId,
LPDWORD lpdwOrderNumber
);
If the GetNtmsRequestOrder function returns zero, ordering is not available for this request. The order number is specific to the type of request because the types are processed in a predetermined order.
For example, the NTMS_LM_DISMOUNT request is processed prior to an NTMS_LM_MOUNT request. Within a specific class of requests the queue can be ordered, however. The lower-ordered requests are processed first, for example, 1 is the first request processed, 2 is the next request processed, and so forth.
You can use this order number, the request type, the submission time, and the submission date to help view the queue in sorted order. Request type, order number, and submission time should perform sorting.
Currently on NTMS_LM_MOUNT, requests are sorted using the order number.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
Library Control Functions, SetNtmsRequestOrder