示例#1
0
 public static bool ConnectUsb()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ConnectUsb());
     }
     else
     {
         return(BXLLApi_x86.ConnectUsb());
     }
 }
示例#2
0
 public static bool RFIDCalibration()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.RFIDCalibration());
     }
     else
     {
         return(BXLLApi_x86.RFIDCalibration());
     }
 }
示例#3
0
 public static bool RFIDPassword(string OldAccessPwd, string OldKillPwd, string NewAccessPwd, string NewKillPwd)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.RFIDPassword(OldAccessPwd, OldKillPwd, NewAccessPwd, NewKillPwd));
     }
     else
     {
         return(BXLLApi_x86.RFIDPassword(OldAccessPwd, OldKillPwd, NewAccessPwd, NewKillPwd));
     }
 }
示例#4
0
 public static int CheckStatus()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.CheckStatus());
     }
     else
     {
         return(BXLLApi_x86.CheckStatus());
     }
 }
示例#5
0
 public static bool ReadBuff(byte[] pBuffer, int dwNumberOfBytesToRead, ref int dwReaded)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ReadBuff(pBuffer, dwNumberOfBytesToRead, ref dwReaded));
     }
     else
     {
         return(BXLLApi_x86.ReadBuff(pBuffer, dwNumberOfBytesToRead, ref dwReaded));
     }
 }
示例#6
0
 public static bool PrintVectorFontW(int nXPos, int nYPos, string FontSelection, int FontWidth, int FontHeight, string RightSideCharSpacing, bool bBold, bool ReversePrinting, bool TextStyle, int Rotation, string TextAlignment, int TextDirection, string pData)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintVectorFontW(nXPos, nYPos, FontSelection, FontWidth, FontHeight, RightSideCharSpacing, bBold, ReversePrinting, TextStyle, Rotation, TextAlignment, TextDirection, pData));
     }
     else
     {
         return(BXLLApi_x86.PrintVectorFontW(nXPos, nYPos, FontSelection, FontWidth, FontHeight, RightSideCharSpacing, bBold, ReversePrinting, TextStyle, Rotation, TextAlignment, TextDirection, pData));
     }
 }
示例#7
0
 public static bool PrintImageLibW(int nHorizontalStartPos, int nVerticalStartPos, string pBitmapFilename, int nDither, bool bDataCompression)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintImageLibW(nHorizontalStartPos, nVerticalStartPos, pBitmapFilename, nDither, bDataCompression));
     }
     else
     {
         return(BXLLApi_x86.PrintImageLibW(nHorizontalStartPos, nVerticalStartPos, pBitmapFilename, nDither, bDataCompression));
     }
 }
示例#8
0
 public static bool Print1DBarcode(int nHorizontalPos, int nVerticalPos, int nBarcodeType, int nNarrowBarWidth, int nWideBarWidth, int nBarcodeHeight, int nRotation, int nHRI, Byte[] pData)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.Print1DBarcode(nHorizontalPos, nVerticalPos, nBarcodeType, nNarrowBarWidth, nWideBarWidth, nBarcodeHeight, nRotation, nHRI, pData));
     }
     else
     {
         return(BXLLApi_x86.Print1DBarcode(nHorizontalPos, nVerticalPos, nBarcodeType, nNarrowBarWidth, nWideBarWidth, nBarcodeHeight, nRotation, nHRI, pData));
     }
 }
示例#9
0
 public static bool PrintDeviceFontW(int nHorizontalPos, int nVerticalPos, int nFontName, int nHorizontalMulti, int nVerticalMulti, int nRotation, bool bBold, string szText)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintDeviceFontW(nHorizontalPos, nVerticalPos, nFontName, nHorizontalMulti, nVerticalMulti, nRotation, bBold, szText));
     }
     else
     {
         return(BXLLApi_x86.PrintDeviceFontW(nHorizontalPos, nVerticalPos, nFontName, nHorizontalMulti, nVerticalMulti, nRotation, bBold, szText));
     }
 }
