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 codeNV_NOT_INITIALIZED - Initialize was not calledNV_SERVICE_ERROR - cannot connect to novaPDF Server serviceNV_PROFILE_ERROR - cannot load profiles