NTMS_LIBREQUESTINFORMATIONW structure (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The NTMS_LIBREQUESTINFORMATION structure defines the properties specific to a work request, which are queued to RSM.
Syntax
typedef struct _NTMS_LIBREQUESTINFORMATIONW {
DWORD OperationCode;
DWORD OperationOption;
DWORD State;
NTMS_GUID PartitionId;
NTMS_GUID DriveId;
NTMS_GUID PhysMediaId;
NTMS_GUID Library;
NTMS_GUID SlotId;
SYSTEMTIME TimeQueued;
SYSTEMTIME TimeCompleted;
WCHAR szApplication[NTMS_APPLICATIONNAME_LENGTH];
WCHAR szUser[NTMS_USERNAME_LENGTH];
WCHAR szComputer[NTMS_COMPUTERNAME_LENGTH];
DWORD dwErrorCode;
NTMS_GUID WorkItemId;
DWORD dwPriority;
} NTMS_LIBREQUESTINFORMATIONW;
Members
OperationCode
Item operation. This can be one of the following values.
OperationOption
Work item options (command specific).
State
Current state of this work item. This can be one of the following values.
PartitionId
Unique identifier of a side being serviced.
DriveId
Unique identifier of a drive being serviced.
PhysMediaId
Unique identifier of a piece of physical media being serviced.
Library
Library for this request.
SlotId
Unique identifier of a slot of the piece of physical media being serviced.
TimeQueued
System time that this request was queued to RSM.
TimeCompleted
System time that this request was completed by RSM.
szApplication[NTMS_APPLICATIONNAME_LENGTH]
Application that submitted the operator request.
szUser[NTMS_USERNAME_LENGTH]
Interactive user logged on to the computer that submitted the operator request.
szComputer[NTMS_COMPUTERNAME_LENGTH]
Computer that submitted the operator request.
dwErrorCode
Error return for requests that return with state NTMS_LM_FAILED. This is a system error code.
WorkItemId
Associated work item ID for this request. This is currently used to contain the work item ID to be canceled on an NTMS_LM_REMOVE request.
dwPriority
Priority of the work item.
Remarks
The NTMS_LIBREQUESTINFORMATION structure is included in the NTMS_OBJECTINFORMATION structure.
GUID in the work times may become not valid over time. For example, an eject of a free medium deletes the PMID after the media is ejected. However the work item is not updated upon completion of the eject.
Note
The ntmsapi.h header defines NTMS_LIBREQUESTINFORMATION as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | ntmsapi.h |