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.

109 lines
2.2 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991-1999
  6. //
  7. // File: Secint.h
  8. //
  9. // Contents: Toplevel include file for security aware system components
  10. //
  11. //
  12. // History: 14-April-1998 MikeSw Created
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __SECINT_H__
  16. #define __SECINT_H__
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif
  20. //
  21. // NOTE: Update this section if you add new files:
  22. //
  23. // SECURITY_PACKAGE Include defines necessary for security packages
  24. // SECURITY_KERBEROS Include everything needed to talk to the kerberos pkg.
  25. // SECURITY_NTLM Include everything to talk to ntlm package.
  26. //
  27. // Each of the files included here are surrounded by guards, so you don't
  28. // need to worry about including this file multiple times with different
  29. // flags defined
  30. //
  31. #if !defined(_NTSRV_) && !defined(_NTIFS_)
  32. // begin_ntifs
  33. #ifndef SECURITY_USER_DATA_DEFINED
  34. #define SECURITY_USER_DATA_DEFINED
  35. typedef struct _SECURITY_USER_DATA {
  36. SECURITY_STRING UserName; // User name
  37. SECURITY_STRING LogonDomainName; // Domain the user logged on to
  38. SECURITY_STRING LogonServer; // Server that logged the user on
  39. PSID pSid; // SID of user
  40. } SECURITY_USER_DATA, *PSECURITY_USER_DATA;
  41. typedef SECURITY_USER_DATA SecurityUserData, * PSecurityUserData;
  42. #define UNDERSTANDS_LONG_NAMES 1
  43. #define NO_LONG_NAMES 2
  44. #endif // SECURITY_USER_DATA_DEFINED
  45. HRESULT SEC_ENTRY
  46. GetSecurityUserInfo(
  47. IN PLUID LogonId,
  48. IN ULONG Flags,
  49. OUT PSecurityUserData * UserInformation
  50. );
  51. SECURITY_STATUS SEC_ENTRY
  52. MapSecurityError( SECURITY_STATUS SecStatus );
  53. // end_ntifs
  54. #endif // !define(_NTSRV_) && !defined(_NTIFS_)
  55. BOOLEAN
  56. SEC_ENTRY
  57. SecGetLocaleSpecificEncryptionRules(
  58. BOOLEAN * Permitted
  59. );
  60. // Include security package headers:
  61. #ifdef SECURITY_PACKAGE
  62. #include <secpkg.h>
  63. #endif // SECURITY_PACKAGE
  64. #ifdef SECURITY_KERBEROS
  65. #include <kerberos.h>
  66. #endif
  67. #ifdef SECURITY_NTLM
  68. #include <ntlmsp.h>
  69. #endif // SECURITY_NTLM
  70. SECURITY_STATUS
  71. SEC_ENTRY
  72. KSecValidateBuffer(
  73. PUCHAR Buffer,
  74. ULONG Length
  75. );
  76. #endif // __SECINT_H__