' ########################################################################################
' Microsoft Windows
' File: SpOrder.inc
' Contents: This header prototypes the 32-Bit Windows functions that are used to change
' the order or WinSock2 transport service providers and name space providers.
' 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_SpOrder_PBI)
#DEFINE PBX_SpOrder_PBI
%SPORDER_INC = 1
DECLARE FUNCTION WSCWriteProviderOrder LIB "ws2_32.dll" ALIAS "WSCWriteProviderOrder" ( BYREF lpwdCatalogEntryId AS QUAD , BYVAL dwNumberOfEntries AS QUAD ) AS LONG ' int
'#ifdef _WIN64
'int
'WSPAPI
'WSCWriteProviderOrder32 (
' IN LPDWORD lpwdCatalogEntryId,
' IN DWORD dwNumberOfEntries
' );
'#endif
DECLARE FUNCTION WSCWriteNameSpaceOrder LIB "ws2_32.dll" ALIAS "WSCWriteNameSpaceOrder" ( BYREF lpProviderId AS GUID , BYVAL dwNumberOfEntries AS QUAD ) AS LONG ' int
'#ifdef _WIN64
'int
'WSPAPI
'WSCWriteNameSpaceOrder32 (
' IN LPGUID lpProviderId,
' IN DWORD dwNumberOfEntries
' );
'#endif