NDIS Test Commands


Table Of Content
CAdapter::CreateOpen
CAdapter::GetIPGateway
CAdapter::QueryGuid
CAdapter::QueryInfo
Cbase::CreateAdapter
Cbase::CreateFlowspec
Cbase::CreateIpSecObj
Cbase::CreateIpSecSAObj
Cbase::CreateTcpIpChecksumObj
Cbase::CreateTcpIpLargeSendObj
Cbase::GetIPSecCombos
Cbase::GetWolPattern
Cbase::ParseOffloadInfo
Cbase::PrintOidName
Cbase::put_DebugLevel
Cbase::QueryGuidAll
Cbase::RestartPA
CBindCtrl::Bind
CBindCtrl::GetBindStatus
CBindCtrl::GetProtocolInfo
CBindCtrl::ToggleStatus
CBindCtrl::UnBind
CCore::get_CreateTAPI
CCore::InitializeServer
CCore::UninitializeServer
CFileTran::CheckCRC
CFileTran::Cleanup
CFileTran::DataTransfer
CFileTran::GetTransferResults
CFileTran::InitComPorts
CFileTran::SetUpTransfer
CIpSecStats::CompareIpSecStats
CKernelCallsVerifier::GetImportedFunctions
CMCTService::IsServerRunning
CMCTService::StartMCTService
CMCTService::StopMCTService
CMdmObj::CloseLine
CMdmObj::CloseModem
CMdmObj::ClosePhoneDevice
CMdmObj::CreateLine
CMdmObj::DisconnectATMode
CMdmObj::DropCall
CMdmObj::get_BlindDial
CMdmObj::get_CallSetupTimeout
CMdmObj::get_Compression
CMdmObj::get_ErrorControl
CMdmObj::get_FlowControlHard
CMdmObj::get_FlowControlSoft
CMdmObj::get_ForcedErrorControl
CMdmObj::get_InactivityTimer
CMdmObj::get_phoneNum
CMdmObj::get_SpeakerMode
CMdmObj::get_SpeakerVolume
CMdmObj::get_SpeedAdjust
CMdmObj::get_VoicePhoneNum
CMdmObj::GetModemList
CMdmObj::GetNegotiatedSpeed
CMdmObj::InitModem
CMdmObj::MakeBlindCall
CMdmObj::MakeCall
CMdmObj::MakePassThroughCall
CMdmObj::MakeVoiceCall
CMdmObj::OpenPhoneDevice
CMdmObj::put_BlindDial
CMdmObj::put_CallSetupTimeout
CMdmObj::put_Compression
CMdmObj::put_ErrorControl
CMdmObj::put_FlowControlHard
CMdmObj::put_FlowControlSoft
CMdmObj::put_ForcedErrorControl
CMdmObj::put_InactivityTimer
CMdmObj::put_phoneNum
CMdmObj::put_SpeakerMode
CMdmObj::put_SpeakerVolume
CMdmObj::put_SpeedAdjust
CMdmObj::put_VoicePhoneNum
CMdmObj::ReceiveATResponse
CMdmObj::SendATCommand
COpen::AddParty
COpen::AddSA
COpen::AddWakePattern
COpen::AfCloseSap
COpen::AfCreateVc
COpen::AfDeleteVc
COpen::AfOpenSap
COpen::Cleanup
COpen::CloseAddressFamily
COpen::CloseCall
COpen::ClosePartyCall
COpen::CoSend
COpen::DeleteSA
COpen::DropParty
COpen::EndWaitForEvent
COpen::Get1394NodeId
COpen::Get1394VCInfo
COpen::GetAtmAddress
COpen::GetAtmUniVersion
COpen::GetEvents
COpen::GetIPCaptureResults
COpen::GetNumAtmAddresses
COpen::GetOffloadPktInfo
COpen::GetPerformanceResults
COpen::GetReceiveResults
COpen::GetSendResults
COpen::GetStressResults
COpen::IpSecClose
COpen::IpSecOpen
COpen::MakeCall
COpen::MakeCall_1394
COpen::MakePartyCall
COpen::NdisClose
COpen::NdisOpen
COpen::NdisRequest
COpen::NdisRequest2
COpen::NdisReset
COpen::OpenAddressFamily
COpen::RemoveWakePattern
COpen::Reset1394Bus
COpen::Send
COpen::SendIP
COpen::SendIPSec
COpen::SendPackets
COpen::SetIPAddr
COpen::SetIpDefaults
COpen::SetLocalId
COpen::SetOffloadPktInfo
COpen::SetOffloadTask
COpen::SetReceiveOption
COpen::SetRemoteId
COpen::SetWakeupType
COpen::StartIpCapture
COpen::StartIPSecCapture
COpen::StartPerformance
COpen::StartReceive
COpen::StartStress
COpen::StartWaitForEvent
COpen::StopReceive
COpen::StopSend
COpen::UpdateAtmAddress
COpen::VCInfo
COpen::WaitPerformance
COpen::WaitSend
COpen::WaitStress
CPNPPower::QueryStopDriver
CPNPPower::StartDriver
CPNPPower::StopDriver
CPnPPowerMgmt::get_Hibernate
CPnPPowerMgmt::get_PowerStates
CPnPPowerMgmt::get_Standby
CResourceMgr::CreateResMgr
CResourceMgr::DeleteResMgr
CResourceMgr::EnumerateNextModem
CResourceMgr::get_CategoryID
CResourceMgr::get_DialString
CResourceMgr::get_EnumeratedModemCategory
CResourceMgr::get_EnumeratedModemName
CResourceMgr::get_LineDeviceID
CResourceMgr::get_ModemName
CResourceMgr::get_PhoneDeviceID
CResourceMgr::get_TAPIProperties
CResourceMgr::GetNextModem
CResourceMgr::SetupResourceRequest
CResourceMgr::StartModemEnum
CSuppCore::get_CreateBindCtrl
CSuppCore::InitializeServer
CSuppCore::UninitializeServer
CTAPICore::get_CreateStructure
CTAPICore::LineClose
CTAPICore::LineDeallocateCall
CTAPICore::LineDrop
CTAPICore::LineGetAddressCaps
CTAPICore::LineGetAddressID
CTAPICore::LineGetAddressStatus
CTAPICore::LineGetCallInfo
CTAPICore::LineGetCallStatus
CTAPICore::LineGetDevCaps
CTAPICore::LineGetDevConfig
CTAPICore::LineGetLineDevStatus
CTAPICore::LineMakeCall
CTAPICore::LineNegotiateAPIVersion
CTAPICore::LineNegotiateExtVersion
CTAPICore::LineOpen
CTAPICore::LineSecureCall
CTAPICore::LineSendUserUserInfo
CTAPICore::LineSetAppSpecific
CTAPICore::LineSetCallParams
CTAPICore::LineSetDevConfig
CTAPICore::LineSetMediaMode
CTAPICore::LineSetStatusMessages
CTcpIpChecksum::CompareTcpIpCksumObjects
CTcpIpChecksum::GetVariant
CTcpIpLargeSend::CompareTcpIpLargeSendObjects
CTcpIpLargeSend::GetVariant


