1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
wsasetup.h
Abstract:
This header file contains the type definitions and function prototypes
for the private interface between NT Setup and WSOCK32.DLL.
Author:
Keith Moore (keithmo) 27-Oct-1995
Revision History:
--*/
#ifndef _WSASETUP_
#define _WSASETUP_
//
// Setup disposition, used to tell Setup what actions were taken (if any).
//
typedef enum _WSA_SETUP_DISPOSITION {
WsaSetupNoChangesMade,
WsaSetupChangesMadeRebootNotNecessary,
WsaSetupChangesMadeRebootRequired
} WSA_SETUP_DISPOSITION, *LPWSA_SETUP_DISPOSITION;
//
// Opcodes for the migration callback (see below).
//
typedef enum _WSA_SETUP_OPCODE {
WsaSetupInstallingProvider,
WsaSetupRemovingProvider,
WsaSetupValidatingProvider,
WsaSetupUpdatingProvider
} WSA_SETUP_OPCODE, *LPWSA_SETUP_OPCODE;
//
// Callback function invoked by MigrationWinsockConfiguration() at
// strategic points in the migration process.
//
typedef
BOOL
(CALLBACK LPFN_WSA_SETUP_CALLBACK)(
WSA_SETUP_OPCODE Opcode,
LPVOID Parameter,
DWORD Context
);
//
// Private function exported by WSOCK32.DLL for use by NT Setup only. This
// function updates the WinSock 2.0 configuration information to reflect any
// changes made to the WinSock 1.1 configuration.
//
DWORD
WINAPI
MigrateWinsockConfiguration(
LPWSA_SETUP_DISPOSITION Disposition,
LPFN_WSA_SETUP_CALLBACK Callback OPTIONAL,
DWORD Context OPTIONAL
);
typedef
DWORD
(WINAPI * LPFN_MIGRATE_WINSOCK_CONFIGURATION)(
LPWSA_SETUP_DISPOSITION Disposition,
LPFN_WSA_SETUP_CALLBACK Callback OPTIONAL,
DWORD Context OPTIONAL
);
#endif // _WSASETUP_
|