' The Telephony API is jointly copyrighted by Intel and Microsoft. You are
' granted a royalty free worldwide, unlimited license to make copies, and use
' the API/SPI for making applications/drivers that interface with the
' specification provided that this paragraph and the Intel/Microsoft copyright
' statement is maintained as is in the text and source code files.
'
' Copyright 1992, 1993 Intel/Microsoft, all rights reserved.
'
' typedef of the LINE callback procedure
'
' Sub LINECALLBACK (ByVal hDevice As Long, ByVal dwMessage As Long, ByVal dwInstance As Long, ByVal dwParam1 As Long, ByVal dwParam2 As Long, ByVal dwParam3 As Long)
'
' typedef of the PHONE callback procedure
'
' Sub PHONECALLBACK (ByVal hDevice As Long, ByVal dwMessage As Long, ByVal dwInstance As Long, ByVal dwParam1 As Long, ByVal dwParam2 As Long, ByVal dwParam3 As Long)
Declare Function tapiRequestMakeCall Lib "TAPI32.DLL" (ByVal lpszDestAddress As String, ByVal lpszAppName As String, ByVal lpszCalledParty As String, ByVal lpszComment As String) As Long
Declare Function tapiRequestMediaCall Lib "TAPI32.DLL" (ByVal hWnd As Integer, ByVal wRequestID As Integer, ByVal lpszDeviceClass As String, ByVal lpDeviceID As String, ByVal dwSize As Long, ByVal dwSecure As Long, ByVal lpszDestAddress As String, ByVal lpszAppName As String, ByVal lpszCalledParty As String, ByVal lpszComment As String) As Long
Declare Function tapiRequestDrop Lib "TAPI32.DLL" (ByVal hWnd As Integer, ByVal wRequestID As Integer) As Long
Declare Function lineRegisterRequestRecipient Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwRegistrationInstance As Long, ByVal dwRequestMode As Long, ByVal bEnable As Long) As Long
Declare Function tapiGetLocationInfo Lib "TAPI32.DLL" (ByVal lpszCountryCode As String, ByVal lpszCityCode As String) As Long
Declare Function lineSetCurrentLocation Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwLocation As Long) As Long
Declare Function lineSetTollList Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal lpszAddressIn As String, ByVal dwTollListOption As Long) As Long
Declare Function lineTranslateAddress Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal dwAPIVersion As Long, ByVal lpszAddressIn As String, ByVal dwCard As Long, ByVal dwTranslateOptions As Long, lpTranslateOutput As Any) As Long
Declare Function lineGetTranslateCaps Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwAPIVersion As Long, lpTranslateCaps As Any) As Long
Declare Function lineAccept Lib "TAPI32.DLL" (ByVal hCall As Long, lpsUserUserInfo As Any, ByVal dwSize As Long) As Long
Declare Function lineAddToConference Lib "TAPI32.DLL" (ByVal hConfCall As Long, ByVal hConsultCall As Long) As Long
Declare Function lineAnswer Lib "TAPI32.DLL" (ByVal hCall As Long, lpsUserUserInfo As Any, ByVal dwSize As Long) As Long
Declare Function lineBlindTransfer Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal lpszDestAddress As String, ByVal dwCountryCode As Long) As Long
Declare Function lineClose Lib "TAPI32.DLL" (ByVal hLine As Long) As Long
Declare Function lineCompleteCall Lib "TAPI32.DLL" (ByVal hCall As Long, lpdwCompletionID As Long, ByVal dwCompletionMode As Long, ByVal dwMessageID As Long) As Long
Declare Function lineCompleteTransfer Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal hConsultCall As Long, lphConfCall As Long, ByVal dwTransferMode As Long) As Long
Declare Function lineConfigDialog Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, ByVal hwndOwner As Integer, ByVal lpszDeviceClass As String) As Long
Declare Function lineDeallocateCall Lib "TAPI32.DLL" (ByVal hCall As Long) As Long
Declare Function lineDevSpecific Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal hCall As Long, lpParams As Any, ByVal dwSize As Long) As Long
Declare Function lineDevSpecificFeature Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwFeature As Long, lpParams As Any, ByVal dwSize As Long) As Long
Declare Function lineDial Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal lpszDestAddress As String, ByVal dwCountryCode As Long) As Long
Declare Function lineDrop Lib "TAPI32.DLL" (ByVal hCall As Long, lpsUserUserInfo As Any, ByVal dwSize As Long) As Long
Declare Function lineForward Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal bAllAddresses As Long, ByVal dwAddressID As Long, lpForwardList As Any, ByVal dwNumRingsNoAnswer As Long, lphConsultCall As Long, lpCallParams As Any) As Long
Declare Function lineGatherDigits Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwDigitModes As Long, lpsDigits As Any, ByVal dwNumDigits As Long, ByVal lpszTerminationDigits As String, ByVal dwFirstDigitTimeout As Long, ByVal dwInterDigitTimeout As Long) As Long
Declare Function lineGenerateDigits Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwDigitMode As Long, ByVal lpszDigits As String, ByVal dwDuration As Long) As Long
Declare Function lineGenerateTone Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwToneMode As Long, ByVal dwDuration As Long, ByVal dwNumTones As Long, lpTones As LINEGENERATETONE_TYPE) As Long
Declare Function lineGetAddressCaps Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal dwAddressID As Long, ByVal dwAPIVersion As Long, ByVal dwExtVersion As Long, ByVal lpAddressCaps As String) As Long
Declare Function lineGetAddressID Lib "TAPI32.DLL" (ByVal hLine As Long, lpdwAddressID As Long, ByVal dwAddressMode As Long, lpsAddress As Any, ByVal dwSize As Long) As Long
Declare Function lineGetAddressStatus Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, lpAddressStatus As Any) As Long
Declare Function lineGetCallInfo Lib "TAPI32.DLL" (ByVal hCall As Long, lpCallInfo As Any) As Long
Declare Function lineGetCallStatus Lib "TAPI32.DLL" (ByVal hCall As Long, lpCallStatus As Any) As Long
Declare Function lineGetConfRelatedCalls Lib "TAPI32.DLL" (ByVal hCall As Long, lpCallList As Any) As Long
Declare Function lineGetDevCaps Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal dwAPIVersion As Long, ByVal dwExtVersion As Long, ByVal lpLineDevCaps As String) As Long
Declare Function lineGetDevConfig Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, lpDeviceConfig As Any, ByVal lpszDeviceClass As String) As Long
Declare Function lineGetNewCalls Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal dwSelect As Long, lpCallList As Any) As Long
Declare Function lineGetIcon Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, ByVal lpszDeviceClass As String, lphIcon As Integer) As Long
Declare Function lineGetID Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal hCall As Long, ByVal dwSelect As Long, lpDeviceID As Any, ByVal lpszDeviceClass As String) As Long
Declare Function lineGetLineDevStatus Lib "TAPI32.DLL" (ByVal hLine As Long, lpLineDevStatus As Any) As Long
Declare Function lineGetNumRings Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, lpdwNumRings As Long) As Long
Declare Function lineGetRequest Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwRequestMode As Long, lpRequestBuffer As Any) As Long
Declare Function lineGetStatusMessages Lib "TAPI32.DLL" (ByVal hLine As Long, lpdwLineStates As Long, lpdwAddressStates As Long) As Long
Declare Function lineHandoff Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal lpszFileName As String, ByVal dwMediaMode As Long) As Long
Declare Function lineHold Lib "TAPI32.DLL" (ByVal hCall As Long) As Long
Declare Function lineInitialize Lib "TAPI32.DLL" (lphLineApp As Long, ByVal hInstance As Integer, ByVal lpfnCallback As Long, ByVal lpszAppName As String, lpdwNumDevs As Long) As Long
Declare Function lineMakeCall Lib "TAPI32.DLL" (ByVal hLine As Long, lphCall As Long, ByVal lpszDestAddress As String, ByVal dwCountryCode As Long, lpCallParams As Any) As Long
Declare Function lineMonitorDigits Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwDigitModes As Long) As Long
Declare Function lineMonitorMedia Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwMediaModes As Long) As Long
Declare Function lineMonitorTones Lib "TAPI32.DLL" (ByVal hCall As Long, lpToneList As Any, ByVal dwNumEntries As Long) As Long
Declare Function lineNegotiateAPIVersion Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal dwAPILowVersion As Long, ByVal dwAPIHighVersion As Long, lpdwAPIVersion As Long, lpExtensionID As LINEEXTENSIONID) As Long
Declare Function lineNegotiateExtVersion Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, ByVal dwAPIVersion As Long, ByVal dwExtLowVersion As Long, ByVal dwExtHighVersion As Long, lpdwExtVersion As Long) As Long
Declare Function lineOpen Lib "TAPI32.DLL" (ByVal hLineApp As Long, ByVal dwDeviceID As Long, lphLine As Long, ByVal dwAPIVersion As Long, ByVal dwExtVersion As Long, ByVal dwCallbackInstance As Long, ByVal dwPrivileges As Long, ByVal dwMediaModes As Long, lpCallParams As Any) As Long
Declare Function linePark Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwParkMode As Long, ByVal lpszDirAddress As String, lpNonDirAddress As Any) As Long
Declare Function linePickup Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, lphCall As Long, ByVal lpszDestAddress As String, ByVal lpszGroupID As String) As Long
Declare Function linePrepareAddToConference Lib "TAPI32.DLL" (ByVal hConfCall As Long, lphConsultCall As Long, lpCallParams As Any) As Long
Declare Function lineRedirect Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal lpszDestAddress As String, ByVal dwCountryCode As Long) As Long
Declare Function lineRemoveFromConference Lib "TAPI32.DLL" (ByVal hCall As Long) As Long
Declare Function lineSecureCall Lib "TAPI32.DLL" (ByVal hCall As Long) As Long
Declare Function lineSendUserUserInfo Lib "TAPI32.DLL" (ByVal hCall As Long, lpsUserUserInfo As Any, ByVal dwSize As Long) As Long
Declare Function lineSetAppSpecific Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwAppSpecific As Long) As Long
Declare Function lineSetCallParams Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwBearerMode As Long, ByVal dwMinRate As Long, ByVal dwMaxRate As Long, lpDialParams As LINEDIALPARAMS) As Long
Declare Function lineSetCallPrivilege Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwCallPrivilege As Long) As Long
Declare Function lineSetDevConfig Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, lpDeviceConfig As Any, ByVal dwSize As Long, ByVal lpszDeviceClass As String) As Long
Declare Function lineSetMediaControl Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal hCall As Long, ByVal dwSelect As Long, lpDigitList As Any, ByVal dwDigitNumEntries As Long, lpMediaList As Any, ByVal dwMediaNumEntries As Long, lpToneList As Any, ByVal dwToneNumEntries As Long, lpCallStateList As Any, ByVal dwCallStateNumEntries As Long) As Long
Declare Function lineSetMediaMode Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal dwMediaModes As Long) As Long
Declare Function lineSetNumRings Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal dwNumRings As Long) As Long
Declare Function lineSetStatusMessages Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwLineStates As Long, ByVal dwAddressStates As Long) As Long
Declare Function lineSetTerminal Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, ByVal hCall As Long, ByVal dwSelect As Long, ByVal dwTerminalModes As Long, ByVal dwTerminalID As Long, ByVal bEnable As Long) As Long
Declare Function lineSetupConference Lib "TAPI32.DLL" (ByVal hCall As Long, ByVal hLine As Long, lphConfCall As Long, lphConsultCall As Long, ByVal dwNumParties As Long, lpCallParams As Any) As Long
Declare Function lineSetupTransfer Lib "TAPI32.DLL" (ByVal hCall As Long, lphConsultCall As Long, lpCallParams As Any) As Long
Declare Function lineShutdown Lib "TAPI32.DLL" (ByVal hLineApp As Long) As Long
Declare Function lineSwapHold Lib "TAPI32.DLL" (ByVal hActiveCall As Long, ByVal hHeldCall As Long) As Long
Declare Function lineUncompleteCall Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwCompletionID As Long) As Long
Declare Function lineUnhold Lib "TAPI32.DLL" (ByVal hCall As Long) As Long
Declare Function lineUnpark Lib "TAPI32.DLL" (ByVal hLine As Long, ByVal dwAddressID As Long, lphCall As Long, ByVal lpszDestAddress As String) As Long
Declare Function phoneClose Lib "TAPI32.DLL" (ByVal hPhone As Long) As Long
Declare Function phoneConfigDialog Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, ByVal hwndOwner As Integer, ByVal lpszDeviceClass As String) As Long
Declare Function phoneDevSpecific Lib "TAPI32.DLL" (ByVal hPhone As Long, lpParams As Any, ByVal dwSize As Long) As Long
Declare Function phoneGetButtonInfo Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwButtonLampID As Long, lpButtonInfo As Any) As Long
Declare Function phoneGetData Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwDataID As Long, lpData As Any, ByVal dwSize As Long) As Long
Declare Function phoneGetDevCaps Lib "TAPI32.DLL" (ByVal hPhoneApp As Long, ByVal dwDeviceID As Long, ByVal dwAPIVersion As Long, ByVal dwExtVersion As Long, lpPhoneCaps As Any) As Long
Declare Function phoneGetDisplay Lib "TAPI32.DLL" (ByVal hPhone As Long, lpDisplay As Any) As Long
Declare Function phoneGetGain Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwHookSwitchDev As Long, lpdwGain As Long) As Long
Declare Function phoneGetHookSwitch Lib "TAPI32.DLL" (ByVal hPhone As Long, lpdwHookSwitchDevs As Long) As Long
Declare Function phoneGetIcon Lib "TAPI32.DLL" (ByVal dwDeviceID As Long, ByVal lpszDeviceClass As String, lphIcon As Integer) As Long
Declare Function phoneGetID Lib "TAPI32.DLL" (ByVal hPhone As Long, lpDeviceID As Any, ByVal lpszDeviceClass As String) As Long
Declare Function phoneGetLamp Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwButtonLampID As Long, lpdwLampMode As Long) As Long
Declare Function phoneGetRing Lib "TAPI32.DLL" (ByVal hPhone As Long, lpdwRingMode As Long, lpdwVolume As Long) As Long
Declare Function phoneGetStatus Lib "TAPI32.DLL" (ByVal hPhone As Long, lpPhoneStatus As Any) As Long
Declare Function phoneGetStatusMessages Lib "TAPI32.DLL" (ByVal hPhone As Long, lpdwPhoneStates As Long, lpdwButtonModes As Long, lpdwButtonStates As Long) As Long
Declare Function phoneGetVolume Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwHookSwitchDev As Long, lpdwVolume As Long) As Long
Declare Function phoneInitialize Lib "TAPI32.DLL" (lphPhoneApp As Long, ByVal hInstance As Long, ByVal lpfnCallback As Long, ByVal lpszAppName As String, lpdwNumDevs As Long) As Long
Declare Function phoneNegotiateAPIVersion Lib "TAPI32.DLL" (ByVal hPhoneApp As Long, ByVal dwDeviceID As Long, ByVal dwAPILowVersion As Long, ByVal dwAPIHighVersion As Long, lpdwAPIVersion As Long, lpExtensionID As PHONEEXTENSIONID) As Long
Declare Function phoneNegotiateExtVersion Lib "TAPI32.DLL" (ByVal hPhoneApp As Long, ByVal dwDeviceID As Long, ByVal dwAPIVersion As Long, ByVal dwExtLowVersion As Long, ByVal dwExtHighVersion As Long, lpdwExtVersion As Long) As Long
Declare Function phoneOpen Lib "TAPI32.DLL" (ByVal hPhoneApp As Long, ByVal dwDeviceID As Long, lphPhone As Long, ByVal dwAPIVersion As Long, ByVal dwExtVersion As Long, ByVal dwCallbackInstance As Long, ByVal dwPrivilege As Long) As Long
Declare Function phoneSetButtonInfo Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwButtonLampID As Long, lpButtonInfo As Any) As Long
Declare Function phoneSetData Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwDataID As Long, lpData As Any, ByVal dwSize As Long) As Long
Declare Function phoneSetDisplay Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwRow As Long, ByVal dwColumn As Long, lpsDisplay As Any, ByVal dwSize As Long) As Long
Declare Function phoneSetGain Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwHookSwitchDev As Long, ByVal dwGain As Long) As Long
Declare Function phoneSetHookSwitch Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwHookSwitchDevs As Long, ByVal dwHookSwitchMode As Long) As Long
Declare Function phoneSetLamp Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwButtonLampID As Long, ByVal dwLampMode As Long) As Long
Declare Function phoneSetRing Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwRingMode As Long, ByVal dwVolume As Long) As Long
Declare Function phoneSetStatusMessages Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwPhoneStates As Long, ByVal dwButtonModes As Long, ByVal dwButtonStates As Long) As Long
Declare Function phoneSetVolume Lib "TAPI32.DLL" (ByVal hPhone As Long, ByVal dwHookSwitchDev As Long, ByVal dwVolume As Long) As Long
Declare Function phoneShutdown Lib "TAPI32.DLL" (ByVal hPhoneApp As Long) As Long