CAdapter::CreateOpen toc
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

Returns
HRESULT



CAdapter::GetIPGateway toc
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)

Returns
HRESULT

See Also
COpen::SetIPAddr


CAdapter::QueryGuid toc
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)

Returns
HRESULT

See Also
CAdapter::QueryInfo COpen::NdisRequest Cbase::QueryGuidAll


CAdapter::QueryInfo toc
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)

Returns
HRESULT

See Also
COpen::NdisRequest Cbase::QueryGuidAll COpen::NdisRequest2 CAdapter::QueryGuid


Cbase::CreateAdapter toc
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

Returns
HRESULT


Example:
Set oTestCard = oNDTCore.CreateAdapter(oNDInfo.AdapterList(0))


Cbase::CreateFlowspec toc
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

Returns
HRESULT

See Also
COpen::MakeCall

Example:
Set SendFlowSpec = oNDTCore.CreateFlowSpec() Set RecvFlowSpec = oNDTCore.CreateFlowSpec() SendFlowSpec.TokenBucketSize = 32768 SendFlowSpec.ServiceType = GUARANTEED SendFlowSpec.MaxSduSize = 10240


Cbase::CreateIpSecObj toc
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

Returns
HRESULT

See Also
Cbase::ParseOffloadInfo

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.


Cbase::CreateIpSecSAObj toc
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

Returns
HRESULT


Example:
Set IPSecSA = oNDTCore.CreateIPSecSAObj()


Cbase::CreateTcpIpChecksumObj toc
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

Returns
HRESULT

See Also
Cbase::ParseOffloadInfo

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.


Cbase::CreateTcpIpLargeSendObj toc
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

Returns
HRESULT

See Also
Cbase::ParseOffloadInfo

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.


Cbase::GetIPSecCombos toc
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

Returns
HRESULT


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)


Cbase::GetWolPattern toc
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

Returns
HRESULT

See Also
COpen::AddWakePattern

Example:
NextPatternOffset = 0 while (NextPatternOffset <> PatternListSize) StartOffset = NextPatternOffset bResult = oNDTCore.GetWolPattern (PatternList, StartOffset, SupportCardAddr, NdisMedium, Pattern, NextPatternOffset) Loop


Cbase::ParseOffloadInfo toc
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

Returns
HRESULT

See Also
Cbase::CreateTcpIpChecksumObj Cbase::CreateTcpIpLargeSendObj Cbase::CreateIPSecObj

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


Cbase::PrintOidName toc
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

Returns
HRESULT


Example:
oNDTCore.PrintOidName (OID_GEN_INIT_TIME_MS)


Cbase::put_DebugLevel toc
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

Returns
HRESULT



Cbase::QueryGuidAll toc
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

Returns
HRESULT

See Also
CAdapter::QueryInfo COpen::NdisRequest CAdapter::QueryGuid

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


Cbase::RestartPA toc
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

Returns
HRESULT


Example:
bResult = RestartPA () This restarts the PolcyAgent service of local machine


CBindCtrl::Bind toc
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

Returns
HRESULT

See Also
CBindCtrl::UnBind CBindCtrl::GetBindStatus CBindCtrl::ToggleStatus CBindCtrl::GetProtocolInfo

Example:
' This example demonstrates binding of TCP/IP to the specified device. bResult = oBindCtrl.Bind (deviceGUID, "Internet Protocol (TCP/IP)")


CBindCtrl::GetBindStatus toc
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

Returns
HRESULT

See Also
CBindCtrl::Bind CBindCtrl::UnBind CBindCtrl::ToggleStatus CBindCtrl::GetProtocolInfo

Example:
bResult = oBindCtrl.GetBindStatus (deviceGUID, "Internet Protocol (TCP/IP)", lCurrentStatus)


CBindCtrl::GetProtocolInfo toc
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

Returns
HRESULT

See Also
CBindCtrl::Bind CBindCtrl::UnBind CBindCtrl::GetBindStatus CBindCtrl::ToggleStatus

Example:
bResult = oBindCtrl.GetProtocolInfo(nBufferSizeNeeded, nNumProtocols)


CBindCtrl::ToggleStatus toc
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

Returns
HRESULT

See Also
CBindCtrl::Bind CBindCtrl::UnBind CBindCtrl::GetBindStatus CBindCtrl::GetProtocolInfo

Example:
bResult = oBindCtrl.ToggleStatus (deviceGUID)


CBindCtrl::UnBind toc
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

Returns
HRESULT

See Also
CBindCtrl::Bind CBindCtrl::GetBindStatus CBindCtrl::ToggleStatus CBindCtrl::GetProtocolInfo

