|
|
1.1 ! root 1: /*++ BUILD Version: 0003 // Increment this if a change has global effects ! 2: ! 3: Copyright (c) 1991-1993 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: Author: ! 16: ! 17: Dan Lafferty (danl) 29-Mar-1991 ! 18: ! 19: Environment: ! 20: ! 21: User Mode - Win32 ! 22: ! 23: Notes: ! 24: ! 25: You must include NETCONS.H before this file, since this file depends ! 26: on values defined in NETCONS.H. ! 27: ! 28: Revision History: ! 29: ! 30: 28-Mar-1991 Danl ! 31: Ported from LM2.0 and the LMNETAPI spec. ! 32: 20-Nov-1991 JohnRo ! 33: Implemented remote NetConfig APIs. Changed LPSTR to LPTSTR. ! 34: NetConfigGet and NetConfigGetAll shouldn't return total available. ! 35: Don't use ULONG. ! 36: 08-Apr-1992 JohnRo ! 37: Fixed UNICODE handling. ! 38: ! 39: --*/ ! 40: ! 41: #ifndef _LMCONFIG_ ! 42: #define _LMCONFIG_ ! 43: ! 44: #ifdef __cplusplus ! 45: extern "C" { ! 46: #endif ! 47: ! 48: #define REVISED_CONFIG_APIS ! 49: ! 50: // ! 51: // Function Prototypes - Config ! 52: // ! 53: ! 54: NET_API_STATUS NET_API_FUNCTION ! 55: NetConfigGet ( ! 56: IN LPTSTR server OPTIONAL, ! 57: IN LPTSTR component, ! 58: IN LPTSTR parameter, ! 59: #ifdef REVISED_CONFIG_APIS ! 60: OUT LPBYTE *bufptr ! 61: #else ! 62: OUT LPBYTE *bufptr, ! 63: OUT LPDWORD totalavailable ! 64: #endif ! 65: ); ! 66: ! 67: NET_API_STATUS NET_API_FUNCTION ! 68: NetConfigGetAll ( ! 69: IN LPTSTR server OPTIONAL, ! 70: IN LPTSTR component, ! 71: #ifdef REVISED_CONFIG_APIS ! 72: OUT LPBYTE *bufptr ! 73: #else ! 74: OUT LPBYTE *bufptr, ! 75: OUT LPDWORD totalavailable ! 76: #endif ! 77: ); ! 78: ! 79: ! 80: NET_API_STATUS NET_API_FUNCTION ! 81: NetConfigSet ( ! 82: IN LPTSTR server OPTIONAL, ! 83: IN LPTSTR reserved1 OPTIONAL, ! 84: IN LPTSTR component, ! 85: IN DWORD level, ! 86: IN DWORD reserved2, ! 87: IN LPBYTE buf, ! 88: IN DWORD reserved3 ! 89: ); ! 90: ! 91: // ! 92: // Data Structures - Config ! 93: // ! 94: ! 95: typedef struct _CONFIG_INFO_0 { ! 96: LPTSTR cfgi0_key; ! 97: LPTSTR cfgi0_data; ! 98: } CONFIG_INFO_0, *PCONFIG_INFO_0, *LPCONFIG_INFO_0; ! 99: ! 100: ! 101: #ifdef __cplusplus ! 102: } ! 103: #endif ! 104: ! 105: #endif // _LMCONFIG_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.