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;
}
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;
}