Example:
' This example demonstrates unbinding of TCP/IP from the specified device bResult = oBindCtrl.UnBind (deviceGUID, "Internet Protocol (TCP/IP)")


CCore::get_CreateTAPI toc
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.




CCore::InitializeServer toc
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


See Also
CCore::UninitializeServer


CCore::UninitializeServer toc
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.


See Also
CCore::InitializeServer


CFileTran::CheckCRC toc
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

Returns
HRESULT


Example:
bResult = oFileTran.CheckCRC .


CFileTran::Cleanup toc
STDMETHODIMP CFileTran::Cleanup()
Description
This method deletes the internal objects created for file transfer.
Returns
HRESULT


Example:
oFileTran.Cleanup .


CFileTran::DataTransfer toc
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

Returns
HRESULT


Example:
oFileTran.DataTransfer 3 'sending and receiving data .


CFileTran::GetTransferResults toc
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.

Returns
HRESULT


Example:
bstrResults = oFileTran.GetTransferResults .


CFileTran::InitComPorts toc
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.

Returns
HRESULT


Example:
oFileTran.InitComPorts nLocalHandle, nRemoteHandle, nTranstype .


CFileTran::SetUpTransfer toc
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

Returns
HRESULT


Example:
oFileTran.SetUpTransfer "oracle.txt" .


CIpSecStats::CompareIpSecStats toc
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

Returns
HRESULT


Example:
bResult = oIpSecStatsObj1.CompareIpSecStats (oIpSecStatsObj2)


CKernelCallsVerifier::GetImportedFunctions toc
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

Returns
HRESULT


Example:
bResult = oKernelCallsVerifier.GetImportedFunctions ("eth100.sys", "HAL.DLL", strFuncList)


CMCTService::IsServerRunning toc
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.

Returns
HRESULT

See Also
CMCTService::StartMCTService CMCTService::StopMCTService

Example:
bResult = oMCTService.IsServerRunning .


CMCTService::StartMCTService toc
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

Returns
HRESULT

See Also
CMCTService::StopMCTService

Example:
oMCTService.StartMCTService "myservermachine","ncacn_ip_tcp" .


CMCTService::StopMCTService toc
STDMETHODIMP CMCTService::StopMCTService()
Description
This method frees TAPI and RPC connections to the remote MCT Server.
Returns
HRESULT

See Also
CMCTService::StartMCTService

Example:
oMCTService.StopMCTService .


CMdmObj::CloseLine toc
STDMETHODIMP CMdmObj::CloseLine()
Description
This method calls TAPI functions lineShutdown  and destroys the internal objects created for implementing the TAPI functionality.
Returns
HRESULT

See Also
CMdmObj::CreateLine


CMdmObj::CloseModem toc
STDMETHODIMP CMdmObj::CloseModem()
Description
This method calls TAPI functions lineClose and phoneClose to close the modem and phone device associated with the modem.
Returns
HRESULT

See Also
CMdmObj::InitModem

Example:
oModem.CloseModem .


CMdmObj::ClosePhoneDevice toc
STDMETHODIMP CMdmObj::ClosePhoneDevice()
Description
This method closes the phone device.
Returns
HRESULT

See Also
CMdmObj::OpenPhoneDevice


CMdmObj::CreateLine toc
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

Returns
HRESULT

See Also
CMdmObj::CloseLine


CMdmObj::DisconnectATMode toc
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
Returns
HRESULT

See Also
CMdmObj::MakePassThroughCall CMdmObj::SendATCommand CMdmObj::ReceiveATResponse

Example:
oModem.DisconnectATMode .


CMdmObj::DropCall toc
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.
Returns
HRESULT

See Also
CMdmObj::MakeCall

Example:
oModem.MakeCall("2342324", oRemoteModem) . . oModem.DropCall .


CMdmObj::get_BlindDial toc
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.

Returns
HRESULT

See Also
CMdmObj::put_BlindDial CMdmObj::MakeBlindCall

Example:
bBlindDial = oModem.BlindDial .


CMdmObj::get_CallSetupTimeout toc
STDMETHODIMP CMdmObj::get_CallSetupTimeout(long *pVal)
Description
This property gets the CallSetupTimeout settings for modem object
Parameters
pVal current value of callsetup timeout

Returns
HRESULT

See Also
CMdmObj::put_CallSetupTimeout

Example:
nCallSetupTimeout = oModem.CallSetupTimeout .


CMdmObj::get_Compression toc
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.

Returns
HRESULT

See Also
CMdmObj::put_Compression

Example:
bCompression = oModem.Compression .


CMdmObj::get_ErrorControl toc
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.

Returns
HRESULT

See Also
CMdmObj::put_ErrorControl

Example:
bErrorControl = oModem.ErrorControl .


CMdmObj::get_FlowControlHard toc
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.

Returns
HRESULT

See Also
CMdmObj::put_FlowControlHard

Example:
bFlowControlHardl = oModem.FlowControlHard .


CMdmObj::get_FlowControlSoft toc
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.

Returns
HRESULT

See Also
CMdmObj::put_FlowControlSoft

Example:
bFlowControlSoftl = oModem.FlowControlSoft .


CMdmObj::get_ForcedErrorControl toc
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.

Returns
HRESULT

See Also
CMdmObj::put_ForcedErrorControl

Example:
bForcedErrorControl = oModem.ForcedErrorControl .


CMdmObj::get_InactivityTimer toc
STDMETHODIMP CMdmObj::get_InactivityTimer(long *pVal)
Description
This property gets the InactivityTimer settings for modem object
Parameters
pVal current value of inactivity timeout

Returns
HRESULT

See Also
CMdmObj::put_InactivityTimer

Example:
nInactivityTimer = oModem.InactivityTimer .


CMdmObj::get_phoneNum toc
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

Returns
HRESULT

