home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / lmconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.0 KB  |  107 lines

  1. /*++ BUILD Version: 0003    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1999  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. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  28. #define _LMCONFIG_
  29.  
  30. #if _MSC_VER > 1000
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #define REVISED_CONFIG_APIS
  39.  
  40. //
  41. // Function Prototypes - Config
  42. //
  43.  
  44. NET_API_STATUS NET_API_FUNCTION
  45. NetConfigGet (
  46.     IN  LPCWSTR  server OPTIONAL,
  47.     IN  LPCWSTR  component,
  48.     IN  LPCWSTR  parameter,
  49. #ifdef REVISED_CONFIG_APIS
  50.     OUT LPBYTE  *bufptr
  51. #else
  52.     OUT LPBYTE  *bufptr,
  53.     OUT LPDWORD totalavailable
  54. #endif
  55.     );
  56.  
  57. NET_API_STATUS NET_API_FUNCTION
  58. NetConfigGetAll (
  59.     IN  LPCWSTR  server OPTIONAL,
  60.     IN  LPCWSTR  component,
  61. #ifdef REVISED_CONFIG_APIS
  62.     OUT LPBYTE  *bufptr
  63. #else
  64.     OUT LPBYTE  *bufptr,
  65.     OUT LPDWORD totalavailable
  66. #endif
  67.     );
  68.  
  69.  
  70. NET_API_STATUS NET_API_FUNCTION
  71. NetConfigSet (
  72.     IN  LPCWSTR  server OPTIONAL,
  73.     IN  LPCWSTR  reserved1 OPTIONAL,
  74.     IN  LPCWSTR  component,
  75.     IN  DWORD   level,
  76.     IN  DWORD   reserved2,
  77.     IN  LPBYTE  buf,
  78.     IN  DWORD   reserved3
  79.     );
  80.  
  81. NET_API_STATUS NET_API_FUNCTION
  82. NetRegisterDomainNameChangeNotification(
  83.     PHANDLE NotificationEventHandle
  84.     );
  85.  
  86. NET_API_STATUS NET_API_FUNCTION
  87. NetUnregisterDomainNameChangeNotification(
  88.     HANDLE NotificationEventHandle
  89.     );
  90.  
  91. //
  92. // Data Structures - Config
  93. //
  94.  
  95. typedef struct _CONFIG_INFO_0 {
  96.      LPWSTR         cfgi0_key;
  97.      LPWSTR         cfgi0_data;
  98. } CONFIG_INFO_0, *PCONFIG_INFO_0, *LPCONFIG_INFO_0;
  99.  
  100.  
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104.  
  105. #pragma option pop /*P_O_Pop*/
  106. #endif  // _LMCONFIG_
  107.