| STDMETHODIMP CAdapter::CreateOpen(IDispatch **ppDisp) |
| Description |
This command creates an Open object on the associated adapter object. This only sets up internal structures in the user mode. The driver should see no activity. This should never fail. |
| Parameters | |
| ppDisp | Returns an IDispatch to newly created Open object |
| STDMETHODIMP CAdapter::GetIPGateway(VARIANT *pIPAddr,VARIANT *pMacAddr,VARIANT_BOOL *pbResult) |
| Description |
This command is used to get IP address and Default Gateway's MAC address for a particular adapter. This command is used with tests that use IP Packets. |
| Parameters | |
| pIPAddr | Return Value for IP Address of the Adapter |
| pMacAddr | Return Value for Default Gateway's MAC Address |
| pbResult | Return Value for Success(true) or Failure(false) |
| STDMETHODIMP CAdapter::QueryGuid(VARIANT *pvOidGuid, VARIANT *pvData, VARIANT_BOOL *pbResult) |
| Description |
This command will uses WMI to query an oid in the driver. Internally the OID is converted into a WMI GUID. The WMI query is made and ndis.sys converts the WMI query into a standard OID query. The driver should see a standard OID query or nothing at all if ndis.sys responds to the OID itself. |
| Parameters | |
| pvOidGuid | OID to query |
| pvData | buffer to receive response in |
| pbResult | Return Value for Success(true) or Failure(false) |
| STDMETHODIMP CAdapter::QueryInfo( ULONG ulOidCode, VARIANT *pData, ULONG ulQueryMode, VARIANT_BOOL *pbResult) |
| Description |
This uses CreateFile and DeviceIoControl to query oids from the user mode. The modes can be one of the following: ulQUERY_ALL_STATS - returns responses for a number of predefined oid queries ulQUERY_SELECTED_STATS - returns the response for this single oid on this single device (default) ulQUERY_GLOBAL_STATS - returns the response for this single oid on this single device |
| Parameters | |
| ulOidCode | OID to query |
| pData | buffer to receive response in |
| ulQueryMode | (optional) See mode descriptions above |
| pbResult | Return Value for Success(true) or Failure(false) |
| STDMETHODIMP Cbase::CreateAdapter(IDispatch *pDispObj, IDispatch **ppDisp) |
| Description |
This command is used to create an adapter object. The adapter object is fundamental to ndistester scripts and is used to work with network devices on the machine. It encapsulates properties like device GUID and description etc. It also provides methods to create opens on the adapter and maintain the list of opens. |
| Parameters | |
| pDispObj | The IAdapter object obtained from NDInfo |
| pDisp | Returns the newly created Adapter object to the caller |
Example:
Set oTestCard = oNDTCore.CreateAdapter(oNDInfo.AdapterList(0))
| STDMETHODIMP Cbase::CreateFlowspec(IDispatch **ppDisp) |
| Description |
This command is used to create flowspec object. The flowspec object is used as a QOS parameter for ATM connection using MakeCall. The properties of flowspec object are as follows : TokenRate TokenBucketSize PeakBandwidth Latency DelayVariation ServiceType MaxSduSize MinimumPolicedSize |
| Parameters | |
| ppDisp | Interface pointer used to return a pointer to Flowspec object |
Example:
Set SendFlowSpec = oNDTCore.CreateFlowSpec()
Set RecvFlowSpec = oNDTCore.CreateFlowSpec()
SendFlowSpec.TokenBucketSize = 32768
SendFlowSpec.ServiceType = GUARANTEED
SendFlowSpec.MaxSduSize = 10240
| STDMETHODIMP Cbase::CreateIpSecObj(VARIANT *pvIpsecObj, IDispatch **ppDisp) |
| Description |
This command is used to create a TCP/IP IPSec Offload Task object that can be supplied to the SetOffloadTask command in order to offload a IPSec task. |
| Parameters | |
| pbIPSecObj | The Offload Information to create the Task Offload Object from. This info usually comes from the ParseOffloadInfo method |
| ppDisp | Returns a pointer to the IPSec task object created |
Example:
Set IPSecOffloadTask = oNDTCore.CreateTcpIpIpSecObj(IPSecOffloadTaskInfo(0))
'This will create and return to the script a IPSecOffloadTask object constructed from
'the first task in IPSecOffloadTaskInfo array.
| STDMETHODIMP Cbase::CreateIpSecSAObj(VARIANT *pvIpSecSAObj, IDispatch **ppDisp) |
| Description |
This command create an IPSecSAObj and returns a reference of it to the caller. This command can be used to create an empty SA object or create a copy of an optionally passed SA object. |
| Parameters | |
| pvIpSecSaObj | Optional parameter. An IPSecSAObj can be passed to create a copy of it and returned using this param |
| ppDisp | Returns the IPSecSA object to the caller using |
Example:
Set IPSecSA = oNDTCore.CreateIPSecSAObj()
| STDMETHODIMP Cbase::CreateTcpIpChecksumObj(VARIANT *pvCheckSumObj, IDispatch **ppDisp) |
| Description |
This command is used to Create a TCP/IP Checksum Offload Task object that can be supplied to the SetOffloadTask command in order to offload a Checksum task. |
| Parameters | |
| pbCheckSumObj | The Offload Information to create the Task Offload Object from. This info usually comes from the ParseOffloadInfo method |
| ppDisp | Returns a pointer to the checksum task object created |
Example:
Set CksumOffloadTask = oNDTCore.CreateTcpIpChecksumObj(CksumOffloadTaskInfo(0))
'This will create and return to the script a CksumOffloadTask object constructed from
'the first task in CksumOffloadTaskInfo array.
| STDMETHODIMP Cbase::CreateTcpIpLargeSendObj(VARIANT *pvLargeSendObj, IDispatch **ppDisp) |
| Description |
This command is used to create a TCP/IP Largesend Offload Task object that can be supplied to the SetOffloadTask command in order to offload a Largesend task. |
| Parameters | |
| pbLargesendObj | The Offload Information to create the Task Offload Object from. This info usually comes from the ParseOffloadInfo method |
| ppDisp | Returns a pointer to the Largesend task object created |
Example:
Set LargesendOffloadTask = oNDTCore.CreateTcpIpLargesendObj(LargeSendOffloadTaskInfo(0))
'This will create and return to the script a LargeSendOffloadTask object constructed from
'the first task in LargeSendOffloadTaskInfo array.
| STDMETHODIMP Cbase::GetIPSecCombos(IDispatch *pIpSecTaskObj, VARIANT *pvlNumOfCombos, VARIANT *pvComboSafeArray, VARIANT_BOOL *pbResult) |
| Description |
This command is used to get an array of all the IP Sec combinations that can be offloaded onto the NIC for a IP Sec Offload Task |
| Parameters | |
| pIpSecTaskObj | The IPSec Offload Task for which combinations are to be generated |
| pvlNumOfCombos | The total number of combinations found |
| pvComboSafeArray | Optional! The array that will contain the IPSecCombo objects for each combo |
| pbResult | Returns TRUE on success, false on failure |
Example:
bResult = oNDTCore.GetIPSecCombos(IPSecOffloadTask, NumTestCombos, ArrayTestCombos)
ArrayTestCombos is an array of size NumTestCombos. To get this size, GetIPSecCombos
can be called without the last parameter (it is optional)
| STDMETHODIMP Cbase::GetWolPattern( VARIANT *pvPatternList, ULONG ulStartOffset, VARIANT *pvNetAddr, ULONG NdisMedium, VARIANT *pvPattern, VARIANT *pvNextPatternOffset, VARIANT_BOOL *pbResult) |
| Description |
This command can be used to successively get the next WOL pattern packet to bring this machine out of sleep state. This command usually would follow a NdisRequest using OID_PNP_WAKE_UP_PATTERN_LIST to query the list of all registered wake patterns |
| Parameters | |
| pvPatternList | The list of registered patterns for WOL on this machines. This is usually obtained by querying OID_PNP_WAKE_UP_PATTERN_LIST |
| ulStartOffset | Offset from where to start looking for pattern |
| pvNetAddr | MAC address to be filled as the source of WOL pattern packet |
| NdisMedium | The medium the test is running on |
| pvPattern | The variable in which Pattern is to be returned |
| pvNextPatternOffset | Returns the offset where the next pattern is in the pvPatternList |
Example:
NextPatternOffset = 0
while (NextPatternOffset <> PatternListSize)
StartOffset = NextPatternOffset
bResult = oNDTCore.GetWolPattern (PatternList, StartOffset, SupportCardAddr, NdisMedium, Pattern, NextPatternOffset)
Loop
| STDMETHODIMP Cbase::ParseOffloadInfo(LONG TaskId, VARIANT *pvAllTaskBuffer, VARIANT *pvlNumOfTasks, VARIANT *pvCurTaskBuffer, VARIANT_BOOL *pbResult) |
| Description |
This command takes the offload information returned by the NIC and parses out information for the requested offload task. It also returns how many tasks were parsed. |
| Parameters | |
| TaskID | Type of Offload Task - Checksum, Largesend or IPSec |
| pvAllTaskBuffer | The buffer containing offload tasks info returned by the driver |
| pvlNumOfTasks | Returns number of tasks that were parsed out of the AllTaskBuffer |
| pvCurTaskBuffer | The parsed tasks are returned using this buffer array |
| pbResult | Returns True on success, false on failure |
Example:
bResult = oNDTCore.ParseOffloadInfo(TCP_LARGE_SEND_OFFLOAD_TASK, OffloadInfo, NumLargeSendTasks, LargeSendOffloadTaskInfo)
'This command is parsing 'OffloadInfo' to get any TCP Large Send tasks
'contained in it. The tasks found will be placed in LargeSendOffloadTaskInfo
'as an array of objects. The number of largesend tasks found will be placed
'in NumLargeSendTasks variable
| STDMETHODIMP Cbase::PrintOidName(ULONG ulOidCode) |
| Description |
This command is used to Print the friendly name of an OID given the Oid value |
| Parameters | |
| ulOidCode | The oid whose name is to be printed |
Example:
oNDTCore.PrintOidName (OID_GEN_INIT_TIME_MS)
| STDMETHODIMP Cbase::put_DebugLevel(long newVal) |
| Description |
This command sets the debug level in the kernel mode protocol driver ndistest.sys. |
| Parameters | |
| newVal | New level |
| STDMETHODIMP Cbase::QueryGuidAll(VARIANT *pvOidGuid, VARIANT_BOOL *pbResult) |
| Description |
This command uses WMI to query an OID on all devices. |
| Parameters | |
| pvOidGuid | The oid to be queried |
| pbResult | TRUE is success |
Example:
oLog.Variation("Querying GUID for all adapters")
bResult = oNDTCore.QueryGuidAll(ThisOid)
If (Not bResult) Then
oNDTCore.PrintOidName(ThisOid)
call oLog.Failed ("Call to WmiQueryAllData failed for the OID" , 88888)
End If
| STDMETHODIMP Cbase::RestartPA(ULONG IpAddr, VARIANT_BOOL *pbResult) |
| Description |
This function restarts the PolicyAgent service on the specified machine. This accomplishes two key things: * clears out filters plumbed by do_ipsecpol * clears out stats from the IPSec driver |
| Parameters | |
| lpAddr | Optional! IP address of machine whose policy agent is to be restarted! NULL means local machine |
| pbResult | Returns true on success, else failure |
Example:
bResult = RestartPA ()
This restarts the PolcyAgent service of local machine
| STDMETHODIMP CBindCtrl::Bind(BSTR bstrDeviceGUID, BSTR bstrProtocolName, VARIANT_BOOL *pVal) |
| Description |
The Bind command binds a specified protocol to the device. (The name of this command is actually Bind not BindProtocol.) |
| Parameters | |
| bstrDeviceGUID | The GUID of the device |
| bstrProtocolName | The name of the Protocol we want to bind |
| pVal | Returns true on success, false on failure |
Example:
' This example demonstrates binding of TCP/IP to the specified device.
bResult = oBindCtrl.Bind (deviceGUID, "Internet Protocol (TCP/IP)")
| STDMETHODIMP CBindCtrl::GetBindStatus(BSTR bstrDeviceGUID, BSTR bstrProtocolName, VARIANT *lStatus, VARIANT_BOOL *pVal) |
| Description |
Get the current bind status of a protocol with the device specified. (The name of this command is actually GetBindStatus not GetProtocolBindStatus.) Possible lStatus values are: 0 if any error occurs during this operation 1 protocol is bound 2 protocol is not bound 3 protocol is not bindable |
| Parameters | |
| bstrDeviceGUID | The GUID of the device |
| bstrProtocolName | The name of the Protocol of interest |
| lStatus | See above for table of status values returned by this function |
| pVal | Returns true on success, false on failure |
Example:
bResult = oBindCtrl.GetBindStatus (deviceGUID, "Internet Protocol (TCP/IP)", lCurrentStatus)
| STDMETHODIMP CBindCtrl::GetProtocolInfo(VARIANT *iBufferLength, VARIANT *iTotalProtocols, VARIANT_BOOL *pVal) |
| Description |
Finds all of the installed protocols and internally stores the information. Also returns the size of the buffer needed if the caller wishes to obtain those protocols. This method initializes the oBindCtrl object with info on the installed protocols and is, therefore, one of the first methods called after the oBindCtrl object has been created. |
| Parameters | |
| iBufferLength | Returns length of the buffer required if all protocols names are needed |
| iTotalProtocols | The total number of protocols available |
| pVal | Returns true on success, false on failure |
Example:
bResult = oBindCtrl.GetProtocolInfo(nBufferSizeNeeded, nNumProtocols)
| STDMETHODIMP CBindCtrl::ToggleStatus(BSTR bstrDeviceGUID, VARIANT_BOOL *pVal) |
| Description |
This command toggles the bind status of ALL the protocols for this device (The name of this command is actually ToggleStatus not ToggleProtocolBindStatus.) |
| Parameters | |
| bstrDeviceGUID | The GUID of the device |
| pVal | Returns true on success, false on failure |
Example:
bResult = oBindCtrl.ToggleStatus (deviceGUID)
| STDMETHODIMP CBindCtrl::UnBind(BSTR bstrDeviceGUID, BSTR bstrProtocolName, VARIANT_BOOL *pVal) |
| Description |
The UnBind command unbinds the specified protocol from the device. (The name of this command is actually UnBind not UnBindProtocol.) |
| Parameters | |
| bstrDeviceGUID | The GUID of the device |
| bstrProtocolName | The name of the Protocol we want to unbind |
| pVal | Returns true on success, false on failure |
Example:
' This example demonstrates unbinding of TCP/IP from the specified device
bResult = oBindCtrl.UnBind (deviceGUID, "Internet Protocol (TCP/IP)")
| STDMETHODIMP CCore::get_CreateTAPI(LONG lConnID, IDispatch **pVal) |
| Description |
This property is provided to create and return an IDispatch for the TAPI Object. The TAPI Object is the main object that provides the TAPI functionality to the script. |
| Parameters | |
| lConnID | Connection ID for the resoruce. |
| pVal | Pointer to a script variable that will receive the IDispatch of the TAPI Object. |
| STDMETHODIMP CCore::InitializeServer(LONG lConnectionID, BSTR bstrGUID, VARIANT_BOOL *bReturn) |
| Description |
This function called by the client to initialize the server on the remote side. The remote side will start the server by opening all the lines associated with the given GUID. |
| Parameters | |
| lConnectionID | Connection ID that identifies the resource location |
| bstrGUID | GUID that identifies the device to use. |
| bReturn | VARIANT_BOOL that returns the status of the command |
| STDMETHODIMP CCore::UninitializeServer(LONG lConnectionID, VARIANT_BOOL *bReturn) |
| Description |
This function called by the client to uninitialize the server on the remote side. |
| Parameters | |
| lConnectionID | Connection ID that identifies the resource location. |
| bReturn | VARIANT_BOOL that returns the status of the command. |
| STDMETHODIMP CFileTran::CheckCRC(BOOL *pbResult) |
| Description |
This method verifies if the CRC of the bytes transferred and the CRC of the bytes received is equal. |
| Parameters | |
| pbResult | 1 if CRC matches, 0 otherwise |
Example:
bResult = oFileTran.CheckCRC
.
| STDMETHODIMP CFileTran::Cleanup() |
| Description |
This method deletes the internal objects created for file transfer. |
Example:
oFileTran.Cleanup
.
| STDMETHODIMP CFileTran::DataTransfer(DWORD dwTransferType) |
| Description |
This method does the actual transfer of data. |
| Parameters | |
| dwTransferType | set to 1 for Read, 2 for Write and 3 for both Read and Write |
Example:
oFileTran.DataTransfer 3 'sending and receiving data
.
| STDMETHODIMP CFileTran::GetTransferResults(BSTR *pbstrTransferMessages) |
| Description |
This method gets the error strings and data transfer messages after a file transfer. |
| Parameters | |
| pbstrTransferMessages | BSTR to record the transfer result messages like bytes sent, bytes received etc. |
Example:
bstrResults = oFileTran.GetTransferResults
.
| STDMETHODIMP CFileTran::InitComPorts(DWORD dwLocalPort, DWORD dwRemotePort, DWORD dwFileTransferType) |
| Description |
This method initializes the internal objects for doing remote and local file operations on the comm handles passed as parameters. The dwFileTransferType specifies if the transfer is from local to remote modem, remote to local modem, local to local modem or remote to remote modem. |
| Parameters | |
| dwLocalPort | CommHandle for the local modem after a successful makecall is done |
| dwRemotePort | CommHandle for the remote modem after a successful makecall is done |
| dwFileTransferType | specifies if the transfer is from local to remote modem, remote to local modem, local to local modem or remote to remote modem. |
Example:
oFileTran.InitComPorts nLocalHandle, nRemoteHandle, nTranstype
.
| STDMETHODIMP CFileTran::SetUpTransfer(BSTR bstrFileName) |
| Description |
This method opens the file bstrFileName and creates internal objects to create fixed size data package from the given file. |
| Parameters | |
| bstrFileName | File that is used to read in the transfer data |
Example:
oFileTran.SetUpTransfer "oracle.txt"
.
| STDMETHODIMP CIpSecStats::CompareIpSecStats(IDispatch *pvIpSecStatsObj, VARIANT_BOOL *pbResult) |
| Description |
This command compares the current object with another IpSecStats object and returns true if they are equal, else false |
| Parameters | |
| pvIpSecStatsObj | The IPSecStats object to compare against |
| pbResult | Returns true if objects are identical, else false |
Example:
bResult = oIpSecStatsObj1.CompareIpSecStats (oIpSecStatsObj2)
| STDMETHODIMP CKernelCallsVerifier::GetImportedFunctions(BSTR bstrDriver, BSTR bstrModule, VARIANT *strResult, VARIANT_BOOL* pReturnValue) |
| Description |
This function is called by the script to get list of functions imported and being called by the bstrModule in bstrDriver. The list of the function calls is stored in strResult string. The function names are separated by a space. |
| Parameters | |
| bstrDriver | Name of the driver.sys file |
| bstrModule | Module we want to get imported functions list for |
| strResult | Return by ref, space separated list of functions of bstrModule imported by bstrDriver |
| pReturnValue | Return True on success, False on Failure |
Example:
bResult = oKernelCallsVerifier.GetImportedFunctions ("eth100.sys", "HAL.DLL", strFuncList)
| STDMETHODIMP CMCTService::IsServerRunning(BOOL *pbResult) |
| Description |
This method checks if the remote MCT Server is available. |
| Parameters | |
| pbResult | Return value of TRUE if Server is accepting connections, FALSE otherwise. |
Example:
bResult = oMCTService.IsServerRunning
.
| STDMETHODIMP CMCTService::StartMCTService(BSTR bstrServerName,BSTR bstrProtSeq) |
| Description |
This method initializes TAPI and RPC connections to the remote MCT Server. |
| Parameters | |
| bstrServerName | Name of the machine where MCTServer is running |
| bstrProtSeq | Protocol used to connect to the MCTServer |
Example:
oMCTService.StartMCTService "myservermachine","ncacn_ip_tcp"
.
| STDMETHODIMP CMCTService::StopMCTService() |
| Description |
This method frees TAPI and RPC connections to the remote MCT Server. |
Example:
oMCTService.StopMCTService
.
| STDMETHODIMP CMdmObj::CloseLine() |
| Description |
This method calls TAPI functions lineShutdown and destroys the internal objects created for implementing the TAPI functionality. |
| STDMETHODIMP CMdmObj::CloseModem() |
| Description |
This method calls TAPI functions lineClose and phoneClose to close the modem and phone device associated with the modem. |
Example:
oModem.CloseModem
.
| STDMETHODIMP CMdmObj::ClosePhoneDevice() |
| Description |
This method closes the phone device. |
| STDMETHODIMP CMdmObj::CreateLine(BOOL bRemote) |
| Description |
This method creates a local modem object if bRemote is False. If bRemote is true, it creates a modem object located on remote machine. This is the first call that has to be made on a modem COM object for initialization of internal variables. It is followed by call to InitModem. |
| Parameters | |
| bRemote | TRUE if modem is on another machine running MCT Server, FALSE otherwise |
| STDMETHODIMP CMdmObj::DisconnectATMode() |
| Description |
This method is used to disconnect when a modem makes call and connects using ATDT command or ATA command in passthrough mode |
Example:
oModem.DisconnectATMode
.
| STDMETHODIMP CMdmObj::DropCall() |
| Description |
This method calls TAPI functions lineDrop and lineDeallocateCall so that the modem returns to an idle state. Any time modem makes call using MakeCall, MakeVoiceCall or MakeBlindDial, DropCall has to be called for that modem object. |
Example:
oModem.MakeCall("2342324", oRemoteModem)
.
.
oModem.DropCall
.
| STDMETHODIMP CMdmObj::get_BlindDial(BOOL *pVal) |
| Description |
This property gets the BlindDial settings for modem object |
| Parameters | |
| pVal | 1 is BlindDial is set 0 if not set. |
Example:
bBlindDial = oModem.BlindDial
.
| STDMETHODIMP CMdmObj::get_CallSetupTimeout(long *pVal) |
| Description |
This property gets the CallSetupTimeout settings for modem object |
| Parameters | |
| pVal | current value of callsetup timeout |
Example:
nCallSetupTimeout = oModem.CallSetupTimeout
.
| STDMETHODIMP CMdmObj::get_Compression(BOOL *pVal) |
| Description |
This property gets the Compression settings for modem object |
| Parameters | |
| pVal | 1 is Compression is set 0 if not set. |
Example:
bCompression = oModem.Compression
.
| STDMETHODIMP CMdmObj::get_ErrorControl(BOOL *pVal) |
| Description |
This property gets the ErrorControl settings for modem object |
| Parameters | |
| pVal | 1 is ErrorControl is set 0 if not set. |
Example:
bErrorControl = oModem.ErrorControl
.
| STDMETHODIMP CMdmObj::get_FlowControlHard(BOOL *pVal) |
| Description |
This property gets the FlowControlHard settings for modem object |
| Parameters | |
| pVal | 1 is FlowControlHard is set 0 if not set. |
Example:
bFlowControlHardl = oModem.FlowControlHard
.
| STDMETHODIMP CMdmObj::get_FlowControlSoft(BOOL *pVal) |
| Description |
This property gets the FlowControlSoft settings for modem object |
| Parameters | |
| pVal | 1 is FlowControlSoft is set 0 if not set. |
Example:
bFlowControlSoftl = oModem.FlowControlSoft
.
| STDMETHODIMP CMdmObj::get_ForcedErrorControl(BOOL *pVal) |
| Description |
This property gets the ForcedErrorControl settings for modem object |
| Parameters | |
| pVal | 1 is ForcedErrorControl is set 0 if not set. |
Example:
bForcedErrorControl = oModem.ForcedErrorControl
.
| STDMETHODIMP CMdmObj::get_InactivityTimer(long *pVal) |
| Description |
This property gets the InactivityTimer settings for modem object |
| Parameters | |
| pVal | current value of inactivity timeout |
Example:
nInactivityTimer = oModem.InactivityTimer
.
| STDMETHODIMP CMdmObj::get_phoneNum(BSTR *pVal) |
| Description |
This property gets the phone number for the modem object |
| Parameters | |
| pVal | BSTR to hold the phone number |
Example:
strPhoneNum = oModem.phoneNum
.
| STDMETHODIMP CMdmObj::get_SpeakerMode(long *pVal) |
| Description |
This property gets the SpeakerMode settings for modem object |
| Parameters | |
| pVal | current value of speaker mode |
Example:
nSpeakerMode = oModem.SpeakerMode
.
| STDMETHODIMP CMdmObj::get_SpeakerVolume(long *pVal) |
| Description |
This property gets the SpeakerVolume settings for modem object |
| Parameters | |
| pVal | current value of speaker volume (low, medium or high) |
Example:
nSpeakerVolume = oModem.SpeakerVolume
.
| STDMETHODIMP CMdmObj::get_SpeedAdjust(BOOL *pVal) |
| Description |
This property gets the SpeedAdjust settings for modem object |
| Parameters | |
| pVal | 1 is SpeedAdjust is set 0 if not set. |
Example:
bSpeedAdjust = oModem.SpeedAdjust
.
| STDMETHODIMP CMdmObj::get_VoicePhoneNum(BSTR *pVal) |
| Description |
This property gets the voice phone number to be used for voice tests |
| Parameters | |
| pVal | BSTR to hold the voice phone number |
Example:
strVoicePhoneNum = oModem.VoicePhoneNum
.
| STDMETHODIMP CMdmObj::GetModemList(VARIANT *pName, VARIANT *pNum) |
| Description |
This method gets an array of modem names and their TAPI line IDs as variant arrays. |
| Parameters | |
| pName | array of modem names |
| pNum | corresponding array of line id |
Example:
oModem.GetModemList(arrNames, arrLineIDs)
.
| STDMETHODIMP CMdmObj::GetNegotiatedSpeed(long *pSpeed) |
| Description |
This method gets the negotiated speed of currently completed connection |
| Parameters | |
| pSpeed | speed of connection in bits/sec |
Example:
nSpeed = oModem.GetNegotiatedSpeed
.
| STDMETHODIMP CMdmObj::InitModem(DWORD dwDeviceID) |
| Description |
This method initializes the modem using the lineInitializeEx and lineOpen functions of TAPI. The lineID is the unique line device id for the selected modem device |
| Parameters | |
| dwDeviceID | Line Id for the given modem |
Example:
LineDeviceID = 1
oModem.InitModem(LineDeviceID)
.
| STDMETHODIMP CMdmObj::MakeBlindCall(BSTR bstrPhoneNum) |
| Description |
This method calls bstrPhoneNim and waits for only TAPI line_reply event. User has to set the BlindDial option before calling this method. |
| Parameters | |
| bstrPhoneNum | phone number to call |
Example:
oModem.MakeBlindCall("234231")
.
| STDMETHODIMP CMdmObj::MakeCall(BSTR bstrPhoneNum, IDispatch *pDisp) |
| Description |
This method connects the current modem object by calling bstrPhoneNum and waiting for TAPI events needed to make sure that two modems are in connected state |
| Parameters | |
| bstrPhoneNum | Phone number to call |
| pDisp | Modem object used for connection |
Example:
oModem.MakeCall("2342324", oRemoteModem)
.
.
oModem.DropCall
.
| STDMETHODIMP CMdmObj::MakePassThroughCall() |
| Description |
This method sets the current modem object to work in PassThrough Mode so that user can send AT commands directly to the COM port and receive responses |
Example:
oModem.MakePassThroughCall
.
| STDMETHODIMP CMdmObj::MakeVoiceCall(BSTR bstrPhoneNum) |
| Description |
This method calls bstrPhoneNum in Voice Mode and waits for TAPI events to make sure that modem is in connected state. |
| Parameters | |
| bstrPhoneNum | phone number to call |
Example:
oModem.MakeVoiceCall( oModem.VoicePhoneNum )
.
| STDMETHODIMP CMdmObj::OpenPhoneDevice() |
| Description |
This method opens a phone device for a modem if the modem supports phone capabilities. |
| STDMETHODIMP CMdmObj::put_BlindDial(BOOL newVal) |
| Description |
This property sets the BlindDial settings for modem object |
| Parameters | |
| newVal | 1 to set BlindDial, 0 to reset it |
Example:
oModem.BlindDial 1 'setting BlindDial ON
.
| STDMETHODIMP CMdmObj::put_CallSetupTimeout(long newVal) |
| Description |
This property sets the CallSetupTimeout settings for modem object |
| Parameters | |
| newVal | new value of call setup timeout |
Example:
oModem.CallSetupTimeout 10 'setting call setup timeout to 10 seconds
.
| STDMETHODIMP CMdmObj::put_Compression(BOOL newVal) |
| Description |
This property sets the Compression settings for modem object |
| Parameters | |
| newVal | 1 to set Compression, 0 to reset it |
Example:
oModem.Compression 1 'setting compression ON
.
| STDMETHODIMP CMdmObj::put_ErrorControl(BOOL newVal) |
| Description |
This property sets the ErrorControl settings for modem object |
| Parameters | |
| newVal | 1 to set ErrorControl, 0 to reset it |
Example:
oModem.ErrorControl 1 'setting ErrorControl ON
.
| STDMETHODIMP CMdmObj::put_FlowControlHard(BOOL newVal) |
| Description |
This property sets the FlowControlHard settings for modem object |
| Parameters | |
| newVal | 1 to set FlowControlHard, 0 to reset it |
Example:
oModem.FlowControlHard 1 'setting FlowControlHard ON
.
| STDMETHODIMP CMdmObj::put_FlowControlSoft(BOOL newVal) |
| Description |
This property sets the FlowControlSoft settings for modem object |
| Parameters | |
| newVal | 1 to set FlowControlSoft, 0 to reset it |
Example:
oModem.FlowControlSoft 1 'setting FlowControlSoft ON
.
| STDMETHODIMP CMdmObj::put_ForcedErrorControl(BOOL newVal) |
| Description |
This property sets the ForcedErrorControl settings for modem object |
| Parameters | |
| newVal | 1 to set ForcedErrorControl, 0 to reset it |
Example:
oModem.ForcedErrorControl 1 'setting ForcedErrorControl ON
.
| STDMETHODIMP CMdmObj::put_InactivityTimer(long newVal) |
| Description |
This property sets the InactivityTimer settings for modem object |
| Parameters | |
| newVal | new value of inactivity timeout |
Example:
oModem.InactivityTimer 10 'setting Inactivity timeout to 10 seconds
.
| STDMETHODIMP CMdmObj::put_phoneNum(BSTR newVal) |
| Description |
This property sets the phone number for the modem object |
| Parameters | |
| newVal | BSTR value of phone number to be set |
Example:
oModem.phoneNum "3287412"
.
| STDMETHODIMP CMdmObj::put_SpeakerMode(long newVal) |
| Description |
This property sets the SpeakerMode settings for modem object |
| Parameters | |
| newVal | new value of speaker mode |
Example:
oModem.SpeakerMode spkModeDial 'setting speaker mode to dial only
.
| STDMETHODIMP CMdmObj::put_SpeakerVolume(long newVal) |
| Description |
This property sets the SpeakerVolume settings for modem object |
| Parameters | |
| newVal | new value of speaker volume (low, medium or high) |
Example:
oModem.SpeakerVolume spkVolHigh 'setting speaker volume to high
.
| STDMETHODIMP CMdmObj::put_SpeedAdjust(BOOL newVal) |
| Description |
This property sets the SpeedAdjust settings for modem object |
| Parameters | |
| newVal | 1 to set SpeedAdjust, 0 to reset it |
Example:
oModem.SpeedAdjust 1 'setting SpeedAdjust ON
.
| STDMETHODIMP CMdmObj::put_VoicePhoneNum(BSTR newVal) |
| Description |
This property sets the voice phone number to be used for voice tests |
| Parameters | |
| pVal | BSTR to set the voice phone number |
Example:
oModem.VoicePhoneNum "3242321"
.
| STDMETHODIMP CMdmObj::ReceiveATResponse(BSTR *pVal) |
| Description |
This method returns response of the AT Command sent to the modem in PassThrough mode. |
| Parameters | |
| pVal | Response of the AT-Command sent to the modem |
Example:
strResponse = oModem.ReceiveATResponse
.
| STDMETHODIMP CMdmObj::SendATCommand(BSTR bstrCommand) |
| Description |
This method sends AT command specified by string bstrCommand to the modem. The method MakePassThroughCall has to be used to put the modem into PassThrough mode |
| Parameters | |
| bstrCommand | AT-Command to be sent to modem e.g. AT+GCI? |
Example:
oModem.SendATCommand "AT+GCI?" 'command to find current country selected by modem
.
| STDMETHODIMP COpen::AddParty(VARIANT *pvNetPrefix, VARIANT *pvNetAddr, UCHAR ucSapValue, IDispatch **ppDisp) |
| Description |
This function adds a leaf to a party call. This function is specific to CoNdis miniports |
| Parameters | |
| pvNetPrefix | 13 byte switch address |
| pvNetAddr | 6 byte adapter address |
| ucSapValue | 1 byte selector address based on SAP used for connection |
| ppDisp | Return Value of Interface Pointer for Party Call to be used to drop party call |
Example:
Set Party_Two = VC_Ptr.AddParty(NetPrefixOne, NetAddrOne, SapValue)
| STDMETHODIMP COpen::AddSA(IDispatch *pvIpSecSAObj, VARIANT *pvRetHandle, VARIANT_BOOL *pbResult) |
| Description |
This command adds a Security Association onto an IPSec Offload capable NIC |
| Parameters | |
| pvIpSecSAObj | The IPSec SA to offload onto the NIC |
| pvRetHandle | Returns a handle to the SA in this variable |
| pbResult | Returns true if function succeeds, else false |
Example:
bResult = ClientOpen.AddSA (IPSecSA, hSAObj)
| STDMETHODIMP COpen::AddWakePattern(SAFEARRAY *saArg, VARIANT_BOOL *pbResult) |
| Description |
This command registers a wake pattern with the NIC. When a packet with that pattern hits the NIC, the adapter will bring the machine out of standby state |
| Parameters | |
| saArg | List of args from which pattern is constructed |
| pbResult | True on success, false on failure |
Example:
' The number of arguments must be even. The even number argument is the offset
' in the pattern and the odd argument is the pattern data to use
bResult = ClientOpen.AddWakePattern(0, &H12345&, 4, &H6789A&, 8, &HBCDEF&)
| STDMETHODIMP COpen::AfCloseSap() |
| Description |
This function shuts down a SAP on an address family.This function is specific to CoNdis miniports. |
Example:
Set SapPointer = OpenOne.AfOpenSap(SAP_CONST_VAL)
.
.
SapPointer.AfCloseSap()
.
.
| STDMETHODIMP COpen::AfCreateVc(IDispatch **ppDisp) |
| Description |
This function causes ndistest protocol (client) to request the creation of a VC.This function is specific to CoNdis miniports. |
| Parameters | |
| ppDisp | Return value of Interface pointer for VC to be used by script while making calls, sending/receiving data, closing VC |
Example:
Set VCPointer = OpenOne.AfCreateVc()
.
.
VCPointer.CoSend(PacketSize,PacketsPerBurst, BurstsToSend, FALSE)
.
.
| STDMETHODIMP COpen::AfDeleteVc() |
| Description |
This function closes a VC on an address family. This function is specific to CoNdis miniports. |
Example:
Set VCPointer = OpenOne.AfCreateVc()
.
.
VCPointer.AfDeleteVc()
.
.
| STDMETHODIMP COpen::AfOpenSap(ULONG ulSapValue, IDispatch **ppDisp) |
| Description |
This function enables ndistest protocol client to register a SAP (service access point) on which it will accept incoming calls from remote node. This function is specific to CoNdis miniports. |
| Parameters | |
| ulSapValue | Selector for this SAP |
| ppDisp | Return value of Interface pointer for SAP to be used by script while making calls, sending/receiving data, closing SAP |
Example:
Set SapPointer = OpenOne.AfOpenSap(SAP_CONST_VAL)
.
.
SapPointer.StartReceive
.
.
| void COpen::Cleanup() |
| Description |
This function provides a convenient way to close all opens. This is called internally when scripts end. |
| STDMETHODIMP COpen::CloseAddressFamily() |
| Description |
This function releases the association between the ndistest driver and the call manager. This function is specific to CoNdis miniports. |
| STDMETHODIMP COpen::CloseCall() |
| Description |
This function shuts down a call on VC. This function is specific to CoNdis miniports. |
Example:
Set VC_Array(0) = OpenOne.AfCreateVc()
bResult = VC_Array(0).MakeCall(NetPrefixOne, NetAddrOne, 135, SendFlowSpec, RecvFlowSpec)
VC_Array(0).CloseCall()
| STDMETHODIMP COpen::ClosePartyCall() |
| Description |
This function shuts down a party call on VC. This function is specific to CoNdis miniports. |
Example:
Set Party_One = VC_Ptr.MakePartyCall(NetPrefix, NetAddr, SapValue, SendFlowSpec)
Party_One.ClosePartyCall()
| STDMETHODIMP COpen::CoSend(LONG PacketSize, LONG BurstSize, LONG NumOfBursts, VARIANT_BOOL bResend, VARIANT_BOOL *pbResult) |
| Description |
This function tells the CoNdis miniport driver to start sending packets on specified VC. |
| Parameters | |
| PacketSize | Size of packet |
| BurstSize | Packets per burst |
| NumberOfBursts | Number of Bursts |
| bResent | True if packets need to be resent, False otherwise. |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
bResult = VC_Ptr.CoSend(PacketSize, PacketsPerBurst, BurstsToSend, FALSE)
| STDMETHODIMP COpen::DeleteSA(VARIANT *pvHandle, VARIANT_BOOL *pbResult) |
| Description |
This command deletes a Security Association from an IPSec Offload capable NIC |
| Parameters | |
| pvHandle | Handle to the IPSecSA to delete |
| pbResult | Returns true if function succeeds, else false |
Example:
bResult = ClientOpen.AddSA (IPSecSA, hSAObj)
| STDMETHODIMP COpen::DropParty() |
| Description |
This function drops a leaf to a party call. This function is specific to CoNdis miniports |
Example:
Set Party_Two = VC_Ptr.AddParty(NetPrefixOne, NetAddrOne, SapValue)
Party_Two.DropParty()
| STDMETHODIMP COpen::EndWaitForEvent(ULONG ulTimeOut, VARIANT_BOOL *pbResult) |
| Description |
This command works with StartWaitForEvent. This will return when the timeout expires or the event occurs. |
| Parameters | |
| ulTimeOut | timeout in seconds |
| pbResult | True for success |
| STDMETHODIMP COpen::Get1394NodeId(VARIANT *pvVCInfo, VARIANT_BOOL *pbResult) |
| Description |
This function gets the local 1394 node's Unique Id in the vcinfo structure using OID_1394_LOCAL_NODE_INFO |
| Parameters | |
| pvVCInfo | Structure returned that holds Unique ID in vcinfo |
| pbResult | Returns true if succesful else return false |
Example:
bResult = oCardOpen.Get1394NodeId(vVCInfo)
| STDMETHODIMP COpen::Get1394VCInfo(VARIANT *pvVCInfo, VARIANT_BOOL *pbResult) |
| Description |
This function gets the address for a VC in the vcinfo structure using OID_1394_VC_INFO |
| Parameters | |
| pvVCInfo | Structure returned that holds vcinfo for a given VC |
| pbResult | Returns true if succesful else return false |
Example:
VCPtr.Get1394VCInfo(vVCInfo)
| STDMETHODIMP COpen::GetAtmAddress(ULONG ulSlotNum, VARIANT *pvNetPrefix, VARIANT *pvNetAddr, VARIANT_BOOL *pbResult) |
| Description |
This function gets ATM address for ATM adapter. This function is specific to ATM adapters. |
| Parameters | |
| ulSlotNum | Specifies which address to get (0-based) |
| pvNetPrefix | Parameter to store switch address |
| pvNetAddr | Parameter to store adapter address |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
NetPrefixOne = NetPrefix(&H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&)
NetAddrOne = NetAddr(&H00&, &H00&, &H00&, &H00&, &H00&, &H00&)
bResult = OpenOne.GetAtmAddress(0, NetPrefixOne, NetAddrOne)
| STDMETHODIMP COpen::GetAtmUniVersion(LONG *plAtmUniVersion) |
| Description |
This function gets the version of the ATM UNI Signalling protocol supported. This function is specific to ATM adapters. |
| Parameters | |
| plAtmUniVersion | Parameter to hold the return value of ATM-UNI signalling version |
| STDMETHODIMP COpen::GetEvents(VARIANT *pvResets, VARIANT *pvDisconnects, VARIANT *pvConnects, VARIANT_BOOL *pbResult) |
| Description |
This command the number of certain events that have occured on this open. Many of these are the result of the protocol driver's StatusHandler being called. The number of resets, disconnects, and connects are returned to the script for special processing if needed. This will keep track of the following events: ulTotalEvents; // total count from fields below ulCompleteOpen; // ProtocolOpenComplete calls ulCompleteClose; // ProtocolCloseComplete calls ulCompleteSend; // ProtocolSendComplete calls ulCompleteTransfer; // ProtocolTransferComplete calls ulCompleteReset; // ProtocolResetComplete calls ulCompleteRequest; // ProtocolRequestComplete calls ulIndicateReceive; // ProtocolIndicateReceive calls ulIndicateStatus; // ProtocolIndicateStatus calls ulIndicateStatusComplete; // ProtocolIndicateStatusComplete calls ulMediaConnect; // ProtocolIndicateStatus calls with Status = NDIS_STATUS_MEDIA_CONNECT ulMediaDisConnect; // ProtocolIndicateStatus calls with Status = NDIS_STATUS_MEDIA_DISCONNECT ulResetStart; // ProtocolIndicateStatus calls with Status = NDIS_STATUS_RESET_START ulResetEnd; // ProtocolIndicateStatus calls with Status = NDIS_STATUS_RESET_END ulMultipleResetStart; // Multiple ProtocolIndicateStatus calls with Status = NDIS_STATUS_RESET_START ulMultipleResetEnd; // Multiple ProtocolIndicateStatus calls with Status = NDIS_STATUS_RESET_END ulBreakpointsHit; // number of times breakpoint situations hit |
| Parameters | |
| pvResets | (optional) Number resets that occured |
| pvDisconnects | (optional) Number of disconnects that occured |
| pvConnects | (optional) Number of connects that occured |
| pbResult | True for success |
Example:
Resets = 0
Disconnects = 0
Connects = 0
oLog.Variation("GetEvents for instance 1")
bResult = OpenOne.GetEvents(Resets, Disconnects, Connects)
If(Not bResult) Then
Call oLog.Write("Get events failed on first open instance" )
End If
If (Resets <> lNumResets) Then
call oLog.Failed ("Incorrect number of reset events " & Resets & ". Should have been " & lNumResets , 88888)
End If
If ((Disconnects <> 0) And (Disconnects <> lNumResets)) Then
call oLog.Failed ("Incorrect number of disconnect events " & Disconnects & ". Should have been 0 or " & lNumResets , 88888)
End If
If ((Connects <> 0) And (Connects <> lNumResets)) Then
call oLog.Failed ("Incorrect number of connect events " & Connects & ". Should have been 0 or " & lNumResets , 88888)
End If
If (Connects <> Disconnects) Then
call oLog.Failed ("Disconnect events " & Disconnects & " should equal connect events " & Connects , 88888)
End If
| STDMETHODIMP COpen::GetIPCaptureResults(VARIANT *pvlPacketCount, VARIANT *pvlTotalSize, VARIANT *pvlCksumPassed, VARIANT *pvlCksumFailed, VARIANT_BOOL *pbResult) |
| Description |
This command collects the results obtained during the IP capture. It stops the IP capture. |
| Parameters | |
| pvlPacketCount | Returns the number of Packets received on this open since the last SetIpCapture call |
| pvlTotalSize | Returns the number of bytes received on this open since the last SetIpCapture call |
| pvlCksumPassed | Type of checksum that passed if any (TCP_CKSUM or IP_CKSUM) |
| pvlCksumFailed | Type of checksum that failed if any (TCP_CKSUM or IP_CKSUM) |
| pbResult | Returns True of function success else failure |
Example:
bResult = ClientOpen.GetIPCaptureResults (lPacketsReceived, lBytesReceived, lCksumPassed, lCksumFailed)
| STDMETHODIMP COpen::GetNumAtmAddresses(LONG *plNumAtmAddresses) |
| Description |
This function queries the number of addresses the adapter is registered to receive packets. This function is specific to ATM adapters. |
| Parameters | |
| plNumAtmAddresses | Return value for Number of ATM Addresses that Adapter holds |
Example:
NumOfAtmAddr = OpenOne.GetNumAtmAddresses()
| STDMETHODIMP COpen::GetOffloadPktInfo(LONG lOffloadBitMask, VARIANT *pvlCksumPassedORBytesToExpect, VARIANT *pvlCksumFailedORPacketsToExpect, VARIANT_BOOL *pbResult) |
| Description |
This function retreives the Task Offload Per Packet Information for packets received on this Open instance |
| Parameters | |
| lOffloadBitMask | Defines the offload task for this packet. Example CKSUM_OFFLOAD_TX or MSS_RX |
| pvlCksumPassedORBytesToExpect | Will return the number of packets received that passed checksum for checksum offload or bytes received for Largesend offload |
| pvlCksumFailedORPacketsToExpect | Will return the number of packets received that failed checksum for checksum offload or packets received for Largesend offload |
| pbResult | Returns success or failure in this variable |
Example:
bResult = ClientOpen.GetOffloadPktInfo (MSS_RX, lBytesToExpect, lPacketsToExpect)
| STDMETHODIMP COpen::GetPerformanceResults( VARIANT *pvDuration, VARIANT *pvBytesSent, VARIANT *pvBytesReceived, VARIANT_BOOL *pbResult) |
| Description |
This command gets the results of the previous performance tests. It is expected to be called after waitperformance command. |
| Parameters | |
| pvDuration | Time duration in which performance test completed |
| pvBytesSent | Bytes sent during the performance test |
| pvBytesReceived | Bytes received during the performance test |
| pbResult | If command succeeds set to TRUE, FALSE otherwise |
Example:
bResult = OpenOne.GetPerformanceResults(lDuration, lBytesSent, lBytesReceived)
If (Not bResult) Then
call oLog.Failed ("Unable to get performance results.", 88888)
End If
| STDMETHODIMP COpen::GetReceiveResults(VARIANT *pvPacketsReceived, VARIANT *pvPacketsResent, VARIANT_BOOL *pbResult) |
| Description |
This function gets the results of the last receive collection. It is expected to be called after stopreceive |
| Parameters | |
| pvPacketsReceived | Returns total number of packets received in this variable |
| pvPacketsResent | Returns total number of packets resent in this var |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.GetReceiveResults (lPacketsSent, lPacketsResent)
| STDMETHODIMP COpen::GetSendResults(VARIANT *pvPacketsSent, ULONG ulSendFailureType, VARIANT_BOOL *pbResult) |
| Description |
This command returns the results that were generated when the send or sendpackets command completed. |
| Parameters | |
| pvPacketsSent | returns the number of packets sent. |
| ulSendFailureType | This is either - SEND_FAILURES_FORBIDDEN - send failures generate a variation failure in the log SEND_FAILURES_ALLOWED - send failures are ignored SEND_FAILURES_REQUIRED - sends cannot complete successfully (this parameter is optional, SEND_FAILURES_FORBIDDEN is assumed) |
| pbResult | Returns true on success, false on failure |
Example:
bResult = OpenOne.GetSendResults(lPacketsSent)
If(bResult) Then
oLog.Write("Packets Sent = " & lPacketsSent & vblf)
If (lPacketsSent <> lTotalPackets) Then
call oLog.Failed("Should have sent " & lTotalPackets & " packets" & vblf,88888)
End If
End If
| STDMETHODIMP COpen::GetStressResults(VARIANT_BOOL *pbResult) |
| Description |
This command gets the test results of a completed stress test. |
| Parameters | |
| pbResult | True if successful |
Example:
| STDMETHODIMP COpen::IpSecClose(VARIANT *pvHandle, VARIANT_BOOL *pbResult) |
| Description |
Use this command to close an IP Sec connection that was established using COpen::IPSecOpen |
| Parameters | |
| pvHandle | Handle to the IP Sec Connection to close |
| pbResult | Return true on success or false on failure to caller |
Example:
bResult = ClientOpen.IpSecClose (hIpSecConnection)
| STDMETHODIMP COpen::IpSecOpen(VARIANT *pvRetHandle, VARIANT *pvSAArray, VARIANT *pvSAArrayOrNumOfTunnelSAs, LONG NumOfTunnelSAs, VARIANT_BOOL *pbResult) |
| Description |
This command sets up a bidirectional IPSec connection b/w two IPSec capable NICs. |
| Parameters | |
| pvRetHandle | Handle to the IP Sec Connection established |
| pvSAArray | Array of SA's (can be tunnel or transport SA's) |
| pvSAArrayOrNumOfTunnelSAs | Optional! Array of Tunnel SA's or Num of Tunnel SA's |
| NumOfTunnelSAs | Optional! Number of Tunnel SA's |
| pbResult | Returns true if function succeeds else false |
Example:
' In this example, TransportSAs and TunnelsSAs are
' arrays of size two (on SA each for inbound and
' outbound traffic over a connection)
' Example of Transport SA connection
bResult = ClientOpen.IpSecOpen(hLocal, TransportSAs)
OR
' Example of Transport SA connection
bResult = ClientOpen.IpSecOpen(hLocal, TunnelSAs, 2)
OR
'Example of both Tranport and Tunnel SA connection
bResult = ClientOpen.IpSecOpen(hLocal, TransportSAs, TunnelsSAs, 2)
| STDMETHODIMP COpen::MakeCall(VARIANT *pvNetPrefix, VARIANT *pvNetAddr, UCHAR ucSapValue, IDispatch *pvSendFlowSpec, IDispatch *pvRecvFlowSpec, VARIANT_BOOL *pbResult) |
| Description |
This function requests Call Manager to make a connection on behalf of Ndistest Protocol Client. This function is specific to CoNdis miniports. |
| Parameters | |
| pvNetPrefix | 13 byte switch address |
| pvNetAddr | 6 byte adapter address |
| ucSapValue | 1 byte selector address based on SAP used for connection |
| pvSendFlowSpec | Transmit Flow Specification for QOS |
| pvRecvFlowSpec | Receive Flow Specification for QOS |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
Set VC_Array(0) = OpenOne.AfCreateVc()
bResult = VC_Array(0).MakeCall(NetPrefixOne, NetAddrOne, 135, SendFlowSpec, RecvFlowSpec)
| STDMETHODIMP COpen::MakeCall_1394(VARIANT *pvDestVC, ULONG ulCoMediaFlags, IDispatch *pvTxFlowSpec, IDispatch *pvRxFlowSpec, ULONG ulMtu, ULONG ulMediaParamsFlags, VARIANT_BOOL *pbResult) |
| Description |
This function requests call manager to make a call using 1394 VCs. |
| Parameters | |
| pvDestVC | Destination VC stored as NIC1394_DESTINATION structure |
| ulCoMediaFlags | Media Flags for CoNdis medium |
| pvTxFlowSpec | Transmit Flow Specification for QOS |
| pvRxFlowSpec | Receive Flow Specification for QOS |
| ulMtu | (optional) otherwise uses largest possible |
| ulMediaParamsFlags | (optional) otherwise uses 0, used for channel acquire option |
| pbResult | Returns true if succesful else return false |
Example:
bResult = oLocalSendVC.MakeCall_1394(vLocalSendVCInfo, lCoMediaFlagsSend, oSendFlowSpec, oRecvFlowSpec)
| STDMETHODIMP COpen::MakePartyCall(VARIANT *pvNetPrefix, VARIANT *pvNetAddr, UCHAR ucSapValue, IDispatch *pvSendFlowSpec, IDispatch **ppDisp) |
| Description |
This function requests the call manager to make the first connection of a party call. This function is specific to CoNdis miniports. |
| Parameters | |
| pvNetPrefix | 13 byte switch address |
| pvNetAddr | 6 byte adapter address |
| ucSapValue | 1 byte selector address based on SAP used for connection |
| pvSendFlowSpec | Transmit Flow Specification for QOS |
| ppDisp | Return Value of Interface Pointer for Party Call to be used to add/drop party or close party call |
Example:
Set Party_One = VC_Ptr.MakePartyCall(NetPrefix, NetAddr, SapValue, SendFlowSpec)
| STDMETHODIMP COpen::NdisClose(VARIANT_BOOL *pVal) |
| Description |
This command unbinds ndistest.sys from the miniport. This is always done for each NdisOpen call. |
| Parameters | |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.NdisClose ()
| STDMETHODIMP COpen::NdisOpen(ULONG NdisMedium, BOOLEAN bForceNdis30, VARIANT_BOOL *pVal) |
| Description |
| Parameters | |
| NdisMedium | This is the NdisMedium of the device i.e. NdisMedium802_3, NdisMediumATM, NdisMedium802_3. |
| bForceNdis30 | This is a boolean which determines whether the ndistest.sys protocol will bind to ndis.sys as version 3.0 (ReceiveHandler) or 4.0 (ReceivePacketHandler). |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.NdisOpen (NDISMEDIUM802_3, False)
| STDMETHODIMP COpen::NdisRequest( ULONG ulOidCode, VARIANT *pvBuffer, ULONG ulInformationBufferLength, ULONG ulRequestType, VARIANT *pvBytesWritten, VARIANT *pvBytesNeeded, VARIANT *pvNdisStatus, VARIANT_BOOL *pbResult) |
| Description |
This function queries or sets oids from script. The parameters are passed to the protocol driver which calls NdisRequest. The responses are passed back to the script in the cooresponding values. |
| Parameters | |
| ulOidCode | Oid to query or set |
| pvBuffer | input and output buffer |
| ulInformationBufferLength | length of buffer |
| ulRequestType | query or set |
| pvBytesWritten | bytes written, taken from response of NdisRequest call |
| pvBytesNeeded | bytes needed, taken from response of NdisRequest call |
| pvNdisStatus | status, taken from response of NdisRequest call |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
'==========================================================================
'
' Sets the lookahead for the open instance, and returns the status
' returned by NDIS request
'
Function SetLookahead(oTestOpen, Lookahead)
Dim BytesWritten, BytesNeeded, NdisStatus
Dim tempLookahead
BytesWritten = CLng(0)
BytesNeeded = CLng(0)
tempLookahead = Lookahead
SetLookahead = oTestOpen.NdisRequest( _
OID_GEN_CURRENT_LOOKAHEAD, _
tempLookahead, _
4, _
REQUEST_SET_INFO, _
BytesWritten, _
BytesNeeded, _
NdisStatus)
oLog.Write("Setting OID_GEN_CURRENT_LOOKAHEAD to " & Lookahead & vblf)
If (Not SetLookahead) Then
Call oLog.Write("NdisRequest failed during OID_GEN_CURRENT_LOOKAHEAD" )
ElseIf (NdisStatus <> 0) Then
SetLookahead = FALSE
oLog.Write("NdisRequest OID_GEN_CURRENT_LOOKAHEAD returned NdisStatus " & hex(NdisStatus) & vblf)
End If
End Function
| STDMETHODIMP COpen::NdisRequest2(ULONG ulOidCode, IDispatch *pData, ULONG ulRequestType, VARIANT *pvNdisStatus, VARIANT_BOOL *pbResult) |
| Description |
This command works just that same as NdisRequest(), it is used to set or query a specific OID. The parameters to this call differ from NdisRequest() in that the data parameter is a structure Object. The structure object is used to wrap an internal structure and thus provide access to the Structures member through the object. The structure object can be created by calling CreateStructureObject() and passing a predefined string value that indicates the type of object to Create. |
| Parameters | |
| ulOidCode | OID that is being queried\set. |
| pData | Pointer to an IDispatch that is a structure object. |
| ulRequestType | Value the specifies if this call should be a set or query. |
| pvNdisStatus | Pointer to a script variable that will receive the NdisStatus after the call is completed. |
| pbResult | Pointer to a script variable that will receive a boolean value indicating the success or failure of this call. |
Example:
'
' Create an Object that represents an Enumeration structure object
'
Set oEnum = oNDTCore.CreateStructureObject("ENUM")
if(oEnum is nothing) then
‘Handle Failure
end if
oEnum.Value = nAuthenticationMode
bRetval = m_oAdapterOpen.NdisRequest2(OID_802_11_AUTHENTICATION_MODE, oEnum, REQUEST_SET_INFO, nNdisStatus)
if(bRetval = false) then
‘Handle Failure
end if
| STDMETHODIMP COpen::NdisReset() |
| Description |
This command will cause the protocol driver to call NdisReset on the associated open. Control will not return until the reset completes |
Example:
oLog.Variation("Reset")
OpenOne.NdisReset()
| STDMETHODIMP COpen::OpenAddressFamily( ULONG ulFamily, ULONG ulMajorVer, ULONG ulMinorVer, VARIANT_BOOL *pbResult) |
| Description |
This function establishes connection between the ndistest driver, miniport driver and call manager. It stores the AddressFamily handle in the internal data structure. This function is specific to CoNdis miniports. |
| Parameters | |
| ulFamily | Address Family to be opened |
| ulMajorVer | Major Version of NDIS_CLIENT_CHARACTERISTICS |
| ulMinorVer | Minor Version of NDIS_CLIENT_CHARACTERISTICS |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
bResult = OpenOne.OpenAddressFamily(ADDRESS_FAMILY_Q2931, 3, 1)
| STDMETHODIMP COpen::RemoveWakePattern(SAFEARRAY *saArg, VARIANT_BOOL *pbResult) |
| Description |
This command deregisters a wake pattern with the NIC. |
| Parameters | |
| saArg | List of args from which pattern to be removed is constructed |
| pbResult | True on success, false on failure |
Example:
' The number of arguments must be even. The even number argument is the offset
' in the pattern and the odd argument is the pattern data to use
bResult = ClientOpen.RemoveWakePattern(0, &H12345&, 4, &H6789A&, 8, &HBCDEF&)
| STDMETHODIMP COpen::Reset1394Bus(VARIANT_BOOL *pbResult) |
| Description |
This function initiates a 1394 bus reset |
| Parameters | |
| pbResult | Returns true if succesful else return false |
| STDMETHODIMP COpen::Send(VARIANT *pvDestAddr, ULONG ulPacketSize, ULONG ulNumPackets, ULONG ulTestDuration, VARIANT *pvResendAddr, VARIANT_BOOL *pbResult) |
| Description |
This command is used to send packets over an Open. This command can be used to send ulNumPackets number of packets OR keep sending packets for ulTestDuration period of time OR send until either ulNumPackets have been sent or ulTestDuration has been exceeded This command calls NdisSend |
| Parameters | |
| pvDestAddr | The destination MAC address of the packets in the test |
| ulPacketSize | Size of the packets to be sent |
| ulNumPackets | If zero it means ignore this field and keep sending packets If non-zero, the field specifies the number of packets to send |
| ulTestDuration | If zero, means ignore this field and keep sending When non-zero, this field specifies the amount of time in sec to keep sending the packets for |
| pvResendAddr | When NULL it means no resend required else this is the address to resend packets to when received at pvDestAddr |
| pVal | Returns true on success, false on failure |
Example:
' This is an example of sending 100 packets of 300 bytes
' each to the Support Card and requesting it be resent
' back to the ClientAddress when received
bResult = ClientOpen.Send(SupportAddr, 300, 100, 0, ClientAddress)
' This is an example of sending packets of 300 bytes
' each to the Support Card for 100 seconds. There is no
' resend address so no packets are resent by support card
' back to the ClientAddress when received
bResult = ClientOpen.Send(SupportAddr, 300, 0, 100, Null)
| STDMETHODIMP COpen::SendIP(VARIANT *pvDestAddr, UCHAR ucVersion, UCHAR ucType, ULONG ulPacketCount, ULONG ulPacketSize, UCHAR ucOptions, VARIANT_BOOL *pbResult) |
| Description |
This command is used to send IP Packets from this open instance handle |
| Parameters | |
| pvDestAddr | The destination address (MAC) for the IP Packet |
| ucVersion | Version of IP (V4 or V6) |
| ucType | Protocol Type (TCP, UDP etc) |
| ulPacketCount | Number of packets to send |
| ulPacketSize | Size of each packet being sent |
| ucOptions | Specified TCP Options And/Or IP Options |
| pbResult | Return true on success else failure |
Example:
bResult = ClientOpen.SendIP(ServerAddress, V4, TCP, 50, 512, TCP_OPTIONS)
| STDMETHODIMP COpen::SendIPSec(VARIANT *pvDestAddr, VARIANT *pvHandle, UCHAR ucVersion, UCHAR ucType, ULONG ulPacketCount, ULONG ulPacketSize, ULONG ulOptions, VARIANT_BOOL *pbResult) |
| Description |
This command is used to exchange IP Sec traffic between two IP Sec Opens |
| Parameters | |
| pvDestAddr | Associated MAC address of the Open to send to |
| pvHandle | Handle to the senders IP Sec connection (obtained from IpSecOpen) |
| ucVersion | Version of IP (V4 or V6) |
| ucType | Protocol Type (TCP, UDP etc) |
| ulPacketCount | Number of packets to send |
| ulPacketSize | Size of each packet being sent |
| ucOptions | Specified TCP Options And/Or IP Options |
| pbResult | Return true on success of function else failure |
Example:
bResult = ClientOpen.SendIPSec (DestAddress, hLocalIPSecConn, V4, UDP, 50, 512, IP_OPTION_ROUTERALERT)
| STDMETHODIMP COpen::SendPackets(VARIANT *pvArrDestAddr, ULONG ulNumAddresses, ULONG ulPacketSize, ULONG ulNumPackets, ULONG ulTestDuration, VARIANT *pvResendAddr, VARIANT_BOOL *pbResult) |
| Description |
This command is used to send packets over an Open to multiple destination This command can be used to send ulNumPackets number of packets OR keep sending packets for ulTestDuration period of time OR send until either ulNumPackets have been sent or ulTestDuration has been exceeded This command calls NdisSendPackets |
| Parameters | |
| pvArrDestAddr | The array of MAC addresses to send the packets to |
| ulNumAddresses | The size of the array. |
| ulPacketSize | Size of the packets to be sent |
| ulNumPackets | If zero it means ignore this field and keep sending packets If non-zero, the field specifies the number of packets to send |
| ulTestDuration | If zero, means ignore this field and keep sending When non-zero, this field specifies the amount of time in sec to keep sending the packets for |
| pvResendAddr | When NULL it means no resend required else this is the address to resend packets to when received at pvDestAddr |
| pVal | Returns true on success, false on failure |
Example:
' This is an example of sending 100 packets of 300 bytes to
' each of the 5 Support Addresses and requesting it be resent
' back to the ClientAddress when received
' Assume there are three open already created on support card(s)
' and stored in arrSuppOpen
Dim ArrSupportAddr (3)
ArrSupportAddr (0) = GetCardAddressWithOpen(arrSuppOpen(0), oLog, lMedium)
ArrSupportAddr (1) = GetCardAddressWithOpen(arrSuppOpen(1), oLog, lMedium)
ArrSupportAddr (2) = GetCardAddressWithOpen(arrSuppOpen(2), oLog, lMedium)
bResult = ClientOpen.Send(ArrSupportAddr, 3, 300, 100, 0, ClientAddress)
| STDMETHODIMP COpen::SetIPAddr(BSTR bstrSrcIP, BSTR bstrDestIP, VARIANT *pvGWMacAddr, VARIANT_BOOL *pbResult) |
| Description |
This function sets the IP-related attributes for a given adapter. |
| Parameters | |
| bstrSrcIP | IP Address of a given adapter |
| bstrDestIP | IP Address of the adapter destined to receive IP packets |
| pvGWMacAddr | MAC Address of the adapter's default gateway |
| pbResult | Returns true if succesful else return false |
Example:
TestIP = "10.10.10.1"
SuppIP = "10.10.10.2"
TestGWAddr = Array(CByte(0),CByte(1),CByte(2),CByte(3),CByte(4),CByte(5))
bResult = oTestOpen.SetIPAddr(TestIP, SuppIP, TestGWAddr)
| STDMETHODIMP COpen::SetIpDefaults(VARIANT *pvOffloadHdrORFlag, VARIANT_BOOL *pbResult) |
| Description |
This command sets the default values on the Open Instance to set the Encapsulation Type and Size or Self-Checksum-Computation flag |
| Parameters | |
| pvOffloadHdrORFlag | Supplies encapsulation type and size or boolean flag for Self-Checksum-Computation for this Open instance |
| pbResult | Returns true if command succeeds, else false |
Example:
bResult = ClientOpen.SetIPDefaults (CByte (0)) ' Compute Self checksum
Or
DefaultOffloadHdr (0) = ENCAPSULATION
DefaultOffloadHdr (1) = LLC_SNAP_ROUTED
bResult = ClientOpen.SetIPDefaults (DefaultOffloadHdr)
| STDMETHODIMP COpen::SetLocalId(ULONG ulIdValue) |
| Description |
This command sets the ID that must be in all received packets or they will be ignored. This will allow multiple tests to coexist on the same network. |
| Parameters | |
| ulIdValue | Id for this test |
Example:
arrSuppOpen(0).SetRemoteId(lTestId)
arrSuppOpen(0).SetLocalId(lTestId)
OpenTest.SetReceiveOption(RECEIVE_DEFAULT)
| STDMETHODIMP COpen::SetOffloadPktInfo(LONG lOffloadBitMask, LONG lCksumInfoORMss, VARIANT_BOOL *pbResult) |
| Description |
This command is used to set offload per-packet info for packets sent through this open |
| Parameters | |
| lOffloadBitMask | Defines the offload task for this packet. Example CKSUM_OFFLOAD_TX or MSS_RX |
| lCksumInfoORMss | Provides details for the selected offload task. Example V4_CKSUM or the MSS size |
| pbResult | Returns success or failure in this variable |
Example:
lMss = 5120
bResult = OpenOne.SetOffloadPktInfo (MSS_TX, lMss)
| STDMETHODIMP COpen::SetOffloadTask(VARIANT *pvpulOffloadHdrInfo, VARIANT *pvTask1, VARIANT *pvTask2, VARIANT_BOOL *pbResult) |
| Description |
This command is used to offload a task onto an offload capable NIC. The Offload Header info has to be passed in separately as well. The function can take upto two tasks to offload (example: offload both largesend and checksum tasks and test). |
| Parameters | |
| pvpulOffloadHdrInfo | Information about Offload Header! Can be array or a long depending on how much header info is needed |
| pvTask1 | Optional! A task to offload |
| pvTask2 | Optional! Another task to offload |
| pbResult | Returns success (True) or failure (False) in this var |
Example:
bResult = ClientOpen.SetOffloadTask(0, CksumOffloadTask, LargeSendOffloadTask)
| STDMETHODIMP COpen::SetReceiveOption(ULONG ulReceiveOption) |
| Description |
This command sends a message to the ndistest.sys protocol to set
the mode it's packet receive handler will run in.
Following are the values for ulReceiveOption
RECEIVE_DEFAULT - normal receive, analyze immediately
RECEIVE_NOCOPY - same as RECEIVE_DEFAULT
RECEIVE_LOOKAHEAD - same as RECEIVE_DEFAULT but also checks lookahead size
RECEIVE_TRANSFER - calls NdisTransferData to get the rest of the packet (used by ProtocolReceiveHandler)
RECEIVE_PARTIAL_TRANSFER - same as RECEIVE_TRANSFER but transfers random lengths
RECEIVE_PACKETIGNORE - returns received packets immediately
RECEIVE_LOCCOPY - queue the packet to return in 50 milliseconds
RECEIVE_QUEUE - very similiar to LOCOPY
RECEIVE_DOUBLE_QUEUE - packet is returned in 100 milliseconds
RECEIVE_TRIPLE_QUEUE - packet is returned in 150 milliseconds
DEADLOCK_REPRO_FLAG - special case to to catch a deadlock
RECEIVE_ALLOW_BUSY_NET - will not require a private network |
| Parameters | |
| ulReceiveOption | See above for the desired receive mode that the ndistest.sys protocol should use. |
Example:
ClientOpen.SetReceiveOption (RECEIVE_DEFAULT Or RECEIVE_TRANSFER)
| STDMETHODIMP COpen::SetRemoteId(ULONG ulIdValue) |
| Description |
This command sets the ID that will be inserted in all sent packets. This will allow multiple tests to coexist on the same network. |
| Parameters | |
| ulIdValue | Id for this test |
Example:
arrSuppOpen(0).SetRemoteId(lTestId)
arrSuppOpen(0).SetLocalId(lTestId)
OpenTest.SetReceiveOption(RECEIVE_DEFAULT)
| STDMETHODIMP COpen::SetWakeupType(ULONG ulWakeUpType, VARIANT_BOOL *pbResult) |
| Description |
This command is used to set the mecahnism to use to wake a machine from sleep state. They can be Magic packet, Pattern match and link change events. |
| Parameters | |
| ulWakeUpType | The mechanism(s) that will wake this mahine |
| pbResult | Returns true on success, false on failure |
Example:
bResult = ClientOpen.SetWakeupType(WAKE_UP_PATTERN_MATCH)
| STDMETHODIMP COpen::StartIpCapture(VARIANT_BOOL *pbResult) |
| Description |
Starts to capture any IP packets received on this Open |
| Parameters | |
| pbResult | Returns true if capture mode starts succesfully. Else false |
Example:
bResult = ClientOpen.StartIpCapture()
| STDMETHODIMP COpen::StartIPSecCapture(VARIANT *pvHandle, VARIANT_BOOL *pbResult) |
| Description |
Starts to capture any IP Sec packets received on this Open |
| Parameters | |
| pvHandle | Handle to the Open IP Sec Connection |
| pbResult | Returns true if succesful else return false |
Example:
bResult = ClientOpen.StartIpSecCapture()
| STDMETHODIMP COpen::StartPerformance( VARIANT *pvOpen, VARIANT *pvNetAddr, ULONG ulMode, ULONG ulPacketSize, ULONG ulPktsPerBurst, ULONG ulNumPackets, ULONG ulTestDuration, ULONG ulDelay, ULONG ulCancelPkts, VARIANT_BOOL *pbResult) |
| Description |
This command is used to start Performance test on Test adapter. As a part of performance test, large number of packets are pre-allocated and sent/received simultaneously on test adapter. |
| Parameters | |
| pVOpen | Interface pointer for the Support Open Object |
| pvNetAddr | MAC Address where packets are send to |
| ulMode | Mode of test : send mode, receive mode or both send and receive mode without or without verifying receives |
| ulPacketSize | Size of the packet |
| ulPktsPerBurst | Packets sent during each burst |
| ulNumPackets | Total Packets to be send for this iteration |
| ulTestDuration | Time in seconds for the iteration to complete |
| ulDelay | Delay in milliseconds between sends |
| ulCancelPkts | Cancel packet sends during this command |
| pbResult | If command succeeds set to TRUE, FALSE otherwise |
Example:
Mode = PERFORM_RECEIVE + PERFORM_VERIFY_RECEIVES
bResult = OpenOne.StartPerformance(OpenTwo, TestAddr, Mode, lSize, lPktsPerBurst, 0, 30, 0, 0)
If (Not bResult) Then
call oLog.Failed ("Unable to execute performance command.", 88888)
End If
| STDMETHODIMP COpen::StartReceive(VARIANT_BOOL *pbResult) |
| Description |
This command sends a message to the ndistest.sys protocol to begin receiving packets on this open. Before this command is executed any packets that come in on the open are ignored. This is matched with the StopReceive command. |
| Parameters | |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.StartReceive
| STDMETHODIMP COpen::StartStress( IDispatch *pOpen, ULONG ulPacketSize, ULONG ulOptionsMask, ULONG ulIterations, ULONG ulTestDuration, VARIANT_BOOL *pbResult) |
| Description |
The stress test is on the main test commands in the NDIS Test. It sends packets quickly using many different buffer sizes and packet sizes. The open that this is called on does the sending. Control returns to the script as soon as the Stress test starts. Test options are: Packet Sizes FIXEDSIZE determined by ulPacketSize RANDOMSIZE from minimum to ulPacketSize STRESS_CYCLICAL from minimum to ulPacketSize increasing by one STRESS_SMALLSIZE Small packets Buffer Sizes (max 20 buffers) RAND Random sizes SMALL Lots of little buffers ZEROS A number zero length buffers including at the end of chain ONES A number buffers that are one byte long Receive/Resend Options FULL_RESP Respond with a full length packet NO_RESP Do not respond ACK Respond with a small packet ACK_10 Respond with 10 small packets Windowing keeps track of how many packets have not been ACKed. |
| Parameters | |
| pOpen | This open receives the packets |
| ulPacketSize | Size of packets or max packet size if size is variable |
| ulOptionsMask | Test options - see above |
| ulIterations | Number of packets or times through loop of packet sizes |
| ulTestDuration | Time in seconds test will run (or until all packets have been sent) |
| pbResult | True if successful |
Example:
oLog.Variation("Stress Test - test adapter as client" & vblf)
bResult = TestOpen.StartStress(SuppOpen, arrPacketSize(lCount), arrOptionMask(lCount), arrIterations(lCount), 0)
If (bResult) Then
bResult = TestOpen.WaitStress()
If (bResult) Then
bResult = TestOpen.GetStressResults()
If (Not bResult) Then
Call oLog.Failed ("Unable to get stress results from the test adapter." , 88888)
End If
Else
Call oLog.Failed ("Unable to WaitStress on the test adapter." , 88888)
End If
Else
Call oLog.Failed ("Unable to start stress on the test adapter." , 88888)
End If
| STDMETHODIMP COpen::StartWaitForEvent(VARIANT *pvEvent, VARIANT_BOOL *pbResult) |
| Description |
This command will start a process waiting for an event. Control is returned to the script which
later calls EndWaitForEvent. The EndWaitForEvent will return when a timeout expires or the
event occurs. The following events can be waited on:
NDIS_STATUS_RESET_START:
NDIS_STATUS_RESET_END:
NDIS_STATUS_MEDIA_CONNECT:
NDIS_STATUS_MEDIA_DISCONNECT:
NDIS_STATUS_WAN_LINE_UP:
NDIS_STATUS_WAN_LINE_DOWN:
NDIS_STATUS_HARDWARE_LINE_UP:
NDIS_STATUS_HARDWARE_LINE_DOWN:
NDIS_STATUS_INTERFACE_UP:
NDIS_STATUS_INTERFACE_DOWN: |
| Parameters | |
| pvEvent | Event to wait for |
| pbResult | True for success |
Example:
oLog.Variation("Checking disconnection of card")
bResult = WorkOpen.StartWaitForEvent(NDIS_STATUS_MEDIA_DISCONNECT)
If (Not bResult) Then
oLog.Write("StartWaitForEvent returned failure" & vblf)
End If
WshShell.Popup "Disconnect test card from the network, then click OK.", PopupTimeout, "Media Disconnect Detection", vbSystemModal
bResult = WorkOpen.EndWaitForEvent(10)
If (bResult) Then
oLog.Write("NDIS_STATUS_MEDIA_DISCONNECT indication received" & vblf)
Else
call oLog.Failed ("No disconnect indication received" , 88888)
End If
| STDMETHODIMP COpen::StopReceive(VARIANT_BOOL *pbResult) |
| Description |
This command sends a message to the ndistest.sys protocol to stop receiving packets on this open. After this command is executed any packets that come in on the open are ignored. This is matched with the StartReceive command. |
| Parameters | |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.StopReceive
| STDMETHODIMP COpen::StopSend(VARIANT_BOOL *pbResult) |
| Description |
This command is used to instruct a sending open to stop sending packets. This command is usually used when an open has been asked to keep send packets for a long duration of time and we need to stop the sends now. |
| Parameters | |
| pVal | Returns true on success, false on failure |
Example:
bResult = ClientOpen.Send
| STDMETHODIMP COpen::UpdateAtmAddress(VARIANT *pvNetPrefix, VARIANT *pvNetAddr, LONG AddOrDelete, VARIANT_BOOL *pbResult) |
| Description |
This function enables ndistest protocol client to receive/not receive on an alternate ATM address. This function is specific to ATM adapters. |
| Parameters | |
| pvNetPrefix | Parameter to specify switch address |
| pvNetAddr | Parameter to specify adapter address |
| AddOrDelete | Specifies whether to add or delete ATM Address |
| pbResult | Return Value for Success(true) or Failure(false) |
Example:
NewNetPrefix = NetPrefix(&H00&, &H00&, &H00&, &H00&, &H02&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&, &H00&)
NewNetAddr = NetAddr(&H00&, &H00&, &H00&, &H03&, &H00&, &H00&)
bResult = OpenOne.UpdateAtmAddress(NewNetPrefix, NewNetAddr, ADD)
| STDMETHODIMP COpen::VCInfo(VARIANT *pvVCInfo, ULONG ulAddressType, LONG lChannelNum, VARIANT_BOOL *pbResult) |
| Description |
This function is used to create a VCInfo Variable |
| Parameters | |
| pvVCInfo | Structure returned that holds vcinfo which is used later for make call |
| ulAddressType | Channel or FIFO VC |
| lChannelNum | If ulAddressType is Channel VC, Channel Number to be used |
| pbResult | Returns true if succesful else return false |
Example:
bResult = oTestOpen.VCInfo(vVCInfo, NIC1394_FIFO)
bResult = oTestOpen.VCInfo(vVCInfo, NIC1394_Channel, BROADCAST_CHAN)
| STDMETHODIMP COpen::WaitPerformance(VARIANT_BOOL *pbResult) |
| Description |
This command waits until the driver is done performing a performance test. So the driver is sending/receiving packets and once it is done it returns the control back to test script. |
| Parameters | |
| pbResult | If command succeeds set to TRUE, FALSE otherwise |
Example:
bResult = OpenOne.WaitPerformance()
If (Not bResult) Then
call oLog.Failed ("Unable to wait for performance tests to complete.", 88888)
End If
| STDMETHODIMP COpen::WaitSend(VARIANT_BOOL *pbResult) |
| Description |
This command keeps checking if the sends have completed and if they have, returns. This command usually follows a Send or a StopSend command to make sure we proceed only after all sends have completed |
| Parameters | |
| pbResult | Returns true on success, false on failure |
Example:
bResult = ClientOpen.Send (SupportAddress, 300, 100, 0, Null)
If (bResult) Then
bResult = ClientOpen.WaitSend
.
.
.
End If
| STDMETHODIMP COpen::WaitStress(VARIANT_BOOL *pbResult) |
| Description |
This command waits for a stress test to complete. Control does not return until the test is done. |
| Parameters | |
| pbResult | True if successful |
Example:
| STDMETHODIMP CPNPPower::QueryStopDriver(BSTR bstrDriverName, long *lRetVal) |
| Description |
This command is used to determine if a driver is stoppable. |
| Parameters | |
| bstrDriverName | GUID of the driver that has to be started |
| lRetVal | success or failure |
| STDMETHODIMP CPNPPower::StartDriver(BSTR bstrDriverName, long *lRetVal) |
| Description |
This command is used to start a driver. |
| Parameters | |
| bstrDriverName | GUID of the driver that has to be started |
| lRetVal | success or failure |
| STDMETHODIMP CPNPPower::StopDriver(BSTR bstrDriverName, long *lRetVal) |
| Description |
This command is used to stop a driver. |
| Parameters | |
| bstrDriverName | GUID of the driver that has to be stopped |
| lRetVal | success or failure |
| STDMETHODIMP CPnPPowerMgmt::get_Hibernate (long Duration, VARIANT* lRetStatus, long* pVal) |
| Description |
This function puts the device into hibernate state for lDuration amount of time. This lDuration value is used only if the machine supports Auto wake. Otherwise, the machine will have to be power cycled manually to wake up from hibernate |
| Parameters | |
| lDuration | The duration in seconds for which machine hibernates |
| lRetStatus | returns success status of the method to caller |
| pVal | Will return by ref the time duration in seconds the machine hibernated for |
Example:
lTimeSlept = oPnPPower.Hibernate (10, lRetValue)
| STDMETHODIMP CPnPPowerMgmt::get_PowerStates (long *pVal) |
| Description |
This function returns the Power capabilities of the machine. The Power information provided is Capability to Hibernate (0x01) Capability to Standby (0x02) Capability to Autowake from sleep states (0x04) |
| Parameters | |
| pVal | The results are sent back in this long |
| long CPnPPowerMgmt::get_Standby (long Duration, VARIANT* lRetStatus, long* pVal) |
| Description |
This function puts the device into standby state for lDuration amount of time. This lDuration value is used only if the machine supports Auto wake. Otherwise, the machine will have to be power cycled manually to wake up from Standby. The machine is put into the lowest (closest to hibernate) sleep state supported. |
| Parameters | |
| lDuration | The duration for which machine Standby |
| lRetStatus | returns success status of the method to caller |
| pVal | Will return by ref the time duration machine Standby for |
Example:
oPnPPower.Standby (10, lRetValue, lTimeSlept)
| STDMETHODIMP CResourceMgr::CreateResMgr() |
| Description |
This method initializes the Resource Manager, which provides methods to access Modem Resouces on MCT Server |
Example:
oResMgr.CreateResMgr
.
| STDMETHODIMP CResourceMgr::DeleteResMgr() |
| Description |
This method frees the internal variables of Resource Manager. |
Example:
oResMgr.DeleteResMgr
.
| STDMETHODIMP CResourceMgr::EnumerateNextModem() |
| Description |
This method is called after setting up enumeration using StartModemEnum. If any modems are available which satisfy the request criteria then client can use the properties EnumeratedModemName and EnumeratedModemCategory to find out the details of all the modem resources on MCT Server. If EnumeratedModemCategory is -1 then there are no more modems in the list. |
Example:
oResMgr.StartModemEnum(RequestByLineID)
.
.
oResMgr.EnumerateNextModem
.
| STDMETHODIMP CResourceMgr::get_CategoryID(long *pVal) |
| Description |
This property gets the value of the modem category (e.g voice modem) for the acquired modem resource. |
| Parameters | |
| pVal | Pointer for the return value |
Example:
nCategory = oResMgr.CategoryID
.
| STDMETHODIMP CResourceMgr::get_DialString(BSTR *pVal) |
| Description |
This property gets the phone number of the line connected to acquired modem resource. |
| Parameters | |
| pVal | BSTR to hold modem phone number |
Example:
RemotePhoneNum = oResMgr.DialString
.
| STDMETHODIMP CResourceMgr::get_EnumeratedModemCategory(long *pVal) |
| Description |
This property gets the integer value for enumerated modem's category. |
| Parameters | |
| pVal | LONG to hold the value of category |
Example:
nEnumCategory = oResMgr.EnumeratedModemCategory
.
| STDMETHODIMP CResourceMgr::get_EnumeratedModemName(BSTR *pVal) |
| Description |
This property gets the string value for enumerated modem's description string. |
| Parameters | |
| pVal | BSTR to hold the modem description string |
Example:
strEnumName = oResMgr.EnumeratedModemName
.
| STDMETHODIMP CResourceMgr::get_LineDeviceID(long *pVal) |
| Description |
This property gets the TAPI line ID for the acquired modem resource. |
| Parameters | |
| pVal | Pointer for the return value |
Example:
nRemoteLine = oResMgr.LineDeviceID
.
| STDMETHODIMP CResourceMgr::get_ModemName(BSTR *pVal) |
| Description |
This property gets the modem description string for the acquired modem resource. |
| Parameters | |
| pVal | BSTR to hold modem description string |
Example:
strName = oResMgr.ModemName
.
| STDMETHODIMP CResourceMgr::get_PhoneDeviceID(long *pVal) |
| Description |
This property gets the TAPI phone ID for the acquired modem resource. |
| Parameters | |
| pVal | Pointer for the return value |
Example:
nRemotePhone = oResMgr.PhoneDeviceID
.
| STDMETHODIMP CResourceMgr::get_TAPIProperties(long *pVal) |
| Description |
This property gets the integer value specifying if the allotted modem has voice, data or phone capabilities. |
| Parameters | |
| pVal | Pointer for the return value |
Example:
nProperty = oResMgr.TAPIProperties
.
| STDMETHODIMP CResourceMgr::GetNextModem(DWORD dwTimeout) |
| Description |
Once SetupResourceRequest is called, this method tries to acquire modem resources from Remote MCT Server if any modem is available which satisfy the request criteria used in SetupResourceRequest |
| Parameters | |
| dwTimeout | Time to wait in milliseconds for the modem resource to be available. |
Example:
oResMgr.GetNextModem 24000
.
| STDMETHODIMP CResourceMgr::SetupResourceRequest(DWORD dwLookupCriteria) |
| Description |
This method sets up request for modem resources from Remote MCT Server based on criteria of Category, Line DeviceID, Permanent LineID, Phone DeviceID or TAPI Property. |
| Parameters | |
| dwLookupCriteria | Whether modem is requested based on line ID, Category (same type of device), permanent Line ID, phone Device ID or TAPI Property. |
Example:
oResMgr.SetupResourceRequest RequestByLineID
.
| STDMETHODIMP CResourceMgr::StartModemEnum(DWORD dwEnumCriteria) |
| Description |
This method lists all the modem based on criteria mentioned in SetupResourceRequest. This method is mainly used for the user to select specific modem. |
| Parameters | |
| dwEnumCriteria | Whether modem is enumerated based on line ID, Category (same type of device), permanent Line ID, phone Device ID or TAPI Property. |
Example:
oResMgr.StartModemEnum(RequestByLineID)
.
| STDMETHODIMP CSuppCore::get_CreateBindCtrl(LONG lConnID, IDispatch **pVal) |
| Description |
This commands creates a bind control object that is used to manipulate protocol bindings of a device. |
| Parameters | |
| lConnID | The connection ID for the device. This is used to determine what machine the bind control object needs to be created on. |
| pVal | Pointer to an interface for the bind ctrl object that is returned to the caller |
Example:
Set Adapter = oNDInfo.AdapterList (0)
Set oBindCtrl = oSuppCore.CreateBindCtrl (Adapter.ConnectionID)
| STDMETHODIMP CSuppCore::InitializeServer(LONG lConnectionID, VARIANT_BOOL *bReturn) |
| Description |
This command sets up the structures needed change protocol bindings of devices on remote machines. This command must be called with connection id for each remote machine. Also note that the connection id for devices on the local machine is zero, while the connection id for devices on remote machine is always non zero. |
| Parameters | |
| lConnectionID | Connection ID of the remote machine adapter |
| bReturn | Returns true on success or false on failure to caller |
Example:
Set Adapter = oNDInfo.AdapterList (2)
If (Adapter.ConnectionID <> 0) Then
bResult = oSuppCore.InitializeServer (Adapter.ConnectionID)
End If
| STDMETHODIMP CSuppCore::UninitializeServer(LONG lConnectionID, VARIANT_BOOL *bReturn) |
| Description |
This command is needed to uninitialize a remote server that has been initialized with the InitializeServer command. |
| Parameters | |
| lConnectionID | Connection ID of the remote machine adapter |
| bReturn | Returns true on success or false on failure to caller |
Example:
Set Adapter = oNDInfo.AdapterList (2)
If (Adapter.ConnectionID <> 0) Then
bResult = oSuppCore.UninitializeServer (Adapter.ConnectionID)
End If
| STDMETHODIMP CTAPICore::get_CreateStructure(BSTR bstrName, IDispatch **pVal) |
| Description |
Creates an object that represents one of the TAPI structures, The returned object can then be used in many of the calls like LineGetDevCaps(). <br/> Structure Object Names: <br/> LINEADDRESSCAPS LINEDEVCAPS VARSTRING LINECALLPARAMS LINEDEVSTATUS LINECALLINFO |
| Parameters | |
| bstrName | String the specifies the name of the strucutre object to create. |
| pVal | Pointer to pointer that will receive the newly created structure object. |
| STDMETHODIMP CTAPICore::LineClose(LONG LineID, LONG *pStatus) |
| Description |
Closes the open line handle associated with the specified line. |
| Parameters | |
| LineID | Spicifies the identifier for the line device. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineDeallocateCall(LONG CallID, LONG *pStatus) |
| Description |
This function deallocates the call handle associated with the specified CallID. |
| Parameters | |
| CallID | Specifies the line identifier that is accociated with the call handle to drop. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineDrop(LONG CallID, VARIANT *pValue, LONG lSize, LONG *pStatus) |
| Description |
This command will drop\disconnect the specified call. The call handle is not deallocated until a subsequent call to LineDeallocate is made. |
| Parameters | |
| CallID | The call ID identifies the call to be dropped. |
| pValue | Reserved. |
| lSize | Reserved. |
| Pointer | to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetAddressCaps(DWORD dwDeviceID, DWORD dwAddressID, DWORD dwAPIVersion, DWORD dwExtVersion, IDispatch *pAddressCaps, LONG *pStatus) |
| Description |
This function queries the specified address on the specified line device to determine its telephony capabilities. |
| Parameters | |
| dwDeviceID | Specifies the identifier of the line device. |
| dwAddressID | Specifies the address on the given line device whose capabilities are to be queried. |
| dwAPIVersion | Specifies the version number of the TAPI API to be used. |
| dwExtVersion | Specifies the negotiated extension version, should be set to 0. |
| pAddressCaps | Pointer to a LINEADDRESSCAPS structure object. Upon successful completion of the request, this structure object is filled with the address capabilites information. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetAddressID(LONG LineID, VARIANT *pAddressID, LONG lAddressMode, BSTR bstrAddress, LONG lSize, LONG *pStatus) |
| Description |
This function returns the address identifier associated with an address in a different format on the specified line. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| pAddressID | Variant that will recieve the address identifier upon successful completion. |
| lAddressMode | Address mode of the specfied address, Must be a LINEADDRESSMODE_ constant. |
| bstrAddress | String that specifies the address assigned to the line device. |
| lSize | Size of the address. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetAddressStatus(LONG LineID, LONG lAddressID, IDispatch *pAddressStatus, LONG *pStatus) |
| Description |
This function allows an application to query the specified address for its current status. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| lAddressID | Specifies an address on the given open line device. |
| pAddressStatus | Pointer to a LINEADDRESSSTAUTS structure object. Upon successful completion of the request, this structure object is filled with the address status information. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetCallInfo(LONG CallID, IDispatch *pCallInfo, LONG *pStatus) |
| Description |
This function enables an application to obtain fixed information about the specified call. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| pCallInfo | Pointer to a LINECALLINFO structure object. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetCallStatus(LONG CallID, IDispatch *pCallStatus, LONG *pStatus) |
| Description |
This function returns the current status of the specified call. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| pCallStatus | Pointer to a LINECALLSTATUS structure object. Upon successful completion of the request, this structure object is filled with the call status information. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetDevCaps(DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtVersion, IDispatch *pDevCaps, LONG *pStatus) |
| Description |
Queries a specified line device to determine its telephony capabilities. |
| Parameters | |
| dwDeviceID | Spcifies the identifier for the line device. |
| dwAPIVersion | Specifies the version number of TAPI to be used. |
| dwExtVersion | Not supported, should be set to 0. |
| pDevCaps | Pointer to the IDispath of an object that represents the LINEDEVCAPS sturcture. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetDevConfig(DWORD dwDeviceID, IDispatch *pDevConfig, BSTR bszDeviceClass, LONG *pStatus) |
| Description |
Returns an "opaque" data structure object, the contents of which are specific to the line (service provider) and device class. The data structure object stores the current configuration of a media-stream device associated with the line device. |
| Parameters | |
| dwDeviceID | Specifies the identifier of the line device. |
| pDevConfig | Pointer to the IDispath of an object that represents the VARSTRING sturcture. |
| bszDeviceClass | String that specifies the device class of the device whose configuration is requested. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineGetLineDevStatus(LONG LineID, IDispatch *pDevStatus, LONG *pStatus) |
| Description |
This function enables an application to query the specified open line device for its current status. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| pDevStatus | Pointer to a LINEDEVSTATUS structure object. Upon successful completion of the request, this structure object is filled with the device status information. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineMakeCall(LONG LineID, VARIANT *pCallHandle, BSTR bstrAddress, LONG lCountryCode, IDispatch *pCallParams, LONG *pStatus) |
| Description |
Places a call on the specified line to the specified destination address. Optionally, call parameters can be specified if anything but default call setup parameters are requested. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| pCallHandle | Pointer to a VARIANT that will recieve that call handle. |
| bstrAddress | String that specifies the destination address. |
| lCountryCode | Reserved, should be set to zero. |
| pCallParams | Pointer to a LINECALLPARAMS structure object. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineNegotiateAPIVersion(DWORD dwDeviceID, DWORD dwAPILow, DWORD dwAPIHigh, VARIANT *pdwAPIVersion, IDispatch *pExtID, LONG *pStatus) |
| Description |
This function is called to negotiate an TAPI version to use. |
| Parameters | |
| dwDeviceID | Spcifies the identifier for the line device. |
| dwAPILow | Specifies the least recent TAPI version the application is compliant with. |
| dwAPIHigh | Specifies the most recent TAPI version the applican is compliant with. |
| pdwAPIVersion | Reserved. |
| pExtID | Reserved. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineNegotiateExtVersion(DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwLowVersion, DWORD dwHighVersion, VARIANT *pExtVersion, LONG *pStatus) |
| Description |
This function allows an application to negotiate an extension version to use with the specified line device. |
| Parameters | |
| dwDeviceID | Specifies the identifier of the line device. |
| dwAPIVersion | TAPI version number that was negotiated for the line device. |
| dwLowVersion | The least recent version of the extension identifier returned by lineNegotiateAPIVersion. |
| dwHighVersion | The most recent version of the extension identifier returned by lineNegotiateAPIVersion. |
| pExtVersion | Pointer to a VARIANT that will receive the extension version. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineOpen(LONG DeviceID, VARIANT *pLineHandle, LONG lAPIVersion, LONG lExtVersion, LONG lPrivileges, LONG lMediaMode, LONG *pStatus) |
| Description |
This command will open a specified line using the provided parameters. No validation is done to ensure the validity of the params. |
| Parameters | |
| DeviceID | Specifies the identifier of the line device to be opened. |
| pLineHandle | Pointer to a variable to that will recieve the open line handle identifier. |
| lAPIVersion | Specifies the TAPI version number that the application and TAPI have agreed upon. |
| lExtVersion | Unsupported, should be set to 0. |
| lPrivileges | Specifies the privilege the application wants for the calls it is notified for. |
| lMediaMode | Specifies the media mode or modes of interest to the application. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSecureCall(LONG CallID, LONG *pStatus) |
| Description |
This function secures the call from any interruptions or interference that can affect the call's media stream. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSendUserUserInfo(LONG CallID, BSTR UserInfo, LONG lSize, LONG *pStatus) |
| Description |
This function sends user-user information to the remote party on the specified call. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| UserInfo | String that contains user-user information to be sent to the remote party. |
| lSize | The size in bytes of the string. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSetAppSpecific(LONG CallID, LONG AppSpecValue, LONG *pStatus) |
| Description |
This function enables an application to set the application-specific field of the specified call's call-information record. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| AppSpecValue | The new content value. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSetCallParams(LONG CallID, LONG BearerMode, LONG MinRate, LONG MaxRate, LONG *pStatus) |
| Description |
This function allows an application to change bearer mode and/or the rate parameters of an existing call. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| BearerMode | The new bearmode of the call. This parameter uses one and only one of the LINEBEARERMODE_Constants. |
| MinRate | A lower bound for the call's new data rate. |
| MaxRate | An upper bound for the call's new data rate. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSetDevConfig(DWORD dwDeviceID, IDispatch *pDevConfig, DWORD dwSize, BSTR bszDeviceClass, LONG *pStatus) |
| Description |
Allows the application to restore the configuration of a media stream device on a line device to a setup previously obtained using lineGetDevConfig. For example, the contents of this structure could specify data rate, character format, modulation schemes, and error control protocol settings for a "datamodem" media device associated with the line. |
| Parameters | |
| dwDeviceID | Specifies the identifier of the line device to be configured. |
| pDevConfig | Pointer to the IDispath of an object that represents the VARSTRING sturcture. |
| dwSize | Specifies the number of bytes in the structure represented by the structure object. |
| bszDeviceClass | String that specifies the device class of the device whose configuration is requested. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSetMediaMode(LONG CallID, LONG lMediaMode, LONG *pStatus) |
| Description |
This function sets the media type(s) of the specified call. |
| Parameters | |
| CallID | Specifies the identifier of the line device. |
| lMediaMode | The new media type(s) for the call. This parameter uses the LINEMEDIAMODE_ Constants. As long as the UNKNOWN media type flag is set, other media type flags may be set as well. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTAPICore::LineSetStatusMessages(LONG LineID, LONG lLineStates, LONG lAddressStates, LONG *pStatus) |
| Description |
This function enables an application to specify which notification messages the application wants to receive for events related to status changes for the specified line or any of its addresses. |
| Parameters | |
| LineID | Specifies the identifier of the line device. |
| lLineStates | Specifies for which line-device status changes a message is to be sent to the application. This parameter should be set to one or more LINEDEVSTATE_ constants. |
| lAddressStates | Specifies for which address status changes a message is to be sent to the application. This parameter should be set to one or more LINEADDRESSSTATE_ constants. |
| pStatus | Pointer to the returned TAPI Status. |
| STDMETHODIMP CTcpIpChecksum::CompareTcpIpCksumObjects(IDispatch *pvCksumObj, VARIANT_BOOL *pbResult) |
| Description |
This function compares one TcpIpChecksum object to another and returns true if they are identical |
| Parameters | |
| pvCksumObj | The checksum object to compare with the current checksum object |
| pbResult | Return true on success, false on failure |
Example:
Result = oTcpIpCksumObj1.CompareTcpIpCksumObjects (oTcpIpCksumObj2)
| STDMETHODIMP CTcpIpChecksum::GetVariant(VARIANT_BOOL *pbResult) |
| Description |
This function makes a variant of the current TcpIpCksumObj. A variant is a copy of the current checksum object except that it will claim to support exactly one checksum capability that the current object does not. If no such checksum capability exists (that is the current object supports all forms of checksum offload) the function returns false. The variant is useful in checking for driver's ability to handle tasks it does not support |
| Parameters | |
| pbResult | Returns true if a variant is successfully made, else false |
Example:
bResult = oTcpIpCksumObj.GetVariant()
' Note: The oTcpIpCksumObj becomes a variant of itself.
| STDMETHODIMP CTcpIpLargeSend::CompareTcpIpLargeSendObjects(IDispatch *pvLargeSendObj, VARIANT_BOOL *pbResult) |
| Description |
This function compares one TcpIpLargeSend object to another and returns true if they are identical |
| Parameters | |
| pvCksumObj | The Largesend object to compare with the current Largesend object |
| pbResult | Return true on success, false on failure |
Example:
bResult = oTcpIpLargeSendObj1.CompareTcpIpLargeSendObjects (oTcpIpLargeSendObj2)
| STDMETHODIMP CTcpIpLargeSend::GetVariant(VARIANT_BOOL *pbResult) |
| Description |
This function makes a variant of the current TcpIpLargeSendObj. A variant is a copy of the current TcpIpLargeSendObj except that it will claim to support exactly one Largesend capability that the current object does not. If no such largesend capability exists (that is the current object supports all forms of largesend offload) the function returns false. The variant is useful in checking for driver's ability to handle tasks it does not support |
| Parameters | |
| pbResult | Returns true if a variant is successfully made, else false |
Example:
bResult = oTcpIpLargeSendObj.GetVariant()
' Note: The oTcpIpLargeSendObj changes to a variant of itself.