How to get complete file path of a file currently opened in a notepad in another app

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dileepsree
    New Member
    • Dec 2009
    • 2

    How to get complete file path of a file currently opened in a notepad in another app

    I have a dll that can be injected noepad process and I am hooking StartDoc function
    I am only getting the document name , I want to get full path name of the file that is currently opened by notepad

    like E:\Projects\Gen Doc\Specs.txt

    I had seen some sample that using like
    typedef NTSTATUS (__stdcall *QueryObject)(H ANDLE,int,void* ,unsigned long,unsigned long*);
    Let me give correct solution
    Regards,
    Dileep S
Working...