D
Danyel Meyer - dialog-it GmbH
Hallo...
I´ve got quite confused while trying to P/Invoke TAPI´s lineGetDeviceCaps. I
find it very difficult to marshal the LINEDEVCAPS-structure, which is
defined as:
--8<--
typedef struct linedevcaps_tag
{
DWORD ... [many many DWORDs]
} LINEDEVCAPS, FAR *LPLINEDEVCAPS;
-->8--
As far as I understand it, I have to use Integers for the DWORD-values. What
I don´t understand is, how can I e.g. get the lineName from this structure,
when there are only integers in it? Furthermore, what does "FAR" in the type
definition mean (I´m not quite familiar with C)?
How do I have to imagine what this structure looks like ans how it´s values
are stored?
Plaes, help before my head explodes ...I just don´t get what happens
there...
--
Danyel Meyer
-------------------------------------------
dialog-it GmbH
Röllinghäuser Strasse 55a
31061 Alfeld/Leine
Tel +49 (0) 5181 900 814
Fax +49 (0) 5181 900 815
E-Mail danyel.meyer <at> dialog-it.de
I´ve got quite confused while trying to P/Invoke TAPI´s lineGetDeviceCaps. I
find it very difficult to marshal the LINEDEVCAPS-structure, which is
defined as:
--8<--
typedef struct linedevcaps_tag
{
DWORD ... [many many DWORDs]
} LINEDEVCAPS, FAR *LPLINEDEVCAPS;
-->8--
As far as I understand it, I have to use Integers for the DWORD-values. What
I don´t understand is, how can I e.g. get the lineName from this structure,
when there are only integers in it? Furthermore, what does "FAR" in the type
definition mean (I´m not quite familiar with C)?
How do I have to imagine what this structure looks like ans how it´s values
are stored?
Plaes, help before my head explodes ...I just don´t get what happens
there...
--
Danyel Meyer
-------------------------------------------
dialog-it GmbH
Röllinghäuser Strasse 55a
31061 Alfeld/Leine
Tel +49 (0) 5181 900 814
Fax +49 (0) 5181 900 815
E-Mail danyel.meyer <at> dialog-it.de