|
|
|
Files
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.09.2004, 14:10 |
|
||
|
Files
|
|||
|---|---|---|---|
|
#18+
апостариори - никак, на скоко я знаю. Система таких логов не ведёт(иначе вешалка будет с логами) только если ловить файл-монитором или делать перехвать WinAPI ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.09.2004, 16:11 |
|
||
|
Files
|
|||
|---|---|---|---|
|
#18+
см. fstat авторThe fstat function obtains information about the open file associated with handle and stores it in the structure pointed to by buffer. The stat structure, defined in SYS\STAT.H, contains the following fields: st_atime Time of last file access. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.09.2004, 17:43 |
|
||
|
Files
|
|||
|---|---|---|---|
|
#18+
СПАСИБО , Анатолий Широков буду пробовать. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2004, 09:32 |
|
||
|
Files
|
|||
|---|---|---|---|
|
#18+
2 А.Ш. а тоже самое с неоткрытым файлом? Всмысле, с закрытым на данный момент. или st_atime Time of last file access. это время когда файл использовали без учёта того, что он открыт сейчас с этим хэндлом? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2004, 10:24 |
|
||
|
Files
|
|||
|---|---|---|---|
|
#18+
// Example из HELP в результате выполнения ДЛИНА ФАЙЛА СТАНОВИТСЯ = 0, т.е. файл ЗАПОРЧЕН. НО НЕ ТРЕБУЕТСЯ ПОРТИТЬ ФАЙЛ. Код: plaintext 1. 2. 3. 4. 5. 6. /* FSTAT.C: This program uses _fstat to report * the size of a file named F_STAT.OUT. */ struct _stat buf; int fh, result; char buffer[] = "A line to output September,30, 2004"; // if( (fh = _open( "f_stat.out", _O_CREAT | _O_WRONLY | if( (fh = _open( "D:\\ReadDB_using_CDatabase\\kaca98.mdb", _O_CREAT | _O_WRONLY | _O_TRUNC )) == -1 ) _write( fh, buffer, strlen( buffer ) ); /* Get data associated with "fh": */ result = _fstat( fh, &buf ); /* Check if statistics are valid: */ if( result != 0 ) MessageBox("Bad file handle\n" ); else { printf( "File size : %ld\n", buf.st_size ); m_sWork.Format("File size : %ld\n" "Time modified : %s", buf.st_size, ctime( &buf.st_ctime )); MessageBox(m_sWork); } _close( fh ); /*Output - пример выполнения кода; File size : 0 Time modified : Tue Mar 21 15:23:08 1995 */ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2004, 10:39 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=32715841&tid=2034342]: |
0ms |
get settings: |
9ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
61ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 224ms |
| total: | 357ms |

| 0 / 0 |
