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.

119 lines
2.6 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. // Include security package headers:
  56. #ifdef SECURITY_PACKAGE
  57. #include <secpkg.h>
  58. #endif // SECURITY_PACKAGE
  59. #ifdef SECURITY_KERBEROS
  60. #include <kerberos.h>
  61. #endif
  62. #ifdef SECURITY_NTLM
  63. #include <ntlmsp.h>
  64. #endif // SECURITY_NTLM
  65. SECURITY_STATUS
  66. SEC_ENTRY
  67. KSecValidateBuffer(
  68. PUCHAR Buffer,
  69. ULONG Length
  70. );
  71. SECURITY_STATUS
  72. SEC_ENTRY
  73. SecpSetIPAddress(
  74. PUCHAR lpIpAddress,
  75. ULONG cchIpAddress
  76. );
  77. #define MAX_BUFFERS_IN_CALL 8
  78. //
  79. // Private, internal SECBUFFER_* type used by kernel-mode components
  80. // that want to pass along an IP address as part of an ASC call.
  81. //
  82. #define SECBUFFER_IPADDRESS 129
  83. #endif // __SECINT_H__