C# Interop , How to use this DllImport code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TamerBoz
    New Member
    • Mar 2014
    • 1

    C# Interop , How to use this DllImport code

    I have this c# wrapper code:
    Code:
     /// extern TSK_IMG_INFO *tsk_img_open(int,const TSK_TCHAR * const images[], TSK_IMG_TYPE_ENUM, unsigned int a_ssize);
    
    [DllImport(NativeLibrary, CallingConvention = CallingConvention.Cdecl)]
            internal static extern DiskImageHandle tsk_img_open(int imageCount, byte[] image, ImageType imageType, uint sectorSize);
    Is there anybody who could tell me how the use this code in C#. The part I don't know how to call from C# is " TSK_TCHAR * const images[] ".

    More info about this function on: http://www.sleuthkit.o rg/sleuthkit/docs/api-docs/group__imglib.h tml
Working...