PT-20 Programming Guide
49
Description
:
The DicskD_freesize function returns the free space in disk D.
Returns
:
0xffffffff : Disk C unformatted.
Others : The free space in disk D.(Bytes)
fErrorCode
:
None
getDirNum
Purpose
:
Get the folder quantity in designate path.
Syntax
:
int getDirNum(char *pssPath);
Example call
:
int Dir_Num;
Dir_Num = getDirNum(“C:\\”);
Includes
:
#include “SDK.h ”
Description
:
The getDirNum function can get the folder quantity in designate path.
Returns
:
-1 : path error.
-2 : disk unformat.
upward 0 : folder quantity.
fErrorCode
:
None
getFileNum
Purpose
:
Get the file quantity in designate path.
Syntax
:
int getFileNum(char *pssPath);
Example call
:
int File_Num;
File_Num = getFileNum(“C:\\Data\\”);
Includes
:
#include “SDK.h ”
Description
:
The getFileNum function can get the file quantity in designate path.
Returns
:
-1 : path error.
-2 : disk unformat.
upward 0 : folder quantity.
fErrorCode
:
None
getDirList
Purpose
:
Get the folder information in designate path.
Syntax
:
int getDirList(char *pssPath, char *pssBuffer);
Example call
:
int DirNum;
char assBuffer[100];
DirNum = getDirList (“C:\\”, assBuffer);
Includes
:
#include “SDK.h ”
Description
:
The getDirList function can get the folder quantity and name in designate
path.
When pssBuffer = NULL, this function will return the buffer size.
For example, the path “D:\” has three folders “Program”, “Fonts”,
“Lookup”, then the buffer will get folder information like “Program Fonts