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.

88 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: creds.h
  7. //
  8. // Contents: Credential mgmt prototypes
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 2-19-97 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __CREDS_H__
  18. #define __CREDS_H__
  19. #define XTCB_CRED_CHECK 'tseT'
  20. typedef struct _XTCB_CREDS {
  21. ULONG Check;
  22. ULONG Flags ;
  23. LIST_ENTRY List ;
  24. LUID LogonId ;
  25. ULONG RefCount ;
  26. SECURITY_STRING Name ;
  27. PXTCB_PAC Pac ;
  28. } XTCB_CREDS, * PXTCB_CREDS ;
  29. #define XTCB_CRED_TERMINATED 0x00000001
  30. #define XTCB_CRED_HANDLE_CHECK 'naHC'
  31. typedef struct _XTCB_CRED_HANDLE {
  32. ULONG Check ;
  33. PXTCB_CREDS Creds ;
  34. PVOID SharedMemory ;
  35. ULONG Usage ;
  36. ULONG RefCount ;
  37. } XTCB_CRED_HANDLE, * PXTCB_CRED_HANDLE;
  38. BOOL
  39. XtcbInitCreds(
  40. VOID
  41. );
  42. PXTCB_CREDS
  43. XtcbFindCreds(
  44. PLUID LogonId,
  45. BOOL Ref
  46. );
  47. PXTCB_CREDS
  48. XtcbCreateCreds(
  49. PLUID LogonId
  50. );
  51. VOID
  52. XtcbRefCreds(
  53. PXTCB_CREDS Creds
  54. );
  55. VOID
  56. XtcbDerefCreds(
  57. PXTCB_CREDS Creds
  58. );
  59. PXTCB_CRED_HANDLE
  60. XtcbAllocateCredHandle(
  61. PXTCB_CREDS Creds
  62. );
  63. VOID
  64. XtcbRefCredHandle(
  65. PXTCB_CRED_HANDLE Handle
  66. );
  67. VOID
  68. XtcbDerefCredHandle(
  69. PXTCB_CRED_HANDLE Handle
  70. );
  71. #endif // __CREDS_H__