[This is preliminary documentation and subject to change.]
The UpdateNtmsOmidInfo function updates the RSM database with label information immediately after writing to the newly allocated medium.
DWORD WINAPI UpdateNtmsOmidInfo(
HANDLE hSession,
LPNTMS_GUID lpMediaId,
DWORD labelType,
DWORD numberOfBytes,
LPVOID lpBuffer
);
typedef struct
{
WCHAR FileSystemType[64];
WCHAR VolumeName[256];
DWORD SerialNumber;
} FILESYSTEM_INFO;
Value | Meaning |
---|---|
NTMS_OMID_TYPE_FILESYSTEM_INFO | The lpBuffer argument contains the raw bytes of the application label. This flag is used for Erasable/Optical and CD-ROM media that are labeled with file systems. |
NTMS_OMID_TYPE_RAW_LABEL | The lpBuffer argument contains the FILESYSTEM_INFO structure. This flag is used for tape media. |
The application updates RSM with the information supplied by the UpdateNtmsOmidInfo function and RSM verifies the information in the database. The label information is stored in the RSM database with the partition associated with this LMID.
The UpdateNtmsOmidInfofunction must be executed on the RSM server. Remote execution of this function results in an error.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
On-Media-Identifier Management Functions