Get Directory (18)
The Get Directory operation (B_GET_DIR) returns the current directory for a specified logical disk drive.
Parameters
Op Code
Pos Block
Data Buf
Data Buf Len
Key Buffer
Key Number
Sent
Returned
Prerequisites
Your application can issue a Get Directory operation at any time. The Key Buffer should be at least 65 characters long.
Procedure
1
Set the Operation Code to 18.
2
Store the logical disk drive number in the Key Number parameter. Specify the drive as 1 for A, 2 for B, and so on. To use the default drive, specify 0.
Result
The transactional interface returns the current directory, terminated by a binary 0, in the Key Buffer.
Positioning
The Get Directory operation has no effect on any file currency information.