Hook file access (question)

  • Thread starter Thread starter ntcn
  • Start date Start date
N

ntcn

Guest
How it is possible to hook the file access ? For example, hook access to 3 bytes from postition 100h (at beginning) of file a:\cfg\config.bin (or, generally, the read/write data from/to files in the certain directory and change the reading/writing data) ? I want to try to define the current position from begin of a file through hook (in mmc_filesystem_proc, DA8102, S45i) 4 functions: _open (DA2C98) to define handle a necessary file, _read(DA30F2 from DA857E)/_write(DA3642 from DA85EC)/_lseek(DA3DAC from DA866C) to get the current position inside a file and in the same place (DA8582 in S45i), after a call _read, to check position and if it is equal 100h to change the information in the buffer on necessary to me. Or there is a way easier (how to define in what byte, from the beginning of a file, the information through _write (DA3642) will be now written or it will be read through _read (DA30F2)) ?

I hope has clearly described a problem
 
Back
Top