This method of the IPersistFile interface opens the specified file and initializes an object from the file contents.
public void Load(String pszFileName, int dwMode);
S_OK -- The object was successfully loaded.
E_OUTOFMEMORY -- The object could not be loaded due to a lack of memory.
E_FAIL -- The object could not be loaded for some reason other than a lack of memory.
[in] pszFileName | Points to a zero-terminated string containing the absolute path of the file to open. |
[in] dwMode | Specifies some combination of the values from the STGM enumeration to indicate the access mode to use when opening the file. This method can treat this value as a suggestion, adding more restrictive permissions if necessary. If dwMode is 0 (zero), the implementation should open the file using whatever default permissions are used when a user opens the file. |