日期:2014-05-18 浏览次数:21180 次
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);
读卡器读卡器读卡器读卡器读卡器读卡器读卡器读卡器读卡器读卡器,该怎么处理