title: Get the full path of an opened Word document
body: <p>If a DOC file is being opened by MS Word, is there any way for an external program to get the full path of the DOC file? I tried to use GetCommandLineA() but it yields me no result, just ""C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /n /dde". I also read an article at <a href="http://www.withinwindows.com/2008/08/31/taming-microsoft-word-2007s-file-associations-and-document-windows-part-one/" rel="nofollow">http://www.withinwindows.com/2008/08/31/taming-microsoft-word-2007s-file-associations-and-document-windows-part-one/</a>, but I don't know how to get that DDE messages. Would you please tell me how?</p>