在evc中有一个这样的函数(就是c++函数):
ConnMgrEstablishConnectionSync
定义如下:
HRESULT WINAPI ConnMgrEstablishConnectionSync(
CONNMGR_CONNECTIONINFO * pConnInfo,
HANDLE * phConnection,
DWORD dwTimeout,
DWORD * pdwStatus );
参数说明如下
Parameters
pConnInfo 
    Pointer to the CONNMGR_CONNECTIONINFO data structure; this structure contains the parameters that describe the requested connection. phConnection 
    Pointer to the returned connection handle. dwTimeout 
    The timeout value in milliseconds. pdwStatus 
    Pointer to the final status value of the connection. The following table lists the possible values of this parameter. Value Description CONNMGR_STATUS_UNKNOWN            The status is unknown. 
CONNMGR_STATUS_CONNECTED          The connection is up. 
CONNMGR_STATUS_DISCONNECTED       The connection has been disconnected. 
CONNMGR_STATUS_WAITINGFORPATH     A path to the destination exists but is not presently available (for example, the device is out of radio range or is not plugged into its cradle). 
CONNMGR_STATUS_WAITINGFORRESOURCE    Another client is using resources that this connection requires. 
CONNMGR_STATUS_WAITINGFORPHONE A     voice call is in progress and is using resources that this connection requires. 
CONNMGR_STATUS_WAITINGFORNETWORK     The device is waiting for a task with a higher priority to connect to the network before connecting to the same network. This status value is only returned to clients that specified a priority of CONNMGR_PRIORITY_LOWBKGND when requesting a connection. 
CONNMGR_STATUS_NOPATHTODESTINATION    No path to the destination could be found. 
CONNMGR_STATUS_CONNECTIONFAILED The connection failed and cannot be reestablished. 
CONNMGR_STATUS_CONNECTIONCANCELED The user aborted the connection. 
CONNMGR_STATUS_CONNECTIONDISABLED The connection can be made, but the connection itself is disabled. This value is only returned to clients that set the bDisabled value in the CONNMGR_CONNECTIONINFO structure. 
CONNMGR_STATUS_WAITINGCONNECTION The device is attempting to connect. 
CONNMGR_STATUS_WAITINGCONNECTIONABORT The device is aborting the connection attempt. 
CONNMGR_STATUS_WAITINGDISCONNECTION The connection is being brought down. 
Return Values
None of the following values are returned until the connection has either been established or failed.S_OK    The connection was successfully requested. 
Error   code The connection could not be requested. CONNMGR_CONNECTIONINFO的结构如下
This structure contains information about the connection request.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;
我现在要在c#中调用该方法,请问应该如何写?