See Also
CMdmObj::put_phoneNum

Example:
strPhoneNum = oModem.phoneNum .


CMdmObj::get_SpeakerMode toc
STDMETHODIMP CMdmObj::get_SpeakerMode(long *pVal)
Description
This property gets the SpeakerMode settings for modem object
Parameters
pVal current value of speaker mode

Returns
HRESULT

See Also
CMdmObj::put_SpeakerMode

Example:
nSpeakerMode = oModem.SpeakerMode .


CMdmObj::get_SpeakerVolume toc
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)

Returns
HRESULT

See Also
CMdmObj::put_SpeakerVolume

Example:
nSpeakerVolume = oModem.SpeakerVolume .


CMdmObj::get_SpeedAdjust toc
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.

Returns
HRESULT

See Also
CMdmObj::put_SpeedAdjust

Example:
bSpeedAdjust = oModem.SpeedAdjust .


CMdmObj::get_VoicePhoneNum toc
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

Returns
HRESULT

See Also
CMdmObj::put_VoicePhoneNum

Example:
strVoicePhoneNum = oModem.VoicePhoneNum .


CMdmObj::GetModemList toc
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

Returns
HRESULT


Example:
oModem.GetModemList(arrNames, arrLineIDs) .


CMdmObj::GetNegotiatedSpeed toc
STDMETHODIMP CMdmObj::GetNegotiatedSpeed(long *pSpeed)
Description
This method gets the negotiated speed of currently completed connection
Parameters
pSpeed speed of connection in bits/sec

Returns
HRESULT


Example:
nSpeed = oModem.GetNegotiatedSpeed .


CMdmObj::InitModem toc
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

Returns
HRESULT

See Also
CMdmObj::CloseModem

Example:
LineDeviceID = 1 oModem.InitModem(LineDeviceID) .


CMdmObj::MakeBlindCall toc
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

Returns
HRESULT

See Also
CMdmObj::put_BlindDial CMdmObj::get_BlindDial

Example:
oModem.MakeBlindCall("234231") .


CMdmObj::MakeCall toc
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

Returns
HRESULT

See Also
CMdmObj::DropCall

Example:
oModem.MakeCall("2342324", oRemoteModem) . . oModem.DropCall .


CMdmObj::MakePassThroughCall toc
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
Returns
HRESULT

See Also
CMdmObj::SendATCommand CMdmObj::ReceiveATResponse CMdmObj::DisconnectATMode

Example:
oModem.MakePassThroughCall .


CMdmObj::MakeVoiceCall toc
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

Returns
HRESULT

See Also
CMdmObj::DropCall

Example:
oModem.MakeVoiceCall( oModem.VoicePhoneNum ) .


CMdmObj::OpenPhoneDevice toc
STDMETHODIMP CMdmObj::OpenPhoneDevice()
Description
This method opens a phone device for a modem if the modem supports phone capabilities.
Returns
HRESULT

See Also
CMdmObj::ClosePhoneDevice


CMdmObj::put_BlindDial toc
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

Returns
HRESULT

See Also
CMdmObj::get_BlindDial

Example:
oModem.BlindDial 1 'setting BlindDial ON .


CMdmObj::put_CallSetupTimeout toc
STDMETHODIMP CMdmObj::put_CallSetupTimeout(long newVal)
Description
This property sets the CallSetupTimeout settings for modem object
Parameters
newVal new value of call setup timeout

Returns
HRESULT

See Also
CMdmObj::get_CallSetupTimeout

Example:
oModem.CallSetupTimeout 10 'setting call setup timeout to 10 seconds .


CMdmObj::put_Compression toc
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

Returns
HRESULT

See Also
CMdmObj::get_Compression

Example:
oModem.Compression 1 'setting compression ON .


CMdmObj::put_ErrorControl toc
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

Returns
HRESULT

See Also
CMdmObj::get_ErrorControl

Example:
oModem.ErrorControl 1 'setting ErrorControl ON .


CMdmObj::put_FlowControlHard toc
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

Returns
HRESULT

See Also
CMdmObj::get_FlowControlHard

Example:
oModem.FlowControlHard 1 'setting FlowControlHard ON .


CMdmObj::put_FlowControlSoft toc
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

Returns
HRESULT

See Also
CMdmObj::get_FlowControlSoft

Example:
oModem.FlowControlSoft 1 'setting FlowControlSoft ON .


CMdmObj::put_ForcedErrorControl toc
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

Returns
HRESULT

See Also
CMdmObj::get_ForcedErrorControl

Example:
oModem.ForcedErrorControl 1 'setting ForcedErrorControl ON .


CMdmObj::put_InactivityTimer toc
STDMETHODIMP CMdmObj::put_InactivityTimer(long newVal)
Description
This property sets the InactivityTimer settings for modem object
Parameters
newVal new value of inactivity timeout

Returns
HRESULT

See Also
CMdmObj::get_InactivityTimer

Example:
oModem.InactivityTimer 10 'setting Inactivity timeout to 10 seconds .


CMdmObj::put_phoneNum toc
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

Returns
HRESULT

See Also
CMdmObj::get_phoneNum

Example:
oModem.phoneNum "3287412" .


CMdmObj::put_SpeakerMode toc
STDMETHODIMP CMdmObj::put_SpeakerMode(long newVal)
Description
This property sets the SpeakerMode settings for modem object
Parameters
newVal new value of speaker mode

Returns
HRESULT

See Also
CMdmObj::get_SpeakerMode

Example:
oModem.SpeakerMode spkModeDial 'setting speaker mode to dial only .


CMdmObj::put_SpeakerVolume toc
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)

Returns
HRESULT

See Also
CMdmObj::get_SpeakerVolume

Example:
oModem.SpeakerVolume spkVolHigh 'setting speaker volume to high .


CMdmObj::put_SpeedAdjust toc
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

Returns
HRESULT

