Source code of Windows XP (NT5)
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.

130 lines
4.6 KiB

  1. ;----------------------------------------------------------------------------;
  2. ; Copyright (C) Microsoft Corporation 1985-1991. All Rights Reserved. ;
  3. ;----------------------------------------------------------------------------;
  4. ;----------------------------------------------------------------------------;
  5. ; This file has the equates for the switch api calls. ;
  6. ; ;
  7. ; History: ;
  8. ; ;
  9. ; Thu Aug-23-1990. -by- Amit Chatterjee [amitc] ;
  10. ; Created for Switcher. (Added the History legend) ;
  11. ;----------------------------------------------------------------------------;
  12. ;----------------------------------------------------------------------------;
  13. ; define constants for the switch API. ;
  14. ;----------------------------------------------------------------------------;
  15. SWAPI_BUILD_CHAIN equ 4B01h ;INT 2F code for the Switch API
  16. SWAPI_DETECT_SWITCHER equ 4B02h ;call to detect presence of switcher
  17. SWAPI_ALLOCATE_SW_ID equ 4B03h ;allocates switcher ID (done by shell)
  18. SWAPI_FREE_SW_ID equ 4B04h ;frees switcher ID (done by shell)
  19. SWAPI_GET_INST_DATA equ 4B05h ;gets instance data
  20. SWAPI_ALLOC_MEM_CALLIN equ 4B06h ;allocate global memory call in
  21. SWAPI_ALLOC_MEM equ 0001h ;allocate global memory
  22. ;-----------------------------------------;
  23. ; call out equates. ;
  24. ;-----------------------------------------;
  25. SWAPI_INIT_SWITCHER equ 0 ;switcher starts
  26. SWAPI_QUERY_SUSPEND equ 1 ;Query_Suspend
  27. SWAPI_SUSPEND equ 2 ;Suspend session
  28. SWAPI_RESUME equ 3 ;Resume session
  29. SWAPI_SESSION_ACTIVE equ 4 ;resume session now active
  30. SWAPI_CREATE equ 5 ;Create session
  31. SWAPI_Destroy equ 6 ;Destroy session
  32. SWAPI_SWITCHER_EXIT equ 7 ;switcher exits
  33. ;-----------------------------------------;
  34. ; call in equates. ;
  35. ;-----------------------------------------;
  36. SWAPI_GETVERSION equ 0 ;GetVersion call in
  37. SWAPI_TESTMEMORYREGION equ 1 ;TestMemoryRegion
  38. SWAPI_SUSPEND_SWITCHER equ 2 ;SuspendSwitcher
  39. SWAPI_RESUME_SWITCHER equ 3 ;ResumeSwitcher
  40. SWAPI_HOOK_CALLOUT equ 4 ;Hook CallOut
  41. SWAPI_UNHOOK_CALLOUT equ 5 ;UnHook CallOut
  42. SWAPI_QUERY_API_SUPPORT equ 6 ;get network API support details
  43. ;----------------------------------------;
  44. ; Switch API call back info structure. ;
  45. ;----------------------------------------;
  46. Switch_Call_Back_Info STRUC
  47. SCBI_Next dd ? ;pointer to next structure in list
  48. SCBI_Entry_Pt dd ? ;CS:IP of entry point procedure
  49. SCBI_Reserved dd ? ;used by the switcher
  50. SCBI_API_Ptr dd ? ;pinter to list of API structures
  51. Switch_Call_Back_Info ENDS
  52. ;----------------------------------------;
  53. ; structure for API support details. ;
  54. ;----------------------------------------;
  55. API_Info_Struc STRUC
  56. AIS_Length dw ? ;length of the structure
  57. AIS_API dw ? ;the API ID value
  58. AIS_Major_Ver dw ? ;major version of API spec
  59. AIS_Minor_Ver dw ? ;minor version of the API spec
  60. AIS_Support_Level dw ? ;support level
  61. API_Info_Struc ENDS
  62. ;----------------------------------------;
  63. ; currently defined API ID values. ;
  64. ;----------------------------------------;
  65. API_NETBIOS equ 1 ;Netbios
  66. API_8022 equ 2 ;802.2
  67. API_TCPIP equ 3 ;TCP/IP
  68. API_LANMAN equ 4 ;LAN Manager named pipes
  69. API_IPX equ 5 ;NetWare IPX
  70. ;---------------------------------------;
  71. ; currently defined support levels ;
  72. ;---------------------------------------;
  73. API_SL_STOPALL equ 1 ;stop all calls
  74. API_SL_MINIMAL equ 2 ;stop asynchronous calls
  75. API_SL_API equ 3 ;API level support
  76. API_SL_SW_COMPT equ 4 ;switcher compatible
  77. API_SL_SEAMLESS equ 5 ;seamless support
  78. ;---------------------------------------;
  79. ; structure for return from get version ;
  80. ;---------------------------------------;
  81. Switcher_Ver_Struc STRUC
  82. SVS_API_Major dw ? ;major version of the specs
  83. SVS_API_Minor dw ? ;minor version of the specs
  84. SVS_Product_Major dw ? ;major version of the task switcher
  85. SVS_Product_Minor dw ? ;minor version of the product
  86. SVS_Switcher_ID dw ? ;ID of the switcher
  87. SVS_Flags dw ? ;enabled/disabled
  88. SVS_Name_Ptr dd ? ;long pointer to ID string
  89. SVS_Prev_Switcher dd ? ;pointer to next switcher
  90. Switcher_Ver_Struc ENDS
  91. ;----------------------------------------;
  92. ; constants used by the Switcher ;
  93. ;----------------------------------------;
  94. OUR_API_MAJOR equ 1 ;major ver of the specs
  95. OUR_API_MINOR equ 0 ;minor ver of the specs
  96. OUR_PRODUCT_MAJOR equ 5 ;major ver of the switcher
  97. OUR_PRODUCT_MINOR equ 0 ;minor ver of the switcher
  98. OUR_NB_MAJOR_VER equ 2 ;major version of NetBios
  99. OUR_NB_MINOR_VER equ 0 ;minor version of NetBios
  100. ;----------------------------------------------------------------------------;