tSysDirOpen (STRUCT)

TYPE tSysDirOpen : STRUCT

InOut:

Name

Type

Comment

szDir

STRING

Directory entry as string

Note

Empty string (‘’) is the request for the current working directory.

szDirEntry

STRING

Directory entry as string

diMaxDirEntry

DINT

Max number of bytes to write in szDirEntry (0..80)

pDirInfo

POINTER TO DirInfo

Directory information

Note

Can be 0 (so only directory name is provided in szDirEntry)

pResult

POINTER TO RTS_IEC_RESULT

Pointer to runtime system error code (see CmpErrors.library)

pulOut

POINTER TO RTS_IEC_HANDLE

Handle