Share via


LoadFromFile

Applies To: Windows 8, Windows 8.1

Loads a profile from a file.

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.

See Also

Reference

IProfile