CBDisk.MountMedia method
Filter:
Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Mounts a media, making it accessible for reading and writing.
Declaration
[Pascal]
procedure MountMedia(Timeout: Integer;
ReadOnly: boolean);
[C++ (Lib)]
void MountMedia(unsigned long Timeout, bool ReadOnly);
[C++ (VCL)]
void __fastcall MountMedia(long Timeout, bool ReadOnly);
[C++ (.NET)]
void MountMedia(long Timeout, bool ReadOnly);
[C#]
void MountMedia(int Timeout, bool ReadOnly);
[VB.NET]
Sub MountMedia(ByVal Timeout As Integer, ReadOnly As Boolean)
Parameters
- Timeout - specifies the timeout, after which the call to callback function will be cancelled by the driver, and timeout error will be reported to the system.
- ReadOnly - when the parameter is set to true, the media is mounted as read-only.
Description
Use this method to mount new media to the created storage. Call this method after calling CreateStorage. You can add mounting points before or after calling MountMedia.
Timeout is specified in milliseconds. The value of 0 (zero) means "timeout is not used". It's good idea to set timeout to 0 when you do debugging of your callback functions. Remember to set timeout to some reasonable value (for example, 30 seconds) for release version.
See also
CreateStorage AddMountingPoint UnmountMedia DeleteStorage
Got questions or comments about this topic? Tell us about them.

