home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / lmconfig.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  91 lines

  1. /*++ BUILD Version: 0003    // Increment this if a change has global effects
  2.  
  3. Copyright 1991-1998 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmconfig.h
  8.  
  9. Abstract:
  10.  
  11.     This module defines the API function prototypes and data structures
  12.     for the following groups of NT API functions:
  13.         NetConfig
  14.  
  15. Environment:
  16.  
  17.     User Mode - Win32
  18.  
  19. Notes:
  20.  
  21.     You must include NETCONS.H before this file, since this file depends
  22.     on values defined in NETCONS.H.
  23.  
  24. --*/
  25.  
  26. #ifndef _LMCONFIG_
  27. #define _LMCONFIG_
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. #define REVISED_CONFIG_APIS
  34.  
  35. //
  36. // Function Prototypes - Config
  37. //
  38.  
  39. NET_API_STATUS NET_API_FUNCTION
  40. NetConfigGet (
  41.     IN  LPCWSTR  server OPTIONAL,
  42.     IN  LPCWSTR  component,
  43.     IN  LPCWSTR  parameter,
  44. #ifdef REVISED_CONFIG_APIS
  45.     OUT LPBYTE  *bufptr
  46. #else
  47.     OUT LPBYTE  *bufptr,
  48.     OUT LPDWORD totalavailable
  49. #endif
  50.     );
  51.  
  52. NET_API_STATUS NET_API_FUNCTION
  53. NetConfigGetAll (
  54.     IN  LPCWSTR  server OPTIONAL,
  55.     IN  LPCWSTR  component,
  56. #ifdef REVISED_CONFIG_APIS
  57.     OUT LPBYTE  *bufptr
  58. #else
  59.     OUT LPBYTE  *bufptr,
  60.     OUT LPDWORD totalavailable
  61. #endif
  62.     );
  63.  
  64.  
  65. NET_API_STATUS NET_API_FUNCTION
  66. NetConfigSet (
  67.     IN  LPCWSTR  server OPTIONAL,
  68.     IN  LPCWSTR  reserved1 OPTIONAL,
  69.     IN  LPCWSTR  component,
  70.     IN  DWORD   level,
  71.     IN  DWORD   reserved2,
  72.     IN  LPBYTE  buf,
  73.     IN  DWORD   reserved3
  74.     );
  75.  
  76. //
  77. // Data Structures - Config
  78. //
  79.  
  80. typedef struct _CONFIG_INFO_0 {
  81.      LPWSTR         cfgi0_key;
  82.      LPWSTR         cfgi0_data;
  83. } CONFIG_INFO_0, *PCONFIG_INFO_0, *LPCONFIG_INFO_0;
  84.  
  85.  
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89.  
  90. #endif  // _LMCONFIG_
  91.