Share via


IParseSink::GetFileName Method

Returns the complete file path of the current source.

HRESULT GetFileName ( 
   BSTR* filePath
);

Parameters

  • filePath
    [out] Returns a string containing the complete file path.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Call this method to retrieve the complete path of the file that is currently edited. If this is a newly created file, then a NULL pointer is returned in filePath.

The file path is typically the one specified in the call to the IBabelPackage::LoadScope Method that created the scope with which this IParseSink Interface object is currently associated.

See Also

Reference

IParseSink Interface

IBabelPackage::LoadScope Method