Platform SDK: Exchange Server |
Deletes the specified Windows NT domain account.
HRESULT NtAccountDelete( [in] BSTR bstrDomain, [in] BSTR bstrUserLogin );
Public Sub NtAccountDelete( bstrDomain as String, bstrUserLogin as String)
Potential exceptions include HRESULT values of E_INVALIDARG as well as HRESULTs with the facility bits set to FACILITY_WIN32 (Win32). These values are generated by the standard call HRESULT_From_WIN32() function, returning the last thread error as an HRESULT across the interface. If the account was created successfully, the HRESULT value S_OK is returned.
See the class example.