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.

76 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1999.
  5. //
  6. // File: negossp.h
  7. //
  8. // Contents: Negotiate Package
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 7-26-96 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __NEGOSSP_H__
  18. #define __NEGOSSP_H__
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif
  22. #ifndef NEGOSSP_NAME
  23. #define NEGOSSP_NAME_W L"Negotiate"
  24. #define NEGOSSP_NAME_A "Negotiate"
  25. #ifdef UNICODE
  26. #define NEGOSSP_NAME NEGOSSP_NAME_W
  27. #else
  28. #define NEGOSSP_NAME NEGOSSP_NAME_A
  29. #endif
  30. #endif // NEGOSSP_NAME
  31. #define NEGOSSP_RPCID 9
  32. #ifndef SEC_WINNT_AUTH_IDENTITY_VERSION
  33. #define SEC_WINNT_AUTH_IDENTITY_VERSION 0x200
  34. #pragma message("WARNING: include security.h to get definition of SEC_WINNT_AUTH_IDENTITY_EX")
  35. typedef struct _SEC_WINNT_AUTH_IDENTITY_EXW {
  36. unsigned long Version;
  37. unsigned long Length;
  38. unsigned short SEC_FAR *User;
  39. unsigned long UserLength;
  40. unsigned short SEC_FAR *Domain;
  41. unsigned long DomainLength;
  42. unsigned short SEC_FAR *Password;
  43. unsigned long PasswordLength;
  44. unsigned long Flags;
  45. unsigned short SEC_FAR * PackageList;
  46. unsigned long PackageListLength;
  47. } SEC_WINNT_AUTH_IDENTITY_EXW, *PSEC_WINNT_AUTH_IDENTITY_EXW;
  48. typedef struct _SEC_WINNT_AUTH_IDENTITY_EXA {
  49. unsigned long Version;
  50. unsigned long Length;
  51. unsigned char SEC_FAR *User;
  52. unsigned long UserLength;
  53. unsigned char SEC_FAR *Domain;
  54. unsigned long DomainLength;
  55. unsigned char SEC_FAR *Password;
  56. unsigned long PasswordLength;
  57. unsigned long Flags;
  58. unsigned char SEC_FAR * PackageList;
  59. unsigned long PackageListLength;
  60. } SEC_WINNT_AUTH_IDENTITY_EXA, *PSEC_WINNT_AUTH_IDENTITY_EXA;
  61. #endif // SEC_WINNT_AUTH_IDENTITY_VERSION
  62. #endif // __NEGOSSP_H__