The GetOverlayCount method retrieves the number of overlays.
HRESULT GetOverlayCount(
[out] LONG* p_pnCount
);
Parameters:
p_pnCount
[out] count of overlays in profile
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loaded