日期:2014-05-18 浏览次数:21491 次
typedef struct tagLOGFONT
{
LONG lfHeight;
LONG lfWidth;
LONG lfEscapement;
LONG lfOrientation;
LONG lfWeight;
BYTE lfItalic;
BYTE lfUnderline;
BYTE lfStrikeOut;
BYTE lfCharSet;
BYTE lfOutPrecision;
BYTE lfClipPrecision;
BYTE lfQuality;
BYTE lfPitchAndFamily;
TCHAR lfFaceName[LF_FACESIZE];
} LOGFONT;
------解决方案--------------------
public struct CONVINFO
{
MarshalAs(UnmanagedType.LPStr, SizeConst = 20)]
public ushort devType;
[MarshalAs(UnmanagedType.LPStr, SizeConst = 20)]
public string strIP;
[MarshalAs(UnmanagedType.LPStr, SizeConst = 20)]
public string strMAC;
}
CONVINFO con = new CONVINFO();
[DllImport("gdi32.dll"]
public static extern int FindConverter(ref con,int count,bool bEnableMsg,uint timeout);
千分求名!姓王,要求:不带三点水,不带金字旁。顶者有分,该怎么解决