[This is preliminary documentation and subject to change.]
The InjectNtmsMedia function allows media to be inserted into the port of the specified online library. If the library is busy, RSM queues InjectNtmsMedia and returns success.
DWORD WINAPI InjectNtmsMedia(
HANDLE hSession,
LPNTMS_GUID lpLibraryId,
LPNTMS_GUID lpInjectOperation,
DWORD dwAction
);
Value | Meaning |
---|---|
NTMS_INJECT_START | Start the insert operation with a port. Media is repeatedly inserted until the time-out event occurs or the NTMS_INJECT_STOP flag is issued. |
NTMS_INJECT_STOP | Terminate the insertion process prior to the time-out event lapsing. |
If the library specified by the InjectNtmsMedia function does not have a port, use the AccessNtmsLibraryDoor function to insert and eject media.
This function is valid only for online libraries.
This function returns to the application as soon as the insert request is queued.
Insert begins the process of inserting media into an online library. Because libraries vary on the functionality of the NTMS_IEPORT object, each device may operate slightly differently. The following steps describe how to insert media into a library:
If there are not enough slots for the media in the NTMS_IEPORT object, the media remains in the NTMS_IEPORT object and an Operator Request is posted to have media removed from the library.
If there are no free slots, the InjectNtmsMedia function receives 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.
Library Control Functions, EjectNtmsMedia