Platform SDK: Exchange Server |
Creates a Windows NT domain account.
HRESULT NtAccountCreate( [in] BSTR bstrDomain, [in] BSTR bstrUserLogin, [in] BSTR bstrPassword, [in] BSTR bstrUserComment, [in] BSTR bstrLocalGroup );
Public Sub NtAccountCreate ( bstrDomain as String, bstrUserLogin as String, bstrPassword as String, bstrUserComment as String, bstrLocalGroup 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.