See Also
CMdmObj::get_SpeedAdjust

Example:
oModem.SpeedAdjust 1 'setting SpeedAdjust ON .


CMdmObj::put_VoicePhoneNum toc
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

Returns
HRESULT

See Also
CMdmObj::get_VoicePhoneNum

Example:
oModem.VoicePhoneNum "3242321" .


CMdmObj::ReceiveATResponse toc
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

Returns
HRESULT

See Also
CMdmObj::MakePassThroughCall CMdmObj::SendATCommand CMdmObj::DisconnectATMode

Example:
strResponse = oModem.ReceiveATResponse .


CMdmObj::SendATCommand toc
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?

Returns
HRESULT

See Also
CMdmObj::MakePassThroughCall CMdmObj::ReceiveATResponse CMdmObj::DisconnectATMode

Example:
oModem.SendATCommand "AT+GCI?" 'command to find current country selected by modem .


COpen::AddParty toc
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

Returns
HRESULT

See Also
COpen::MakePartyCall COpen::DropParty COpen::ClosePartyCall

Example:
Set Party_Two = VC_Ptr.AddParty(NetPrefixOne, NetAddrOne, SapValue)


COpen::AddSA toc
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

Returns
HRESULT

See Also
COpen::DeleteSA CBase::CreateIPSecSAObj

Example:
bResult = ClientOpen.AddSA (IPSecSA, hSAObj)


COpen::AddWakePattern toc
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

Returns
HRESULT

See Also
COpen::RemoveWakePattern COpen::SetWakeupType

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&)


COpen::AfCloseSap toc
STDMETHODIMP COpen::AfCloseSap()
Description
This function shuts down a SAP on an address family.This function is specific to CoNdis miniports.
Returns
HRESULT

See Also
COpen::AfOpenSap

Example:
Set SapPointer = OpenOne.AfOpenSap(SAP_CONST_VAL) . . SapPointer.AfCloseSap() . .


COpen::AfCreateVc toc
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

Returns
HRESULT

See Also
COpen::AfDeleteVc

Example:
Set VCPointer = OpenOne.AfCreateVc() . . VCPointer.CoSend(PacketSize,PacketsPerBurst, BurstsToSend, FALSE) . .


COpen::AfDeleteVc toc
STDMETHODIMP COpen::AfDeleteVc()
Description
This function closes a VC on an address family. This function is specific to CoNdis miniports.
Returns
HRESULT

See Also
COpen::AfCreateVc

Example:
Set VCPointer = OpenOne.AfCreateVc() . . VCPointer.AfDeleteVc() . .


COpen::AfOpenSap toc
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

Returns
HRESULT

See Also
COpen::AfCloseSap

Example:
Set SapPointer = OpenOne.AfOpenSap(SAP_CONST_VAL) . . SapPointer.StartReceive . .


COpen::Cleanup toc
void COpen::Cleanup()
Description
This function provides a convenient way to close all opens.  
This is called internally when scripts end.
Returns
VOID



COpen::CloseAddressFamily toc
STDMETHODIMP COpen::CloseAddressFamily()
Description
This function releases the association between the ndistest driver and the call manager. 
This function is specific to CoNdis miniports.
Returns
HRESULT

See Also
COpen::OpenAddressFamily


COpen::CloseCall toc
STDMETHODIMP COpen::CloseCall()
Description
This function shuts down a call on VC. This function is specific to CoNdis miniports.
Returns
HRESULT

See Also
COpen::MakeCall

Example:
Set VC_Array(0) = OpenOne.AfCreateVc() bResult = VC_Array(0).MakeCall(NetPrefixOne, NetAddrOne, 135, SendFlowSpec, RecvFlowSpec) VC_Array(0).CloseCall()


COpen::ClosePartyCall toc
STDMETHODIMP COpen::ClosePartyCall()
Description
This function shuts down a party call on VC. This function is specific to CoNdis miniports.
Returns
HRESULT

See Also
COpen::MakePartyCall

Example:
Set Party_One = VC_Ptr.MakePartyCall(NetPrefix, NetAddr, SapValue, SendFlowSpec) Party_One.ClosePartyCall()


COpen::CoSend toc
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)

Returns
HRESULT


Example:
bResult = VC_Ptr.CoSend(PacketSize, PacketsPerBurst, BurstsToSend, FALSE)


COpen::DeleteSA toc
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

Returns
HRESULT

See Also
COpen::AddSA

Example:
bResult = ClientOpen.AddSA (IPSecSA, hSAObj)


COpen::DropParty toc
STDMETHODIMP COpen::DropParty()
Description
This function drops a leaf to a party call. This function is specific to CoNdis miniports
Returns
HRESULT

See Also
COpen::AddParty COpen::MakePartyCall COpen::ClosePartyCall

Example:
Set Party_Two = VC_Ptr.AddParty(NetPrefixOne, NetAddrOne, SapValue) Party_Two.DropParty()


COpen::EndWaitForEvent toc
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

Returns
HRESULT

See Also
COpen::StartWaitForEvent


COpen::Get1394NodeId toc
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

Returns
HRESULT

See Also
COpen::VCInfo

Example:
bResult = oCardOpen.Get1394NodeId(vVCInfo)


COpen::Get1394VCInfo toc
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

Returns
HRESULT

See Also
COpen::VCInfo

Example:
VCPtr.Get1394VCInfo(vVCInfo)


COpen::GetAtmAddress toc
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)

Returns
HRESULT

See Also
COpen::GetNumAtmAddresses COpen::UpdateAtmAddress

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)


COpen::GetAtmUniVersion toc
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

Returns
HRESULT



COpen::GetEvents toc
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

Returns
HRESULT


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


COpen::GetIPCaptureResults toc
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

Returns
HRESULT

See Also
COpen::SendIP COpen::StartIpCapture

