1.2.7.4.37 SYS_FS_CurrentDriveGet Function
1.2.7.4.37 C
SYS_FS_RESULT SYS_FS_CurrentDriveGet
(
char* buffer
);
1.2.7.4.37 Summary
Gets the current drive.
1.2.7.4.37 Description
This function gets the present drive being used. The drive information is populated in the buffer.
1.2.7.4.37 Precondition
The disk has to be mounted.
1.2.7.4.37 Parameters
| Parameters | Description |
|---|---|
| buffer | Pointer to buffer which will hold the name of present drive being used |
1.2.7.4.37 Returns
SYS_FS_RES_SUCCESS - Current drive get operation was successful.
SYS_FS_RES_FAILURE - Current drive get operation was unsuccessful. The reason for the failure can be retrieved with SYS_FS_Error.
1.2.7.4.37 Example
SYS_FS_RESULT res;
char buffer[255];
res = SYS_FS_CurrentDriveGet(buffer);
if(res == SYS_FS_RES_FAILURE)
{
// Operation failed.
}
1.2.7.4.37 Remarks
None.
