Limited time promo

GetActiveProfile2

English

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Apr 08, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The GetActiveProfile2 retrieves the id of the active profile (i.e. the profile that is used for printing).
HRESULT GetActiveProfile2(
    [out] BSTR* p_wsProfileId
);

Parameters:

p_wsProfileId
    [out] pointer to a pointer to a null terminated Unicode string that will contain the if of the active profile. On success the caller is responsible for freeing the allocated memory with CoTaskMemFree.

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_NO_ACTIVE_PROFILE - there is no active profile selected for the printer