Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1991-92 Microsoft Corporation
  3. Module Name:
  4. wslogon.c
  5. Abstract:
  6. This module provides the Workstation service logon support, which
  7. include sending logoff message for users on the local machine that
  8. got reset unexpectedly, respond to a relogon request, and respond
  9. to an interrogation request.
  10. Author:
  11. Rita Wong (ritaw) 20-Aug-1991
  12. Environment:
  13. User Mode - Win32
  14. Revision History:
  15. terryk 10-18-1993 Removed WsInitializeLogon stuff
  16. --*/
  17. #include <stdlib.h> // C Runtime: rand()
  18. #include "wsutil.h"
  19. #include "wsdevice.h"
  20. #include "wsconfig.h"
  21. #include "wslsa.h"
  22. #include <netlogon.h> // Mailslot message definitions
  23. #include <logonp.h> // NetpLogon routines
  24. //-------------------------------------------------------------------//
  25. // //
  26. // Local function prototypes //
  27. // //
  28. //-------------------------------------------------------------------//
  29. NET_API_STATUS NET_API_FUNCTION
  30. I_NetrLogonDomainNameAdd(
  31. IN LPTSTR LogonDomainName
  32. )
  33. /*++
  34. Routine Description:
  35. This function asks the Datagram Receiver to add the specified
  36. logon domain for the current user.
  37. Arguments:
  38. LogonDomainName - Supplies the name of the logon domain to add.
  39. Return Value:
  40. NET_API_STATUS - NERR_Success or reason for failure.
  41. --*/
  42. {
  43. // terryk added this on 10-15-1993
  44. // WsInitialLogon is never be called and So WsLogonDomainMutex is
  45. // never initialize properly.
  46. return ERROR_NOT_SUPPORTED;
  47. }
  48. NET_API_STATUS NET_API_FUNCTION
  49. I_NetrLogonDomainNameDel(
  50. IN LPTSTR LogonDomainName
  51. )
  52. /*++
  53. Routine Description:
  54. This function asks the Datagram Receiver to delete the specified
  55. logon domain for the current user.
  56. Arguments:
  57. LogonDomainName - Supplies the name of the logon domain to
  58. delete.
  59. Return Value:
  60. NET_API_STATUS - NERR_Success or reason for failure.
  61. --*/
  62. {
  63. // terryk added this on 10-15-1993
  64. // WsInitialLogon is never be called and So WsLogonDomainMutex is
  65. // never initialize properly.
  66. return ERROR_NOT_SUPPORTED;
  67. }