Results 1 to 3 of 3

Thread: Hooking File Calls

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Question

    I need to be able to intercept any applications such as MS Word's call to Open or Save a file, and replace it with my own routine. Is this possible with VB and the API ?, anyone have any pointers ?


  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You would need to subclass their WM_COMMAND message. In order to subclass other windows you would need to put the WindowProc in A DLL file because processes can't access other processes memory area. A dll can be accesed by any process. The dll can't be made in VB. It can be made in c++.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Question

    Are you saying that if the application uses a standard windows file dialogue I can trap it by subclassing the WM_COMMAND, but if not I would have to use c++. I am interested in what the limitation would be, as I am not a C++ programmer,

    Thanks for your reply

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