|
SetActiveProfile |
Top Previous Next |
|
The SetActiveProfile sets the active profile (i.e. the profile that will be used for printing). HRESULT SetActiveProfile( [in] LPWSTR* p_wstrProfileName, [in] BOOL p_bPublicProfile );
Parameters: p_wstrProfileName [in] pointer to a null terminated Unicode string that contains the name of the profile that is to be set as active 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 NV_UNKNOWN_PROFILE - the profile specified by p_wstrProfileName does not exist |