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.

115 lines
2.2 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1996, Microsoft Corporation
  4. //
  5. // File: creds.h
  6. //
  7. // Contents: Code to handle user-defined credentials
  8. //
  9. // Classes: None
  10. //
  11. // Functions: DfsCreateCredentials --
  12. // DfsInsertCredentials --
  13. // DfsDeleteCredentials --
  14. // DfsLookupCredentials --
  15. // DfsFreeCredentials --
  16. //
  17. // History: March 18, 1996 Milans Created
  18. //
  19. //-----------------------------------------------------------------------------
  20. #ifndef _DFS_CREDENTIALS_
  21. #define _DFS_CREDENTIALS_
  22. #ifdef TERMSRV
  23. NTSTATUS
  24. DfsCreateCredentials(
  25. IN PFILE_DFS_DEF_ROOT_CREDENTIALS CredDef,
  26. IN ULONG CredDefSize,
  27. IN ULONG SessionID,
  28. IN PLUID LogonID,
  29. OUT PDFS_CREDENTIALS *Creds
  30. );
  31. #else // TERMSRV
  32. NTSTATUS
  33. DfsCreateCredentials(
  34. IN PFILE_DFS_DEF_ROOT_CREDENTIALS CredDef,
  35. IN ULONG CredDefSize,
  36. IN PLUID LogonID,
  37. OUT PDFS_CREDENTIALS *Creds);
  38. #endif // TERMSRV
  39. VOID
  40. DfsFreeCredentials(
  41. PDFS_CREDENTIALS Creds);
  42. NTSTATUS
  43. DfsInsertCredentials(
  44. IN OUT PDFS_CREDENTIALS *Creds,
  45. IN BOOLEAN ForDevicelessConnection);
  46. VOID
  47. DfsDeleteCredentials(
  48. IN PDFS_CREDENTIALS Creds);
  49. #ifdef TERMSRV
  50. PDFS_CREDENTIALS
  51. DfsLookupCredentials(
  52. IN PUNICODE_STRING FileName,
  53. IN ULONG SessionID,
  54. IN PLUID LogonID
  55. );
  56. PDFS_CREDENTIALS
  57. DfsLookupCredentialsByServerShare(
  58. IN PUNICODE_STRING ServerName,
  59. IN PUNICODE_STRING ShareName,
  60. IN ULONG SessionID,
  61. IN PLUID LogonID
  62. );
  63. #else // TERMSRV
  64. PDFS_CREDENTIALS
  65. DfsLookupCredentials(
  66. IN PUNICODE_STRING FileName);
  67. PDFS_CREDENTIALS
  68. DfsLookupCredentialsByServerShare(
  69. IN PUNICODE_STRING ServerName,
  70. IN PUNICODE_STRING ShareName,
  71. IN PLUID LogonID
  72. );
  73. #endif // TERMSRV
  74. NTSTATUS
  75. DfsVerifyCredentials(
  76. IN PUNICODE_STRING Prefix,
  77. IN PDFS_CREDENTIALS Creds);
  78. VOID
  79. DfsDeleteTreeConnection(
  80. IN PFILE_OBJECT TreeConnFileObj,
  81. IN ULONG Level);
  82. PDFS_CREDENTIALS
  83. DfsCaptureCredentials(
  84. IN PIRP Irp,
  85. IN PUNICODE_STRING FileName);
  86. VOID
  87. DfsGetServerShare(
  88. PUNICODE_STRING pDest,
  89. PUNICODE_STRING pSrc);
  90. #endif // _DFS_CREDENTIALS_