The GetAttachmentsCount method returns attachments count
HRESULT GetAttachmentsCount(
[out] LONG* p_pnCount
);
Parameters:
p_pnCount
[in] attachments count
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loaded