IFSMgr_CDROM_Attach
IFSMgr_CDROM_Attach(
unsigned long Drive,
unsigned long * pVRP,
int fDoMount
)
This service is used by the CD-ROM FSD while doing asynchronous operations. It indicates to the IFS manager that it has a reference to the resource so that it will not disappear while the operation is still in effect. It also has an option to not mount even if the volume needs to be mounted. This can be used by FSDs that perform asynchronous operations.
- Drive
- Supplies the 0-based drive number of the drive the attachment needs to be done to.
- pVRP
- Supplies a pointer to the variable in which the IFS manager returns the system volume handle for this drive. This handle is later used to pass requests down to the IOS.
- fDoMount
- Supplies a boolean flag indicating whether a mount operation is allowed or not. A value of TRUE indicates that the mount operation can be done, if necessary. An error is returned if a mount is needed, but is not allowed.
- Returns 0 if successful. If a mount was needed, but not allowed by the caller using the fDoMount flag, an errorcode of -1 is returned. If the mount was allowed, but there were errors mounting the drive, the appropriate errorcode is returned.
pVRP |
Contains the system volume handle for the specified drive on a successful return. |