ePass1000 C/C++ API Reference Manual Version 2.0 |
The epas_GetCurrentDir function returns the identifier of the currently selected directory.
EPAS_STATUS EPAS_API epas_GetCurrentDir( EPAS_HANDLE hContextHandle, // [in] unsigned long ulFlags, // [in] unsigned long* pulPath, // [out] unsigned long ulMaxLevels, // [in] unsigned long* pulRetLevels // [out] );
epas_CreateContext, epas_OpenDevice
The buffer is formatted as follows:
Dir[0] Defines the root directory ID.
Dir[n] Defines the child directory at level n relative to the root directory. n is in the range of 1 to pulRetLevels parameter.
To get the maximum number of directory levels use the epas_GetProperty function to retrieve the EPAS_SYSINFO structure.
If the function succeeds, FT_SUCCESS returned.
For a list of all return codes, see Status Return Values.
epas_CreateFile, epas_DeleteFile, epas_OpenFile, epas_CloseFile, epas_GetFileInfo, epas_Read, epas_Write, epas_DeleteDir, epas_ChangeDir, epas_Directory