The DeleteAttachment method deletes the attachment for the given index
HRESULT DeleteAttachment(
[in] LONG p_nIndex
);
Parameters:
p_nIndex
[in] attachment index
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_ATTACHMENT
- invalid attachment indexRemarks:
This method deletes the attachment at position given by p_nIndex