The GetSignature2 method retrieves the signature and its layout object
HRESULT GetSignature2(
[out, string] BSTR* p_pwsSignatureId
[out, string] BSTR* p_pwsLayoutId
);
Parameters:
p_pwsSignatureId
[out, string] - signature id
p_pwsLayoutId
[out, string] - layout id
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_PROFILE_ERROR
- error reading profileRemarks:
There can be only one signature in a profile.
For layout options, see Working with Layout objects.