The GetOverlay2 method retrieves the overlay
HRESULT GetOverlay2(
[in] LONG p_nIndex,
[out, string] BSTR* p_pwsOverlayId
);
Parameters:
p_nIndex,
[in] - overlay index
p_pwsOverlayId
[out, string] - overlay 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 multiple overlays in a profile.
For layout options, see Working with Layout objects.