beckhoff TwinCAT 3 — 12.8.5.13 Method ITcFileAccess:MkDir

Programming Reference | Interfaces Syntax virtual HRESULT TCOMAPI FileFindNext (TcFileFindHandle hFileFind, PTcFileFindData pFileFindData); Return value If successful, S_OK ("0") or another positive value will be returned, cf. Return values [ } 161] . Extended messages refer in particular to the column HRESULT in ADS Return Codes [ } 323] . A particularly interesting error code is ADSERR_DEVICE_TIMEOUT if the timeout (5 seconds) has elapsed. Parameter Description This method searches for the next file in a directory. The method grants access to PTcFileFindData of the file found, with the following information:

typedef struct TcFileFindData { TcFileHandle hFile; DWORD dwFileAttributes; ULONGLONG ui64CreationTime; ULONGLONG ui64LastAccessTime; ULONGLONG ui64LastWriteTime; DWORD dwFileSizeHigh; DWORD dwFileSizeLow; DWORD dwReserved1; DWORD dwReserved2; CHAR cFileName[260]; CHAR cAlternateFileName[14]; WORD wReserved0; } TcFileFindData, *PTcFileFindData; 12.8.5.12 Method ITcFileAccess:FileFindClose | Method ITcFileAccess:FileFindClose Close the search for files in a directory. Syntax virtual HRESULT TCOMAPI FileFindClose (TcFileFindHandle hFileFind); Return value If successful, S_OK ("0") or another positive value will be returned, cf. Return values [ } 161] .

Extended messages refer in particular to the column HRESULT in ADS Return Codes [ } 323] . A particularly interesting error code is ADSERR_DEVICE_TIMEOUT if the timeout (5 seconds) has elapsed. Parameter 12.8.5.13 Method ITcFileAccess:MkDir | Method ITcFileAccess:MkDir Create a directory in a file system. TwinCAT 3 170 Version: 1.19.1 Name Type Description hFileFind PTcFileFindHandle [in] handle for searching further with FileFindNext. pFileFindData PTcFileFindData [out] the description of the next file. Compare with TcFileAccessServices.h Name Type Description hFileFind PTcFileFindHandle [in] handle to exit the search.