38.9.4.18 Read CF card file list (optional folder name)

The file list in the IPC CF card is output to the file, sent as a parameter. You can optionally define the folder of the file list you want to get.

Function Name

INT WINAPI EasyGetListInCfCard(LPCSTR sNodeName, LPCSTR sDirectory, INT* oiCount, LPCSTR sSaveFileName) ;

Argument

sNodeName: The station name is fixed as #WinGP.

sDirectory: Gets the folder name in uppercase characters

oiCount: Number of files read

sSaveFileName: Filename where directory information is stored. In the defined file, data stored in the stEasyDirInfo formatted array is, in the quantity returned in the pioCount, stored as binary data. Saves the filename and extension in uppercase characters.

struct stEasyDirInfo {
   BYTE bFileName[8+1];// File name (NULL terminated).
   BYTE bExt[3+1];// File extension (NULL terminated).
   BYTE bDummy[3];// dummy.
   DWORD dwFileSize;// File size.
   BYTE bFileTimeStamp[8+1];// File timestamp (NULL terminated).
   BYTE bDummy2[3];// dummy2.
} ;

Return value (NULL)

Normal End: 0

Problem: Error code

Special Item

More information about bFileTimeStamp: 8 bytes are divided into two sections. The top 4 bytes are used to store MS-DOS formatted time, and the bottom 4 bytes are used to store MS-DOS formatted date, both as hexadecimal values.

MS-DOS formatted dates and times are set up in the following format.

For example, when the DOS date/time is 20C42C22, 2C22 is the date and 20C4 is the time. Translated, the date and time is 2002/1/2 04:06:08.

MS-DOS formatted time. The date uses the following format to pack the date into one 16-bit value.