home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / msinc.pak / LMCONFIG.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  2KB  |  113 lines

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