Home |
Function RTFDumpFileTable |
Function RTFDumpFileTableRTFDumpFileTable writes information about all currently open files as text to a string buffer: void RTFDumpFileTable(char * Buffer, UINT BufferLen); ParametersBufferMust point to a string buffer to receive the data. BufferLenSpecifies the size of the buffer. The buffer should have a size of at least 100 + n * 100, where n is the number of open files. The buffer filled by this function can be displayed using printf to view the status of open files. Example:Index Handle Flags FilePos Name ---------------------------------------- 3 00070003 W_S 1234 C:\ADIR\SOMEFILE.DAT 4 00030004 RD_ 256 C:\ADIR Column Index contains the slot the file occupies in RTFiles-32's internal file table. Handle is the hexadecimal representation of the file's handle. The Flags column may show a combination of the letters R, W, D, and S, representing read only access, read/write access, directory, and shared, respectively. FilePos gives the current file pointer value of the file. Name is the full path name of the file. Use RTFDumpTable to analyze which files are open if you suspect that a program does not properly close all files.
|