Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.8 KiB

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