示例#10
0
 public static int GetPrinterDPI()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.GetPrinterDPI());
     }
     else
     {
         return(BXLLApi_x86.GetPrinterDPI());
     }
 }
示例#11
0
 public static bool GetDllVersion(StringBuilder strDllVersion)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.GetDllVersion(strDllVersion));
     }
     else
     {
         return(BXLLApi_x86.GetDllVersion(strDllVersion));
     }
 }
示例#12
0
 public static bool DisconnectPrinter()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.DisconnectPrinter());
     }
     else
     {
         return(BXLLApi_x86.DisconnectPrinter());
     }
 }
示例#13
0
 public static bool ConnectNet(string szIpAddr, int nPortNum)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ConnectNet(szIpAddr, nPortNum));
     }
     else
     {
         return(BXLLApi_x86.ConnectNet(szIpAddr, nPortNum));
     }
 }
示例#14
0
 public static bool ConnectParallel(string szPortName)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ConnectParallel(szPortName));
     }
     else
     {
         return(BXLLApi_x86.ConnectParallel(szPortName));
     }
 }
示例#15
0
 public static bool PrintDirect(string pDirectData, bool bAddCrLf)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintDirect(pDirectData, bAddCrLf));
     }
     else
     {
         return(BXLLApi_x86.PrintDirect(pDirectData, bAddCrLf));
     }
 }
示例#16
0
 public static bool SetConfigOfPrinter(int nSpeed, int nDensity, int nOrientation, bool bAutoCut, int nCuttingPeriod, bool bBackFeeding)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.SetConfigOfPrinter(nSpeed, nDensity, nOrientation, bAutoCut, nCuttingPeriod, bBackFeeding));
     }
     else
     {
         return(BXLLApi_x86.SetConfigOfPrinter(nSpeed, nDensity, nOrientation, bAutoCut, nCuttingPeriod, bBackFeeding));
     }
 }
示例#17
0
 public static bool PrintTrueFontLibWithAlignW(int nXPos, int nYPos, string strFontName, int nFontSize, int nRotaion, bool bItalic, bool bBold, bool bUnderline, string strText, int nPrintWidth, int nAlignment, bool bDataCompression)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintTrueFontLibWithAlignW(nXPos, nYPos, strFontName, nFontSize, nRotaion, bItalic, bBold, bUnderline, strText, nPrintWidth, nAlignment, bDataCompression));
     }
     else
     {
         return(BXLLApi_x86.PrintTrueFontLibWithAlignW(nXPos, nYPos, strFontName, nFontSize, nRotaion, bItalic, bBold, bUnderline, strText, nPrintWidth, nAlignment, bDataCompression));
     }
 }
示例#18
0
 public static bool Prints(int nLabelSet, int nCopiesOfEachLabel)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.Prints(nLabelSet, nCopiesOfEachLabel));
     }
     else
     {
         return(BXLLApi_x86.Prints(nLabelSet, nCopiesOfEachLabel));
     }
 }
示例#19
0
 public static bool PrintQRCode(int nXPos, int nYPos, int nModel, int nECCLevel, int nSize, int nRotation, Byte[] pData)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintQRCode(nXPos, nYPos, nModel, nECCLevel, nSize, nRotation, pData));
     }
     else
     {
         return(BXLLApi_x86.PrintQRCode(nXPos, nYPos, nModel, nECCLevel, nSize, nRotation, pData));
     }
 }
示例#20
0
 public static bool SetCharacterset(int nInternationalCharacterSet, int nCodepage)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.SetCharacterset(nInternationalCharacterSet, nCodepage));
     }
     else
     {
         return(BXLLApi_x86.SetCharacterset(nInternationalCharacterSet, nCodepage));
     }
 }
