Add scripting to your application with Vbsedit !

IDebugDocumentHost::GetPathName

 

Returns the full path and file name of the document's source file.

HRESULT GetPathName(
   BSTR*  pbstrLongName,
   BOOL*  pfIsOriginalFile
);

pbstrLongName

[out] A string containing the long name.

pfIsOriginalFile

[out] A flag that is true if pbstrLongName refers to the original file for the document, false otherwise.

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value

Description

S_OK 

The method succeeded.

E_FAIL

No source file can be created or determined.

This method returns the full path and file name of the document's source file.


Add VBScript and Javascript scripting
to your application with VbsEdit !



Download Vbsedit

This package includes VbsEdit 32-bit and 64-bit.




Home  

Copyright © 2001-2022 adersοft