Example:
bResult = ClientOpen.GetIPCaptureResults (lPacketsReceived, lBytesReceived, lCksumPassed, lCksumFailed)


COpen::GetNumAtmAddresses toc
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

Returns
HRESULT


Example:
NumOfAtmAddr = OpenOne.GetNumAtmAddresses()


COpen::GetOffloadPktInfo toc
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

Returns
HRESULT

See Also
COpen::SetOffloadPktInfo

Example:
bResult = ClientOpen.GetOffloadPktInfo (MSS_RX, lBytesToExpect, lPacketsToExpect)


COpen::GetPerformanceResults toc
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

Returns
HRESULT

See Also
COpen::StartPerformance COpen::WaitPerformance

Example:
bResult = OpenOne.GetPerformanceResults(lDuration, lBytesSent, lBytesReceived) If (Not bResult) Then call oLog.Failed ("Unable to get performance results.", 88888) End If


COpen::GetReceiveResults toc
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

Returns
HRESULT


Example:
bResult = ClientOpen.GetReceiveResults (lPacketsSent, lPacketsResent)


COpen::GetSendResults toc
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

Returns
HRESULT

See Also
COpen::Send COpen::SendPackets COpen::SendIP

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


COpen::GetStressResults toc
STDMETHODIMP COpen::GetStressResults(VARIANT_BOOL *pbResult)
Description
This command gets the test results of a completed stress test.
Parameters
pbResult True if successful

Returns
HRESULT

See Also
COpen::StartStress COpen::WaitStress

Example:


COpen::IpSecClose toc
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

Returns
HRESULT

See Also
COpen::IpSecOpen

Example:
bResult = ClientOpen.IpSecClose (hIpSecConnection)


COpen::IpSecOpen toc
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

Returns
HRESULT

See Also
COpen::IpSecClose

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)


COpen::MakeCall toc
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)

Returns
HRESULT

See Also
COpen::CloseCall

Example:
Set VC_Array(0) = OpenOne.AfCreateVc() bResult = VC_Array(0).MakeCall(NetPrefixOne, NetAddrOne, 135, SendFlowSpec, RecvFlowSpec)


COpen::MakeCall_1394 toc
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

Returns
HRESULT


Example:
bResult = oLocalSendVC.MakeCall_1394(vLocalSendVCInfo, lCoMediaFlagsSend, oSendFlowSpec, oRecvFlowSpec)


COpen::MakePartyCall toc
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

Returns
HRESULT

See Also
COpen::AddParty COpen::DropParty COpen::ClosePartyCall

Example:
Set Party_One = VC_Ptr.MakePartyCall(NetPrefix, NetAddr, SapValue, SendFlowSpec)


COpen::NdisClose toc
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

Returns
HRESULT

See Also
COpen::NdisOpen

Example:
bResult = ClientOpen.NdisClose ()


COpen::NdisOpen toc
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

Returns
HRESULT

See Also
COpen::NdisClose

Example:
bResult = ClientOpen.NdisOpen (NDISMEDIUM802_3, False)


COpen::NdisRequest toc
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)

Returns
HRESULT

See Also
Cbase::QueryGuidAll COpen::NdisRequest2 CAdapter::QueryGuid CAdapter::QueryInfo

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


COpen::NdisRequest2 toc
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.

Returns
HRESULT

See Also
COpen::NdisRequest Cbase::get_CreateStructureObject

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


COpen::NdisReset toc
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
Returns
HRESULT


Example:
oLog.Variation("Reset") OpenOne.NdisReset()


COpen::OpenAddressFamily toc
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)

Returns
HRESULT

See Also
COpen::CloseAddressFamily

Example:
bResult = OpenOne.OpenAddressFamily(ADDRESS_FAMILY_Q2931, 3, 1)


COpen::RemoveWakePattern toc
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

Returns
HRESULT

See Also
COpen::AddWakePattern COpen::SetWakeupType

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&)


COpen::Reset1394Bus toc
STDMETHODIMP COpen::Reset1394Bus(VARIANT_BOOL *pbResult)
Description
This function initiates a 1394 bus reset
Parameters
pbResult Returns true if succesful else return false

Returns
HRESULT



COpen::Send toc
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

Returns
HRESULT

See Also
COpen::SendPackets

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)


COpen::SendIP toc
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

Returns
HRESULT

See Also
COpen::WaitSend COpen::GetSendResults

Example:
bResult = ClientOpen.SendIP(ServerAddress, V4, TCP, 50, 512, TCP_OPTIONS)


COpen::SendIPSec toc
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

Returns
HRESULT

See Also
COpen::SendIP

Example:
bResult = ClientOpen.SendIPSec (DestAddress, hLocalIPSecConn, V4, UDP, 50, 512, IP_OPTION_ROUTERALERT)


COpen::SendPackets toc
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

Returns
HRESULT

See Also
COpen::Send

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)


COpen::SetIPAddr toc
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

Returns
HRESULT

See Also
CAdapter::GetIPGateway

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)


COpen::SetIpDefaults toc
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

Returns
HRESULT


Example:
bResult = ClientOpen.SetIPDefaults (CByte (0)) ' Compute Self checksum Or DefaultOffloadHdr (0) = ENCAPSULATION DefaultOffloadHdr (1) = LLC_SNAP_ROUTED bResult = ClientOpen.SetIPDefaults (DefaultOffloadHdr)


COpen::SetLocalId toc
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

Returns
HRESULT

See Also
COpen::SetRemoteId COpen::SetLocalId

Example:
arrSuppOpen(0).SetRemoteId(lTestId) arrSuppOpen(0).SetLocalId(lTestId) OpenTest.SetReceiveOption(RECEIVE_DEFAULT)


COpen::SetOffloadPktInfo toc
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

Returns
HRESULT

See Also
COpen::SetOffloadTask COpen::GetOffloadPktInfo

Example:
lMss = 5120 bResult = OpenOne.SetOffloadPktInfo (MSS_TX, lMss)


