Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TAPI 3.0

Status
Not open for further replies.

leaf

Programmer
Mar 9, 2000
32
0
0
US
I am having a problem with some code. I need to convert this into c# code. The pointer to a pointer is killing me. I need to know how to take this MSDN help and convert it into usable code.

HRESULT GetID(
BSTR pDeviceClass,
DWORD *pdwSize,
BYTE **ppDeviceID
);

This is how far I got -

ITLegacyCallMediaControl legacyCall;
legacyCall(ITLegacyCallMediaControl)gobjCall;

uint pdwSize;
int *DeviceID;
IntPtr *ppDeviceID = (IntPtr)DeviceID;

try
{
legacyCall.GetID("comm/datamodem", out
pdwSize,ppDeviceID);
}
catch(Exception es)
{
button1.Text = es.Message;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top