MountDirectory 825gen2
Mount to a share
bool MountDirectory(const char* dev, const char* mountPath, const char* options, const char* type = NULL); bool MountDirectory(string& strDev, string& strMountPath, string& strOptions, const char* type = NULL); bool MountDirectory(string& strDev, string& strMountPath, const char* options, const char* type = NULL); bool MountDirectory(const char* dev, string& strMountPath, const char* options, const char* type = NULL);
Parameters
- path -
Return Value
- Returns true if successful
Remarks
Examples
if(MountDirectory("/dev/sda1", "/run/media/sda1", "umask=0007,gid=6") == true) { printf("Mounted successfully"); }
See Also
Last modified
6 months ago
Last modified on 05/17/24 12:53:55
Note:
See TracWiki
for help on using the wiki.