示例#21
0
 public static bool SetShowMsgBox(bool bShow)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.SetShowMsgBox(bShow));
     }
     else
     {
         return(BXLLApi_x86.SetShowMsgBox(bShow));
     }
 }
示例#22
0
 public static bool SetPaper(int nHorizontalMagin, int nVerticalMargin, int nPaperWidth, int nPaperLength, int nMediaType, int nOffSet, int nGapLengthORThicknessOfBlackLine)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.SetPaper(nHorizontalMagin, nVerticalMargin, nPaperWidth, nPaperLength, nMediaType, nOffSet, nGapLengthORThicknessOfBlackLine));
     }
     else
     {
         return(BXLLApi_x86.SetPaper(nHorizontalMagin, nVerticalMargin, nPaperWidth, nPaperLength, nMediaType, nOffSet, nGapLengthORThicknessOfBlackLine));
     }
 }
示例#23
0
 public static bool WriteBuff(byte[] pBuffer, int dwNumberOfBytesToWrite, ref int dwWritten)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.WriteBuff(pBuffer, dwNumberOfBytesToWrite, ref dwWritten));
     }
     else
     {
         return(BXLLApi_x86.WriteBuff(pBuffer, dwNumberOfBytesToWrite, ref dwWritten));
     }
 }
示例#24
0
 public static bool ClearBuffer()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ClearBuffer());
     }
     else
     {
         return(BXLLApi_x86.ClearBuffer());
     }
 }
示例#25
0
 /////////////////////////////////////////////////////////////////////////////////////////////////////
 // RFID Functions
 /////////////////////////////////////////////////////////////////////////////////////////////////////
 public static bool RFIDSetup(int RFIDType, int NumberOfRetries, int NumberOfLabel, int RadioPower)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.RFIDSetup(RFIDType, NumberOfRetries, NumberOfLabel, RadioPower));
     }
     else
     {
         return(BXLLApi_x86.RFIDSetup(RFIDType, NumberOfRetries, NumberOfLabel, RadioPower));
     }
 }
示例#26
0
 public static bool PrintBlock(int nHorizontalStartPos, int nVerticalStartPos, int nHorizontalEndPos, int nVerticalEndPos, int nOption, int nThickness)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintBlock(nHorizontalStartPos, nVerticalStartPos, nHorizontalEndPos, nVerticalEndPos, nOption, nThickness));
     }
     else
     {
         return(BXLLApi_x86.PrintBlock(nHorizontalStartPos, nVerticalStartPos, nHorizontalEndPos, nVerticalEndPos, nOption, nThickness));
     }
 }
示例#27
0
 public static bool RFIDWrite(int DataType, int StartingBlockNumber, int WriteByte, string Data)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.RFIDWrite(DataType, StartingBlockNumber, WriteByte, Data));
     }
     else
     {
         return(BXLLApi_x86.RFIDWrite(DataType, StartingBlockNumber, WriteByte, Data));
     }
 }
示例#28
0
 public static bool PrintCircle(int nHorizontalStartPos, int nVerticalStartPos, int nDiameter, int nMulti)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.PrintCircle(nHorizontalStartPos, nVerticalStartPos, nDiameter, nMulti));
     }
     else
     {
         return(BXLLApi_x86.PrintCircle(nHorizontalStartPos, nVerticalStartPos, nDiameter, nMulti));
     }
 }
示例#29
0
 public static bool RFIDLock()
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.RFIDLock());
     }
     else
     {
         return(BXLLApi_x86.RFIDLock());
     }
 }
示例#30
0
 public static bool ConnectSerial(string szPortName, int nBaudRate, int nDataBits, int nParity, int nStopBits)
 {
     if (Is64Bit())
     {
         return(BXLLApi_x64.ConnectSerial(szPortName, nBaudRate, nDataBits, nParity, nStopBits));
     }
     else
     {
         return(BXLLApi_x86.ConnectSerial(szPortName, nBaudRate, nDataBits, nParity, nStopBits));
     }
 }