The DeleteOverlay2 method deletes an existing overlay.
HRESULT DeleteOverlay2(
[in, string] BSTR p_wsOverlayId
);
Parameters:
p_wsOverlayId
[in] overlay id
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_OVERLAY
- wrong overlay index