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.

96 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. ConfigP.c
  5. Abstract:
  6. This header file defines the private data structure used by the
  7. net config helpers.
  8. Author:
  9. John Rogers (JohnRo) 26-Nov-1991
  10. Environment:
  11. Only runs under NT.
  12. Revision History:
  13. 26-Nov-1991 JohnRo
  14. Created this file, to prepare for revised config handlers.
  15. 22-Mar-1992 JohnRo
  16. Added support for using the real Win32 registry.
  17. Added support for FAKE_PER_PROCESS_RW_CONFIG handling.
  18. 06-May-1992 JohnRo
  19. Enable win32 registry at last.
  20. 12-Apr-1993 JohnRo
  21. RAID 5483: server manager: wrong path given in repl dialog.
  22. --*/
  23. #ifndef CONFIGP_H
  24. #define CONFIGP_H
  25. ////////////////////////////// INCLUDES //////////////////////////////////
  26. #include <lmcons.h> // NET_API_STATUS, UNCLEN.
  27. #include <winreg.h> // HKEY.
  28. ////////////////////////////// EQUATES //////////////////////////////////
  29. #define MAX_CLASS_NAME_LENGTH ( 32 )
  30. /////////////////////////// NET_CONFIG_HANDLE ///////////////////////////////
  31. //
  32. // LPNET_CONFIG_HANDLE is typedef'ed as LPVOID in config.h, which makes it
  33. // an "opaque" type. We translate it into a pointer to a NET_CONFIG_HANDLE
  34. // structure:
  35. //
  36. typedef struct _NET_CONFIG_HANDLE {
  37. HKEY WinRegKey; // Handle to section.
  38. DWORD LastEnumIndex; // Most recent enum index.
  39. //
  40. // Server name if remote, TCHAR_EOS if local.
  41. //
  42. TCHAR UncServerName[MAX_PATH+1];
  43. } NET_CONFIG_HANDLE;
  44. ////////////////////////////// ROUTINES AND MACROS ////////////////////////////
  45. NET_API_STATUS
  46. NetpGetWinRegConfigMaxSizes (
  47. IN HKEY WinRegHandle,
  48. OUT LPDWORD MaxKeywordSize OPTIONAL,
  49. OUT LPDWORD MaxValueSize OPTIONAL
  50. );
  51. NET_API_STATUS
  52. NetpGetConfigMaxSizes(
  53. IN NET_CONFIG_HANDLE * ConfigHandle,
  54. OUT LPDWORD MaxKeywordSize OPTIONAL,
  55. OUT LPDWORD MaxValueSize OPTIONAL
  56. );
  57. ///////////////////////////// THAT'S ALL, FOLKS! /////////////////////////////
  58. #endif // ndef CONFIGP_H