COpen::SetOffloadTask toc
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

Returns
HRESULT

See Also
CBase::CreateTcpIpChecksumObj CBase::CreateTcpIpLargeSendObj COpen::SetOffloadPktInfo

Example:
bResult = ClientOpen.SetOffloadTask(0, CksumOffloadTask, LargeSendOffloadTask)


COpen::SetReceiveOption toc
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.

Returns
HRESULT


Example:
ClientOpen.SetReceiveOption (RECEIVE_DEFAULT Or RECEIVE_TRANSFER)


COpen::SetRemoteId toc
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

Returns
HRESULT

See Also
COpen::SetLocalId

Example:
arrSuppOpen(0).SetRemoteId(lTestId) arrSuppOpen(0).SetLocalId(lTestId) OpenTest.SetReceiveOption(RECEIVE_DEFAULT)


COpen::SetWakeupType toc
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

Returns
HRESULT

See Also
COpen::AddWakePattern COpen::RemoveWakePattern

Example:
bResult = ClientOpen.SetWakeupType(WAKE_UP_PATTERN_MATCH)


COpen::StartIpCapture toc
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

Returns
HRESULT

See Also
COpen::GetIpCaptureResults

Example:
bResult = ClientOpen.StartIpCapture()


COpen::StartIPSecCapture toc
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

Returns
HRESULT


Example:
bResult = ClientOpen.StartIpSecCapture()


COpen::StartPerformance toc
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

Returns
HRESULT

See Also
COpen::GetPerformanceResults COpen::WaitPerformance

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


COpen::StartReceive toc
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

Returns
HRESULT

See Also
COpen::StopReceive

Example:
bResult = ClientOpen.StartReceive


COpen::StartStress toc
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

Returns
HRESULT

See Also
COpen::WaitStress COpen::GetStressResults

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


COpen::StartWaitForEvent toc
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

Returns
HRESULT

See Also
COpen::EndWaitForEvent

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


COpen::StopReceive toc
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

Returns
HRESULT

See Also
COpen::StartReceive

Example:
bResult = ClientOpen.StopReceive


COpen::StopSend toc
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

Returns
HRESULT

See Also
COpen::Send COpen::SendPackets

Example:
bResult = ClientOpen.Send


COpen::UpdateAtmAddress toc
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)

Returns
HRESULT

See Also
COpen::GetAtmAddress

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)


COpen::VCInfo toc
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

Returns
HRESULT


Example:
bResult = oTestOpen.VCInfo(vVCInfo, NIC1394_FIFO) bResult = oTestOpen.VCInfo(vVCInfo, NIC1394_Channel, BROADCAST_CHAN)


COpen::WaitPerformance toc
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

Returns
HRESULT

See Also
COpen::StartPerformance COpen::GetPerformanceResults

Example:
bResult = OpenOne.WaitPerformance() If (Not bResult) Then call oLog.Failed ("Unable to wait for performance tests to complete.", 88888) End If


COpen::WaitSend toc
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

Returns
HRESULT

See Also
COpen::StopSend COpen::Send COpen::SendPackets

Example:
bResult = ClientOpen.Send (SupportAddress, 300, 100, 0, Null) If (bResult) Then bResult = ClientOpen.WaitSend . . . End If


COpen::WaitStress toc
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

Returns
HRESULT

See Also
COpen::StartStress COpen::GetStressResults

Example:


CPNPPower::QueryStopDriver toc
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

Returns
HRESULT

See Also
CPnPPower::StopDriver CPnPPower::StartDriver


CPNPPower::StartDriver toc
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

Returns
HRESULT

See Also
CPnPPower::StopDriver CPnPPower::QueryStopDriver


CPNPPower::StopDriver toc
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

Returns
HRESULT

See Also
CPnPPower::StartDriver CPnPPower::QueryStopDriver


CPnPPowerMgmt::get_Hibernate toc
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

Returns
HRESULT

See Also
CPnPPowerMgmt::get_Standby CPnPPowerMgmt::get_PowerStates

Example:
lTimeSlept = oPnPPower.Hibernate (10, lRetValue)


CPnPPowerMgmt::get_PowerStates toc
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

Returns
HRESULT

See Also
CPnPPowerMgmt::get_Standby CPnPPowerMgmt::get_Hibernate


CPnPPowerMgmt::get_Standby toc
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

Returns
HRESULT

See Also
CPnPPowerMgmt::get_Hibernate CPnPPowerMgmt::get_PowerStates

Example:
oPnPPower.Standby (10, lRetValue, lTimeSlept)


CResourceMgr::CreateResMgr toc
STDMETHODIMP CResourceMgr::CreateResMgr()
Description
This method initializes the Resource Manager, which provides methods to access Modem Resouces on MCT Server
Returns
HRESULT

See Also
CResourceMgr::DeleteResMgr

Example:
oResMgr.CreateResMgr .


CResourceMgr::DeleteResMgr toc
STDMETHODIMP CResourceMgr::DeleteResMgr()
Description
This method frees the internal variables of Resource Manager.
Returns
HRESULT

See Also
CResourceMgr::CreateResMgr

Example:
oResMgr.DeleteResMgr .


CResourceMgr::EnumerateNextModem toc
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.
Returns
HRESULT

See Also
CResourceMgr::StartModemEnum CResourceMgr::EnumeratedModemName CResourceMgr::EnumeratedModemCategory

Example:
oResMgr.StartModemEnum(RequestByLineID) . . oResMgr.EnumerateNextModem .


CResourceMgr::get_CategoryID toc
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

Returns
HRESULT


Example:
nCategory = oResMgr.CategoryID .


CResourceMgr::get_DialString toc
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

Returns
HRESULT


Example:
RemotePhoneNum = oResMgr.DialString .


CResourceMgr::get_EnumeratedModemCategory toc
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

Returns
HRESULT

