Limited time promo

GetFirstProfile2

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 GetFirstProfile2 starts an enumeration of profiles, retrieving the id of the first profile in the enumeration.
HRESULT GetFirstProfile2(
    [out] BSTR* p_pwsProfileId
);

Parameters:

p_pwsProfileId
    [out] pointer to a pointer to a null terminated Unicode string containing the id of the first existing profile

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_SERVICE_ERROR - cannot connect to novaPDF Server service
NV_PROFILE_ERROR - cannot load profiles