Marshal, MarshalAs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 41trut5r
    New Member
    • May 2009
    • 1

    Marshal, MarshalAs

    Hi all,

    I have been struggling with an API call from C# now for at least 8 hours, and I need some assistance of what is happening - I do not need code examples, just an understanding of what is happening...

    Code:
    long STDCALL DT_GetInfo(U32 deviceHandle, enum eITEMType ITEMType, void *pITEMS)
    and the parameters are as follows:

    Code:
    U32 hDev
       Item handle
    enum eITEMype ITEMType
       UI_DATASTATE 
    void *pITEMS
       Pointer to the user interface structure buffer (provided by the application)
    and the enum parameter number 2 is one enumeration of items using another enumerations of each items current state...

    Now my problem is with the enum and void pointer, on how to Marshal these data correctly... Actually I just need to know what the function does and how I will implement it in C#.

    Thank you, any advice or insight will be appreciated.
Working...