G
Guest
Hi!
I have the following problem:
When i invoke lineGetDevCaps i receive always a STRUCTURETOOSMALL error,
this is my code:
LINEDEVCAPSS status = new LINEDEVCAPSS();
status.dwTotalSize = 1024;
int InitSize = Marshal.SizeOf(status);
int dwVersion = 131072;
IntPtr pIP = MarshalEx.AllocHGlobal(InitSize);
Marshal.StructureToPtr(status, pIP, false);
ret = NativeTapi.lineGetDevCaps(tapi.hLineApp, 0, dwVersion, 0, pIP);
---> ret return exception
Tapi is already and correctly initialized (i have used Alex tapi wrapper)
thanks in advance!
I have the following problem:
When i invoke lineGetDevCaps i receive always a STRUCTURETOOSMALL error,
this is my code:
LINEDEVCAPSS status = new LINEDEVCAPSS();
status.dwTotalSize = 1024;
int InitSize = Marshal.SizeOf(status);
int dwVersion = 131072;
IntPtr pIP = MarshalEx.AllocHGlobal(InitSize);
Marshal.StructureToPtr(status, pIP, false);
ret = NativeTapi.lineGetDevCaps(tapi.hLineApp, 0, dwVersion, 0, pIP);
---> ret return exception
Tapi is already and correctly initialized (i have used Alex tapi wrapper)
thanks in advance!