* @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. */
| 16 | * The data of that information is structured as TcFileFindData. |
| 17 | */ |
| 18 | struct 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 | |
| 39 | static bool FindNext(const AdsDevice &route, TcFileFindData &child, |
nothing calls this directly
no outgoing calls
no test coverage detected