MCPcopy Create free account
hub / github.com/Beckhoff/ADS / TcFileFindData

Class TcFileFindData

AdsLib/AdsFile.cpp:18–36  ·  view source on GitHub ↗

* @brief This structure describes file information reveived via ADS * * Calling ReadWriteReqEx2 with IndexGroup == SYSTEMSERVICE_FFILEFIND * will return ADS file information in the provided readData buffer. * The data of that information is structured as TcFileFindData. */

Source from the content-addressed store, hash-verified

16 * The data of that information is structured as TcFileFindData.
17 */
18struct TcFileFindData {
19 uint32_t hFile;
20 uint32_t dwFileAttributes;
21 uint64_t nReserved1[5];
22 char cFileName[260];
23 char unused[14];
24 uint16_t nReserved2;
25
26 bool isDirectory(void) const
27 {
28 return 0x10 & dwFileAttributes;
29 }
30
31 void letoh(void)
32 {
33 hFile = bhf::ads::letoh(hFile);
34 dwFileAttributes = bhf::ads::letoh(dwFileAttributes);
35 }
36};
37#pragma pack(pop)
38
39static bool FindNext(const AdsDevice &route, TcFileFindData &child,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected