The SetActiveProfile2 sets the active profile (i.e. the profile that will be used for printing).
[ in ] BSTR* p_wstrProfileId
[in] pointer to a BSTR that contains the id of the profile that is to be set as active
S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - the profile specified by p_wstrProfileId does not exist
NV_PUBLIC_PROFILE - active profile cannot be change due to propagate active profile flag
NV_PROFILE_ERROR - private active profile cannot be set because private profiles are not allowed