C++中的struct在C#中如何写?比较特殊
calen 2004-09-29 10:19:27 着下面的两个struct比较特殊,该如何写成C#模式?
typedef struct {
BOOL bEnableProxy;
DWORD dwProxyPort;
char szProxyName[128]; //此处如何写成C#模式?
BOOL bEnableIPRestrict;
DWORD dwIPRestrictNum;
char (*pszIPRestrictList)[128]; //此处如何写成C#模式?
DWORD dwFlags;
} TDataBrokerOptions;
typedef struct {
TDataBrokerStatusCallback pfStatus;
TDataBrokerAVCallback pfAV;
DWORD dwStatusContext;
DWORD dwAVContext;
char* pzServerType; //此处如何写成C#模式?
DWORD dwAudioCodec;
DWORD dwVideoCodec;
DWORD dwProtocolType;
char* zVSize; //此处如何写成C#模式?
} TDataBrokerInputOptions, *PTDataBrokerInputOptions; //此处如何写成C#模式?