Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The SetNtmsRequestOrder function sets the order that the specified request will be processed in the library queue.
Syntax
DWORD SetNtmsRequestOrder(
[in] HANDLE hSession,
[in] LPNTMS_GUID lpRequestId,
[in] DWORD dwOrderNumber
);
Parameters
[in] hSession
Handle to the session returned by the OpenNtmsSession function.
[in] lpRequestId
Unique identifier of a library request.
[in] dwOrderNumber
Order that the request will be processed in the queue.
Return value
This function returns one of the following values.
| Value | Meaning |
|---|---|
|
NTMS_CONTROL_ACCESS to the computer is denied. Other security errors are also possible, but they would indicate a security subsystem error.
Windows XP: No access rights are required. |
|
The database is inaccessible or damaged. |
|
The session handle is missing or is not valid. |
|
The library request identifier is missing. |
|
A request object with the specified identifier cannot be found. |
|
The function was successful. |
Remarks
Currently NTMS_LM_MOUNT requests are sorted using the order number.
The order number set by the SetNtmsRequestOrder function is specific to the type of request because the types are processed in a predetermined order. For example, an 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.
To process a request immediately, an application can set the order number to 1. To defer processing, an application should set the order number to a very large number or 0xFFFFFFFF. The order number of a request, which currently has an order number of zero, cannot be changed.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | ntmsapi.h |
| Library | Ntmsapi.lib |
| DLL | Ntmsapi.dll |