|  | 
| Previous | Next | 
The SaveProfile method saves a profile into a string.
Syntax
HRESULT SaveProfile(
  IWMProfile*  pProfile,
  WCHAR*  pwszProfile,
  DWORD*  pdwLength
);
Parameters
pProfile
[in] Pointer to an IWMProfile object.
pwszProfile
[in] Pointer to a wide-character NULL-terminated string containing the profile.
pdwLength
[in, out] On input, specifies the length of the pwszProfile string. On output, and if the method succeeds, specifies a pointer to a double word containing the length of the profile actually loaded into pwszProfile.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
| Return code | Meaning | 
| E_OUTOFMEMORY | There is not enough available memory. | 
| E_INVALIDARG | Either the pIWMProfile or pdwLength parameter is NULL. | 
Remarks
This string contains all of the information about the profile, and can be saved in a configuration file or other storage. The string should not be displayed to users, and in most cases should be treated as opaque data.
See Also
| Previous | Next |