LoadFromFile (loadfromfile)

Loads a profile from a file.

Syntax

HRESULT LoadFromFile
  ([in] BSTR bstrProfileName,
  [in] BSTR bstrFileName)
;

Parameters

bstrProfileName
[in] The name of the profile to load.

bstrFileName
[in] The name of the file that contains the profile.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

Indicates success.

E_INVALIDARG

One or more arguments are invalid. Use IParsingErrorInfo to obtain detailed error information.

E_WPRC_FAILED_TO_VALIDATE_PROFILE

The library failed to validate the profile. Use IParsingErrorInfo to obtain detailed error information.

IProfile