The SetActiveProfile sets the active profile (i.e. the profile that will be used for printing).
[ in ] LPCWSTR p_wsProfileId
[in] pointer to a null terminated Unicode string 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_wsProfileId 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