Source code of Windows XP (NT5)
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.

100 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. account.h
  5. Abstract:
  6. Security related function prototypes.
  7. Author:
  8. Rita Wong (ritaw) 10-Apr-1992
  9. Revision History:
  10. --*/
  11. #ifndef _SCACCOUNT_INCLUDED_
  12. #define _SCACCOUNT_INCLUDED_
  13. #define SC_LOCAL_DOMAIN_NAME L"."
  14. #define SC_LOCAL_SYSTEM_USER_NAME L"LocalSystem"
  15. #define SC_LOCAL_NTAUTH_NAME L"NT AUTHORITY"
  16. #define SCDOMAIN_USERNAME_SEPARATOR L'\\'
  17. //
  18. // External global variables used by the lockapi.c module
  19. //
  20. extern UNICODE_STRING ScComputerName;
  21. extern UNICODE_STRING ScAccountDomain;
  22. BOOL
  23. ScGetComputerNameAndMutex(
  24. VOID
  25. );
  26. VOID
  27. ScEndServiceAccount(
  28. VOID
  29. );
  30. BOOL
  31. ScInitServiceAccount(
  32. VOID
  33. );
  34. DWORD
  35. ScCanonAccountName(
  36. IN LPWSTR AccountName,
  37. OUT LPWSTR *CanonAccountName
  38. );
  39. DWORD
  40. ScValidateAndSaveAccount(
  41. IN LPWSTR ServiceName,
  42. IN HKEY ServiceNameKey,
  43. IN LPWSTR CanonAccountName,
  44. IN LPWSTR Password OPTIONAL
  45. );
  46. DWORD
  47. ScValidateAndChangeAccount(
  48. IN LPSERVICE_RECORD ServiceRecord,
  49. IN HKEY ServiceNameKey,
  50. IN LPWSTR OldAccountName,
  51. IN LPWSTR CanonAccountName,
  52. IN LPWSTR Password OPTIONAL
  53. );
  54. VOID
  55. ScRemoveAccount(
  56. IN LPWSTR ServiceName
  57. );
  58. DWORD
  59. ScLookupServiceAccount(
  60. IN LPWSTR ServiceName,
  61. OUT LPWSTR *AccountName
  62. );
  63. DWORD
  64. ScLogonService(
  65. IN LPWSTR ServiceName,
  66. IN LPWSTR AccountName,
  67. OUT LPHANDLE ServiceToken,
  68. OUT LPHANDLE ProfileHandle OPTIONAL,
  69. OUT PSID *ServiceSid
  70. );
  71. DWORD
  72. ScGetAccountDomainInfo(
  73. VOID
  74. );
  75. #endif // _SCACCOUNT_INCLUDED_