Windows NT 4.0 source code leak
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.

187 lines
5.1 KiB

4 years ago
  1. 'TAPI BVT HEADER
  2. ' WARNING: This is a piece of junk. No warrantee implied.
  3. 'spaghetti, not authored by me, just scribbled by me, (ajohnh, some time in '95)
  4. '$INCLUDE 'd:\msdev\include\RECORDER.INC'
  5. '$include 'd:\msdev\include\winapi.inc'
  6. '$INCLUDE 'D:\MSDEV\INCLUDE\TBPOKE.H'
  7. '//////////////////////////////////////////
  8. '////// borrowed from my in-work TBPoke:
  9. 'logging
  10. global sOutLogName as string
  11. global sScriptName as string
  12. global sComment as string
  13. global hwndViewport as long
  14. global lCountSpace as long
  15. global lCountFunc as long
  16. global lCountTab as long
  17. global MAX_BLANK as long
  18. global sFuncString as string
  19. 'end reporting
  20. global sEndingMessage as string
  21. global sEndTitle as string
  22. 'checkbox function
  23. global sCheckbox as string
  24. global lState as long
  25. 'system metrics
  26. global ScreenX as long
  27. global ScreenY as long
  28. 'time value
  29. global MY_TIMEOUT as long
  30. global PACER as long
  31. global PARAMS as long
  32. global NOPARAMS as long
  33. global hwndTapiControl as hwndTAPI_CONTROL
  34. global ScenarioLog as LOGINITSTRUCT
  35. global sdwPrivileges as array of string
  36. global sPrivileges as string
  37. global sdwMediaModes as array of string
  38. global sMediaModes as string
  39. '
  40. global hLineApp as array of string
  41. global hLine as array of string
  42. global hCall as array of string
  43. redim sdwPrivileges(1 to 3) as string
  44. redim sdwMediaModes(1 to 14) as string
  45. redim hLineApp(1 to 5) as string 'limit 5 for now
  46. redim hLine(1 to 5) as string
  47. redim hCall(1 to 5) as string
  48. 'redim hCall(5) as string
  49. global hLineAppIndex as pointer to string
  50. 'global hLineIndex as pointer to string
  51. 'VARPTR(hLineApp(0)) 'WATCH IT
  52. 'VARPTR(hLine(0))
  53. 'counts
  54. global ldwPrivilegesBitFlag as long
  55. global ldwMediaModesBitFlag as long
  56. global ldwPrivilegesBitFlagChaos as long
  57. global ldwMediaModesBitFlagChaos as long
  58. global lLineApp as long
  59. global lLine as long
  60. global lCall as long
  61. global GenCount as long
  62. global lCountLineApp as long
  63. global GenCount2 as long
  64. 'coverage statistics
  65. 'not yet implemented
  66. global TapiStatistic as TAPI_STATISTIC
  67. global Tracelevel as long 'debug output
  68. 'duh
  69. hwndTapiControl.TapiHandle = WFndWnd("TAPI32 Browser", FW_DEFAULT) 'find TAPI32 BROWSER
  70. 'by ID, note VT will probably be using the decimal form throughout:
  71. hwndTapiControl.ParamsCheckbox =&h000003f9
  72. hwndTapiControl.LineAppPlusButton =&h000003ee
  73. hwndTapiControl.LineAppMinusButton =&h000003ef
  74. hwndTapiControl.LinePlusButton =&h000003f0
  75. hwndTapiControl.LineMinusButton =&h000003f1
  76. hwndTapiControl.CallPlusButton =&h000003f2
  77. hwndTapiControl.CallMinusButton =&h000003f3
  78. hwndTapiControl.PhoneAppPlusButton =&h000003f4
  79. hwndTapiControl.PhoneAppMinusButton =&h000003f5
  80. hwndTapiControl.PhoneOpenPlusButton =&h000003f6
  81. hwndTapiControl.PhoneOpenMinusButton =&h000003f7
  82. hwndTapiControl.ClearEditButton =&h000003f8
  83. hwndTapiControl.BlankButton0 =&h000003fa
  84. hwndTapiControl.BlankButton1 =&h000003fb
  85. hwndTapiControl.BlankButton2 =&h000003fc
  86. hwndTapiControl.BlankButton3 =&h000003fd
  87. hwndTapiControl.BlankButton4 =&h000003fe
  88. hwndTapiControl.BlankButton5 =&h000003ff
  89. hwndTapiControl.Listbox0 =&h000003e8 'middle box
  90. hwndTapiControl.Listbox1 =&h000003e9 'left box
  91. hwndTapiControl.Editbox =&h000003eb 'right box
  92. '// assign
  93. sOutLogName=curdir$+"\tapibvt.log"
  94. lCountSpace=0
  95. lCountFunc=0
  96. lCountTab=1
  97. MAX_BLANK=20 'static
  98. MY_TIMEOUT=2
  99. PACER = 1
  100. PARAMS=1
  101. NOPARAMS=0
  102. 'debug; 0=no debug; 3 low, 2 med, 1 high --I know it is backward
  103. Tracelevel=0
  104. ScreenX=GetSystemMetrics(SM_CXSCREEN)
  105. ScreenY=GetSystemMetrics (SM_CYSCREEN)
  106. ScenarioLog.LogOutputType = LogTypeFile
  107. ScenarioLog.MinDetailLevel = 3
  108. ScenarioLog.ProductVersion = "4"
  109. ScenarioLog.MachineName = "Undefined"
  110. ScenarioLog.LogLocation = "tapibvt.log"
  111. ScenarioLog.Language = "US English"
  112. 'WATCH IT
  113. 'dwPrivileges string in the form of sdwPrivileges
  114. 'change these to pointers ASAP
  115. global NONE as long, MONITOR as long, OWNER as long
  116. sdwPrivileges(1)="NONE"
  117. NONE=1
  118. sdwPrivileges(2)="MONITOR"
  119. MONITOR=2
  120. sdwPrivileges(3)="OWNER"
  121. OWNER=3
  122. 'dwMediaModes string in the form of sdwMediaModes
  123. 'edit this, this is bulky & hacked:
  124. global UNKNOWN as long, INTERACTIVEVOICE as long, AUTOMATEDVOICE as long
  125. global DATAMODEM as long, G3FAX as long, TDD as long, G4FAX as long
  126. global DIGITALDATA as long, TELETEX as long, VIDEOTEX as long
  127. global TELEX as long, MIXED as long, ADSI as long, VOICEVIEW as long
  128. sdwMediaModes(1)="UNKNOWN"
  129. UNKNOWN=1
  130. sdwMediaModes(2)="INTERACTIVEVOICE"
  131. INTERACTIVEVOICE=2
  132. sdwMediaModes(3)="AUTOMATEDVOICE"
  133. AUTOMATEDVOICE=3
  134. sdwMediaModes(4)="DATAMODEM"
  135. DATAMODEM=4
  136. sdwMediaModes(5)="G3FAX"
  137. G3FAX=5
  138. sdwMediaModes(6)="TDD"
  139. TDD=6
  140. sdwMediaModes(7)="G4FAX"
  141. G4FAX=7
  142. sdwMediaModes(8)="DIGITALDATA"
  143. DIGITALDATA=8
  144. sdwMediaModes(9)="TELETEX"
  145. TELETEX=9
  146. sdwMediaModes(10)="VIDEOTEX"
  147. VIDEOTEX=10
  148. sdwMediaModes(11)="TELEX"
  149. TELEX=11
  150. sdwMediaModes(12)="MIXED"
  151. MIXED=12
  152. sdwMediaModes(13)="ADSI"
  153. ADSI=13
  154. sdwMediaModes(14)="VOICEVIEW"
  155. VOICEVIEW=14
  156. '/////////////////////////////////
  157. '/////// END HEADER /////////////
  158. '/////////////////////////////////