See Also
CResourceMgr::EnumerateNextModem

Example:
nEnumCategory = oResMgr.EnumeratedModemCategory .


CResourceMgr::get_EnumeratedModemName toc
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

Returns
HRESULT

See Also
CResourceMgr::EnumerateNextModem

Example:
strEnumName = oResMgr.EnumeratedModemName .


CResourceMgr::get_LineDeviceID toc
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

Returns
HRESULT


Example:
nRemoteLine = oResMgr.LineDeviceID .


CResourceMgr::get_ModemName toc
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

Returns
HRESULT


Example:
strName = oResMgr.ModemName .


CResourceMgr::get_PhoneDeviceID toc
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

Returns
HRESULT


Example:
nRemotePhone = oResMgr.PhoneDeviceID .


CResourceMgr::get_TAPIProperties toc
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

Returns
HRESULT


Example:
nProperty = oResMgr.TAPIProperties .


CResourceMgr::GetNextModem toc
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.

Returns
HRESULT

See Also
CResourceMgr::SetupResourceRequest

Example:
oResMgr.GetNextModem 24000 .


CResourceMgr::SetupResourceRequest toc
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.

Returns
HRESULT

See Also
CResourceMgr::GetNextModem

Example:
oResMgr.SetupResourceRequest RequestByLineID .


CResourceMgr::StartModemEnum toc
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.

Returns
HRESULT

See Also
CResourceMgr::EnumerateNextModem

Example:
oResMgr.StartModemEnum(RequestByLineID) .


CSuppCore::get_CreateBindCtrl toc
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

Returns
HRESULT

See Also
CSuppCore::InitializeServer CSuppCore::UninitializeServer CBindCtrl::Bind CBindCtrl::UnBind

Example:
Set Adapter = oNDInfo.AdapterList (0) Set oBindCtrl = oSuppCore.CreateBindCtrl (Adapter.ConnectionID)


CSuppCore::InitializeServer toc
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

Returns
HRESULT

See Also
CSuppCore::UninitializeServer CSuppCore::get_CreateBindCtrl CBindCtrl::Bind CBindCtrl::UnBind

Example:
Set Adapter = oNDInfo.AdapterList (2) If (Adapter.ConnectionID <> 0) Then bResult = oSuppCore.InitializeServer (Adapter.ConnectionID) End If


CSuppCore::UninitializeServer toc
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

Returns
HRESULT

See Also
CSuppCore::InitializeServer CSuppCore::get_CreateBindCtrl CBindCtrl::Bind CBindCtrl::UnBind

Example:
Set Adapter = oNDInfo.AdapterList (2) If (Adapter.ConnectionID <> 0) Then bResult = oSuppCore.UninitializeServer (Adapter.ConnectionID) End If


CTAPICore::get_CreateStructure toc
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.


See Also
CTAPICore::LineMakeCall


CTAPICore::LineClose toc
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.


See Also
CTAPICore::LineOpen


CTAPICore::LineDeallocateCall toc
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.


See Also
CTAPICore::LineDrop


CTAPICore::LineDrop toc
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.




CTAPICore::LineGetAddressCaps toc
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.


See Also
CTAPICore::get_CreateStructure CTAPICore::LineNegotiateAPIVersion


CTAPICore::LineGetAddressID toc
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.


See Also
CTAPICore::LineMakeCall


CTAPICore::LineGetAddressStatus toc
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.


See Also
CTAPICore::get_CreateStructure


CTAPICore::LineGetCallInfo toc
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.


See Also
CTAPICore::get_CreateStructure


CTAPICore::LineGetCallStatus toc
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.


See Also
CTAPICore::LineGetCallInfo


CTAPICore::LineGetDevCaps toc
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.




CTAPICore::LineGetDevConfig toc
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.


See Also
CTAPICore::LineSetDevConfig


CTAPICore::LineGetLineDevStatus toc
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.


See Also
CTAPICore::get_CreateStructure


CTAPICore::LineMakeCall toc
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.


See Also
CTAPICore::LineDrop CTAPICore::LineDeallocateCall CTAPICore::get_CreateStructure


CTAPICore::LineNegotiateAPIVersion toc
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.




CTAPICore::LineNegotiateExtVersion toc
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.


See Also
CTAPICore::LineNegotiateAPIVersion


CTAPICore::LineOpen toc
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.


See Also
CTAPICore::LineClose


CTAPICore::LineSecureCall toc
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.


See Also
CTAPICore::LineMakeCall


CTAPICore::LineSendUserUserInfo toc
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.




CTAPICore::LineSetAppSpecific toc
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.




CTAPICore::LineSetCallParams toc
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.




CTAPICore::LineSetDevConfig toc
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.


See Also
CTAPICore::LineGetDevConfig


CTAPICore::LineSetMediaMode toc
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.




CTAPICore::LineSetStatusMessages toc
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.




CTcpIpChecksum::CompareTcpIpCksumObjects toc
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

Returns
HRESULT


Example:
Result = oTcpIpCksumObj1.CompareTcpIpCksumObjects (oTcpIpCksumObj2)


CTcpIpChecksum::GetVariant toc
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

Returns
HRESULT

See Also
CTcpIpLargeSend::GetVariant

Example:
bResult = oTcpIpCksumObj.GetVariant() ' Note: The oTcpIpCksumObj becomes a variant of itself.


CTcpIpLargeSend::CompareTcpIpLargeSendObjects toc
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

Returns
HRESULT


Example:
bResult = oTcpIpLargeSendObj1.CompareTcpIpLargeSendObjects (oTcpIpLargeSendObj2)


CTcpIpLargeSend::GetVariant toc
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

Returns
HRESULT

See Also
CTcpIpChecksum::GetVariant

Example:
bResult = oTcpIpLargeSendObj.GetVariant() ' Note: The oTcpIpLargeSendObj changes to a variant of itself.