Errors when You Delete Your Account with NetUserDel()

ID: Q60616


The information in this article applies to:
  • Microsoft LAN Manager, versions 2.0, 2.1, 2.1a, 2.2


SUMMARY

It is possible to delete your own user account with the NetUserDel() API, if you are logged on with administrative privilege. The API will delete the account but returns errors. These errors differ, depending on whether you are accessing the server locally or remotely.

On a local server, NetUserDel() returns error code 5, "access denied," as NetUserDel() attempts to call NetSessionEnum() and NetSessionDel().

On a remote computer, NetUserDel() returns ERROR_VC_DISCONNECTED (240).

This is expected behavior, and will not be changed.

Additional query words: 2.00 2.10 2.10a 2.20 prodlm

Keywords :
Version : :2.0,2.1,2.1a,2.2
Platform :
Issue type :


Last Reviewed: November 11, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.