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.

93 lines
1.8 KiB

  1. #ifndef __DFSCOMPDLL__
  2. #define __DFSCOMPDLL__
  3. #include <nt.h>
  4. #include <ntrtl.h>
  5. #include <nturtl.h>
  6. #include <windows.h>
  7. #include <malloc.h>
  8. #include <stdio.h>
  9. #include "lm.h"
  10. #define COMPFLAG_USE_HAVEDISK 0x00000001
  11. typedef struct _COMPATIBILITY_ENTRY
  12. {
  13. LPTSTR Description;
  14. LPTSTR HtmlName;
  15. LPTSTR TextName;
  16. LPTSTR RegKeyName;
  17. LPTSTR RegValName;
  18. DWORD RegValDataSize;
  19. LPVOID RegValData;
  20. LPVOID SaveValue;
  21. DWORD Flags;
  22. LPTSTR InfName;
  23. LPTSTR InfSection;
  24. } COMPATIBILITY_ENTRY, *PCOMPATIBILITY_ENTRY;
  25. typedef BOOL
  26. (CALLBACK *PCOMPAIBILITYCALLBACK)
  27. (PCOMPATIBILITY_ENTRY CompEntry, LPVOID Context);
  28. typedef DWORD DFSSTATUS;
  29. #define IsEmptyString(_str) \
  30. ( ((_str) == NULL) || ((_str)[0] == UNICODE_NULL) )
  31. BOOLEAN
  32. APIENTRY
  33. CompatibilityCheck(
  34. PCOMPAIBILITYCALLBACK CompatibilityCallBack,
  35. LPVOID Context);
  36. static
  37. DFSSTATUS
  38. GetOldStandaloneRegistryKey(
  39. IN LPWSTR MachineName,
  40. BOOLEAN WritePermission,
  41. OUT BOOLEAN *pMachineContacted,
  42. OUT PHKEY pDfsRegKey );
  43. static
  44. DFSSTATUS
  45. GetOldDfsRegistryKey(
  46. IN LPWSTR MachineName,
  47. BOOLEAN WritePermission,
  48. OUT BOOLEAN *pMachineContacted,
  49. OUT PHKEY pDfsRegKey );
  50. static
  51. DFSSTATUS
  52. GetDfsRegistryKey(
  53. IN LPWSTR MachineName,
  54. IN LPWSTR LocationString,
  55. BOOLEAN WritePermission,
  56. OUT BOOLEAN *pMachineContacted,
  57. OUT PHKEY pDfsRegKey );
  58. DFSSTATUS
  59. GetRootPhysicalShare(
  60. HKEY RootKey,
  61. PUNICODE_STRING pRootPhysicalShare );
  62. VOID
  63. ReleaseRootPhysicalShare(
  64. PUNICODE_STRING pRootPhysicalShare );
  65. DFSSTATUS
  66. DfsGetSharePath(
  67. IN LPWSTR ServerName,
  68. IN LPWSTR ShareName,
  69. OUT PUNICODE_STRING pPathName );
  70. DFSSTATUS
  71. DfsCreateUnicodeString(
  72. PUNICODE_STRING pDest,
  73. PUNICODE_STRING pSrc );
  74. #endif