|
GetActiveProfile |
Top Previous Next |
|
The GetActiveProfile retrieves the name of the active profile (i.e. the profile that is used for printing). HRESULT GetActiveProfile( [out] LPWSTR* p_pwstrActiveProfile [out] BOOL* p_bPublicProfile );
Parameters: p_pwstrActiveProfile [out] pointer to a pointer to a null terminated Unicode string that will contain the name of the active profile. On success the caller is responsible for freeing the allocated memory with CoTaskMemFree. p_bPublicProfile [in] Flag if the profile is a public or a private profile.
Return values: S_OK on success or COM error code NV_NOT_INITIALIZED - Initialize was not called |