S
Sagaert Johan
Hi
i have some problems p invoking this :
HRESULT WINAPI ConnMgrEnumDestinations(
int Index,
CONNMGR_DESTINATION_INFO *pDestInfo
); i converted this to :[DllImport("CellCore.dll")]static extern int
ConnMgrEnumDestinations(int Index, ref CONNMGR_DESTINATION_INFO pDestInfo);
i tried to convert this structure typedef struct {
GUID guid;
TCHAR szDescription[CONNMGR_MAX_DESC];
BOOL fSecure;
} CONNMGR_DESTINATION_INFO;as[StructLayout(LayoutKind.Sequential)]class
CONNMGR_DESTINATION_INFO{ public Guid guid= Guid.Empty; public char[]
szDescription; public bool fSecure=false; public
CONNMGR_DESTINATION_INFO() { szDescription = new char[128]; }}i
tried to use the function on my WM5 device :CONNMGR_DESTINATION_INFO ci =new
CONNMGR_DESTINATION_INFO();int ret=ConnMgrEnumDestinations(0, ref ci); Can
someone help me on this ?Johan
i have some problems p invoking this :
HRESULT WINAPI ConnMgrEnumDestinations(
int Index,
CONNMGR_DESTINATION_INFO *pDestInfo
); i converted this to :[DllImport("CellCore.dll")]static extern int
ConnMgrEnumDestinations(int Index, ref CONNMGR_DESTINATION_INFO pDestInfo);
i tried to convert this structure typedef struct {
GUID guid;
TCHAR szDescription[CONNMGR_MAX_DESC];
BOOL fSecure;
} CONNMGR_DESTINATION_INFO;as[StructLayout(LayoutKind.Sequential)]class
CONNMGR_DESTINATION_INFO{ public Guid guid= Guid.Empty; public char[]
szDescription; public bool fSecure=false; public
CONNMGR_DESTINATION_INFO() { szDescription = new char[128]; }}i
tried to use the function on my WM5 device :CONNMGR_DESTINATION_INFO ci =new
CONNMGR_DESTINATION_INFO();int ret=ConnMgrEnumDestinations(0, ref ci); Can
someone help me on this ?Johan