advanced? marshaling
From: jeroen (postmaster_at_localhost)
Date: 03/27/04
- Next message: Jeff: "Detecting a Listview scroll in VB.Net"
- Previous message: Tim Wilson: "Re: how to create a DLL file"
- Next in thread: Geoff Schwab [MSFT]: "Re: advanced? marshaling"
- Reply: Geoff Schwab [MSFT]: "Re: advanced? marshaling"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 27 Mar 2004 19:32:58 +0100
Question,
I spend this day in trying to convert the following structures to c# for use
in a p/invoke but i'm keep getting a system.notsupportedexception which
means that there is something wrong with my c# code. Expecially the static
TCHAR array gives me a headache, frankly i'm not sure how to do it in c#.
Anybody got an idea ?
thanks in advance Jeroen
typedef struct _CONNMGR_DESTINATION_INFO {
GUID guid;
TCHAR szDescription[128];
} CONNMGR_DESTINATION_INFO;
typedef struct _CONNMGR_CONNECTIONINFO {
DWORD cbSize;
DWORD dwParams;
DWORD dwFlags;
DWORD dwPriority;
BOOL bExclusive;
BOOL bDisabled;
GUID guidDestNet;
HWND hWnd;
UINT uMsg;
LPARAM lParam;
ULONG ulMaxCost;
ULONG ulMinRcvBw;
ULONG ulMaxConnLatency;
} CONNMGR_CONNECTIONINFO;
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
- Next message: Jeff: "Detecting a Listview scroll in VB.Net"
- Previous message: Tim Wilson: "Re: how to create a DLL file"
- Next in thread: Geoff Schwab [MSFT]: "Re: advanced? marshaling"
- Reply: Geoff Schwab [MSFT]: "Re: advanced? marshaling"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|