|
GetActiveProfile2 |
Top Previous Next |
|
The GetActiveProfile2 retrieves the name of the active profile (i.e. the profile that is used for printing). HRESULT GetActiveProfile2( [out] BSTR* p_pwstrActiveProfile [out] BOOL* p_bPublicProfile );
Parameters: p_pwstrActiveProfile [out] pointer to a pointer to a BSTR that will contain the name of the active profile. On success the caller is responsible for freeing the allocated memory with SysFreeString. 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
|