Results 1 to 3 of 3

Thread: File Manipulation Interception

  1. #1

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963

    File Manipulation Interception

    Is that possible?
    I wanna know the file(s) involved whenever a disk activity occurs.

    My guess is to load urself into ring 0 and intercept VM msgs.
    but I guess it can be done in an easier way.

    Know how?
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  2. #2
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    There were "WaitForSingleObject" code snippets published here recently. Some watched for activity in a folder, others watched for activity on a certain file.

    That is not the same way round that you were wanting (wait for activity, now tell me which file is involved) but it might give a starting clue.

  3. #3

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    Yes I know that.
    In fact I've already done one.
    http://www.vbforums.com/showthread.p...hlight=filemon

    http://www.vbforums.com/attachment.p...postid=1252996

    But that only notifies me of what had happen. It's a post-action notification, not a pre- nor in-, which means to say I can't
    intercept the action.

    Not only that, but this WaitForMultipleObjects or
    WaitForSingleObject also never tell me of what file(s) are
    involved in the event. I want to get their filename. I can
    understand this situation, because it is basically sort of event
    callback: I ask another thread to just callback me whenever
    something happens. Anyway the function that monitor the
    changes for me doesn't check the file(s) involved.
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width