Microsoft SDK for Java

GetCurFile

This method of the IPersistFile interface retrieves either the absolute path to the object's current working file or, if there is no current working file, the object's default file name prompt.

Syntax

public void GetCurFile(String[] ppszFileName);

Return Value

S_OK -- A valid absolute path was successfully returned.

S_FALSE -- The default save prompt was returned.

E_OUTOFMEMORY -- The operation failed due to insufficient memory.

E_FAIL -- The operation failed due to some reason other than insufficient memory.

Parameters

[out] ppszFileName Points to the location of a pointer to a zero-terminated string containing the path for the current file or the default file name prompt (such as *.txt). If an error occurs, ppszFileName is set to NULL.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.