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.

105 lines
1.9 KiB

  1. /*++ BUILD Version: 0003 // Increment this if a change has global effects
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. lmconfig.h
  5. Abstract:
  6. This module defines the API function prototypes and data structures
  7. for the following groups of NT API functions:
  8. NetConfig
  9. Author:
  10. Dan Lafferty (danl) 29-Mar-1991
  11. Environment:
  12. User Mode - Win32
  13. Notes:
  14. You must include NETCONS.H before this file, since this file depends
  15. on values defined in NETCONS.H.
  16. Revision History:
  17. 28-Mar-1991 Danl
  18. Ported from LM2.0 and the LMNETAPI spec.
  19. 20-Nov-1991 JohnRo
  20. Implemented remote NetConfig APIs. Changed LPSTR to LPTSTR.
  21. NetConfigGet and NetConfigGetAll shouldn't return total available.
  22. Don't use ULONG.
  23. 08-Apr-1992 JohnRo
  24. Fixed UNICODE handling.
  25. --*/
  26. #ifndef _LMCONFIG_
  27. #define _LMCONFIG_
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #define REVISED_CONFIG_APIS
  32. //
  33. // Function Prototypes - Config
  34. //
  35. NET_API_STATUS NET_API_FUNCTION
  36. NetConfigGet (
  37. IN LPTSTR server OPTIONAL,
  38. IN LPTSTR component,
  39. IN LPTSTR parameter,
  40. #ifdef REVISED_CONFIG_APIS
  41. OUT LPBYTE *bufptr
  42. #else
  43. OUT LPBYTE *bufptr,
  44. OUT LPDWORD totalavailable
  45. #endif
  46. );
  47. NET_API_STATUS NET_API_FUNCTION
  48. NetConfigGetAll (
  49. IN LPTSTR server OPTIONAL,
  50. IN LPTSTR component,
  51. #ifdef REVISED_CONFIG_APIS
  52. OUT LPBYTE *bufptr
  53. #else
  54. OUT LPBYTE *bufptr,
  55. OUT LPDWORD totalavailable
  56. #endif
  57. );
  58. NET_API_STATUS NET_API_FUNCTION
  59. NetConfigSet (
  60. IN LPTSTR server OPTIONAL,
  61. IN LPTSTR reserved1 OPTIONAL,
  62. IN LPTSTR component,
  63. IN DWORD level,
  64. IN DWORD reserved2,
  65. IN LPBYTE buf,
  66. IN DWORD reserved3
  67. );
  68. //
  69. // Data Structures - Config
  70. //
  71. typedef struct _CONFIG_INFO_0 {
  72. LPTSTR cfgi0_key;
  73. LPTSTR cfgi0_data;
  74. } CONFIG_INFO_0, *PCONFIG_INFO_0, *LPCONFIG_INFO_0;
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif // _LMCONFIG_