N
nicolasr
Hi,
I need to PInvoke the ExtCreateRegion API.
How do I declare the structures used by it and
the function itself in C#?
The original declarations are:
typedef struct _RGNDATAHEADER
{
DWORD dwSize;
DWORD iType;
DWORD nCount;
DWORD nRgnSize;
RECT rcBound;
} RGNDATAHEADER;
typedef struct _RGNDATA
{
RGNDATAHEADER rdh;
char Buffer[1];
} RGNDATA;
//I don't need lpXform so I assume I could
//declare it as pointer or int and always pass null?
HRGN ExtCreateRegion(
CONST XFORM *lpXform,
DWORD nCount,
CONST RGNDATA *lpRgnData
);
Somehow my main problem seems to be
the char Buffer[1] element in RGNDATA.
thanks for any help,
Nick
I need to PInvoke the ExtCreateRegion API.
How do I declare the structures used by it and
the function itself in C#?
The original declarations are:
typedef struct _RGNDATAHEADER
{
DWORD dwSize;
DWORD iType;
DWORD nCount;
DWORD nRgnSize;
RECT rcBound;
} RGNDATAHEADER;
typedef struct _RGNDATA
{
RGNDATAHEADER rdh;
char Buffer[1];
} RGNDATA;
//I don't need lpXform so I assume I could
//declare it as pointer or int and always pass null?
HRGN ExtCreateRegion(
CONST XFORM *lpXform,
DWORD nCount,
CONST RGNDATA *lpRgnData
);
Somehow my main problem seems to be
the char Buffer[1] element in RGNDATA.
thanks for any help,
Nick