' ########################################################################################
' Microsoft Windows
' File: LMConfig.inc
' Contents: API function prototypes and data structures for the NetConfig group of NT API functions
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_LMConfig_PBI)
#DEFINE PBX_LMConfig_PBI
%EQUATE `LMCONFIG_INC = 1
'#define REVISED_CONFIG_APIS
'//
'// Function Prototypes - Config
'//
DECLARE FUNCTION NetConfigGet LIB "netapi32.dll" ALIAS "NetConfigGet" ( BYREF server AS WSTRINGZ , BYREF component AS WSTRINGZ , BYREF parameter AS WSTRINGZ , BYREF bufptr AS ANY ) AS QUAD ' NET_API_STATUS
DECLARE FUNCTION NetConfigGetAll LIB "netapi32.dll" ALIAS "NetConfigGetAll" ( BYREF server AS WSTRINGZ , BYREF component AS WSTRINGZ , BYREF bufptr AS ANY ) AS QUAD ' NET_API_STATUS
DECLARE FUNCTION NetConfigSet LIB "netapi32.dll" ALIAS "NetConfigSet" ( BYREF server AS WSTRINGZ , BYREF reserved1 AS WSTRINGZ , BYREF component AS WSTRINGZ , BYVAL level AS QUAD , BYVAL reserved2 AS QUAD , BYVAL buf AS BYTE PTR , BYVAL reserved3 AS QUAD ) AS QUAD ' NET_API_STATUS
' Removed in the Windows 7 SDK
'DECLARE FUNCTION NetRegisterDomainNameChangeNotification ' LIB "netapi32.dll" ALIAS "NetRegisterDomainNameChangeNotification" ( ' BYREF NotificationEventHandle AS DWORD
' ) AS DWORD ' NET_API_STATUS
' Removed in the Windows 7 SDK
'DECLARE FUNCTION NetUnregisterDomainNameChangeNotification ' LIB "netapi32.dll" ALIAS "NetUnregisterDomainNameChangeNotification" ( ' BYVAL NotificationEventHandle AS DWORD
' ) AS DWORD ' NET_API_STATUS
'//
'// Data Structures - Config
'//
' // Size = 8 bytes
TYPE CONFIG_INFO_0 DWORD
 cfgi0_key AS WSTRINGZ PTR
 cfgi0_data AS WSTRINGZ PTR
END TYPE
#ENDIF
