summaryrefslogtreecommitdiffstats
path: root/private/inc/wsasetup.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/inc/wsasetup.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/inc/wsasetup.h')
-rw-r--r--private/inc/wsasetup.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/private/inc/wsasetup.h b/private/inc/wsasetup.h
new file mode 100644
index 000000000..e2123004e
--- /dev/null
+++ b/private/inc/wsasetup.h
@@ -0,0 +1,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_
+