Discuss this help topic in CBFS Forum

CallbackFileSystem.AddMountingPointEx method


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    


Adds a mounting point for the storage.


    procedure AddMountingPointEx(MountingPoint: TCBString; LocalLink : boolean; AuthenticationID : PInt64);
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    void AddMountingPointEx(const unsigned short *MountingPoint, BOOL LocalLink, DWORD Flags, PLUID AuthenticationID);

[C++ (VCL)]
    void __fastcall AddMountingPointEx(WideString MountingPoint, bool LocalLink, __int64 * AuthenticationID);

[C++ (.NET)]
    void AddMountingPointEx(String ^MountingPoint, bool LocalLink );
    void AddMountingPointEx(String ^MountingPoint, bool LocalLink, LUID AuthenticationID );

    void AddMountingPointEx(String MountingPoint, bool LocalLink);
    void AddMountingPointEx(String MountingPoint, bool LocalLink, LUID AuthenticationID);

    Sub AddMountingPointEx(ByVal MountingPoint As String, ByVal LocalLink As Boolean)
    Sub AddMountingPointEx(ByVal MountingPoint As String, ByVal LocalLink As Boolean, ByVal AuthenticationID As LUID)


  • MountingPoint - the mounting point without "\\.\" part.
  • LocalLink - if this parameter is true the added mounting point is visible only within the user session identified by AuthenticationId.
    If the parameter is false the mounting point is visible to all users, that are logged in already or that log in to the system while the storage remains active.
  • AuthenticationId - Authentication ID of the session. This parameter can be null/NULL/nil/Nothing if LocalLink is false or if the mounting point is added for the "current" session.


Use this method to add a mounting point for the mounted volume and specify whether the point is available only to specific user or to all users in the system. Use DeleteMountingPointEx to delete the mounting point.

If you create a plug-n-play device (StorageType property is set to stDiskPNP) which is not removable (scRemovableMedia flag is not set in StorageCharacteristics property), you may call this method only after successful call to MountMedia() method, otherwise you will get an error.

Read more about mounting points and authentication IDs.

See also

StorageCharacteristics     StorageType     MountingPointCountEx     AddNetworkMountingPoint     DeleteMountingPointEx     GetMountingPointEx     MountMedia    

Discuss this help topic in CBFS Forum