The DisableAttachment method disables the attachment for the given index
HRESULT DisableAttachment(
[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 disables the attachment at position given by p_nIndex