Просмотр исходного кода

可以识别上一次的窗口数据了

zhangyang 6 лет назад
Родитель
Сommit
e330b0fed3

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/db/pos.db


+ 434 - 0
bin/Win32/Debug/zhipuzi_pay_plugin/log/pos.log

@@ -610,3 +610,437 @@
 2019-08-07 13:28:31[INFO] - [Parent window] window handle: 000101AE window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\wnd\cvaluewnd.cpp:436]
 2019-08-07 13:28:31[INFO] - [Parent window] window handle: 00040C88 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\wnd\cvaluewnd.cpp:436]
 2019-08-07 13:28:31[INFO] - [Parent window] window handle: 00020164 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\wnd\cvaluewnd.cpp:436]
+2019-08-11 17:00:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:34[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:00:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:34[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:00:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:34[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:00:34[INFO] - postString:nonce=123456&timestamp=1565514034&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:00:34[INFO] - sign:A40745AA7DA89FE7DE32E8B79585E3FC [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:00:34[INFO] - postString:nonce=123456&sign=A40745AA7DA89FE7DE32E8B79585E3FC&timestamp=1565514034&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:00:35[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"f1r7u7bh1i8r1r8b3ndudul445","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:00:35[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"f1r7u7bh1i8r1r8b3ndudul445","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:00:35[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:00:35[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:35[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:00:35[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:00:35[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000100DC window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 002308E6 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;65c970d5-76de-4fd5-99e8-8144301ff8cb] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00010878 window name: wprintf、wcout输出中文和unicode中文字符串的转换问题 - mycongrats - 博客园 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 000101A2 window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 0001019C window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 011808DA window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:00:35[INFO] - [Parent window] window handle: 00020152 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:07[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:07[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:07[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:01:07[INFO] - postString:nonce=123456&timestamp=1565514067&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:01:07[INFO] - sign:8E771AF379E7CFCA836817A2BA120CFD [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:01:07[INFO] - postString:nonce=123456&sign=8E771AF379E7CFCA836817A2BA120CFD&timestamp=1565514067&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:01:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"4b1kin3ffutpc8urqa8c78u4a6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:01:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"4b1kin3ffutpc8urqa8c78u4a6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:01:08[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:01:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:01:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:01:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000709B4 window name:  class name HwndWrapper[DefaultDomain;;795087af-9e0e-4bf5-9ed9-ede48e5ef9f8] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000100DC window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 002308E6 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;65c970d5-76de-4fd5-99e8-8144301ff8cb] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000A0BC8 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Child window] window handle: 013E0D32 window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:26]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00130D34 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00010878 window name: wprintf、wcout输出中文和unicode中文字符串的转换问题 - mycongrats - 博客园 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000101A2 window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 0001019C window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:08[INFO] - [Parent window] window handle: 000F0AFE window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:01:09[INFO] - [Parent window] window handle: 00020152 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:19:11[INFO] - postString:nonce=123456&timestamp=1565515151&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:19:11[INFO] - sign:8DBB2F164F3DC929AC7664D39B75EA52 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:19:11[INFO] - postString:nonce=123456&sign=8DBB2F164F3DC929AC7664D39B75EA52&timestamp=1565515151&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:19:11[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"al3gb2k6hrhpencn6968mnlqp2","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:19:11[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"al3gb2k6hrhpencn6968mnlqp2","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:19:11[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:19:11[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:19:11[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:19:11[INFO] - [Parent window] window handle: 000100DC window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 002308E6 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;65c970d5-76de-4fd5-99e8-8144301ff8cb] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00060DA8 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Child window] window handle: 002009DC window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:26]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00050C34 window name:  class name SysShadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00500D6E window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 0004095E window name:  class name SysShadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00010878 window name: EnumWindows_百度搜索 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00090C06 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:2E750A3F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:12[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 000101A2 window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 0001019C window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 00040D54 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:19:25[INFO] - [Parent window] window handle: 00020152 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:24:15[INFO] - postString:nonce=123456&timestamp=1565515455&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:24:15[INFO] - sign:05DDA9A3826B36DB94E62D9B978DC9D6 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:24:15[INFO] - postString:nonce=123456&sign=05DDA9A3826B36DB94E62D9B978DC9D6&timestamp=1565515455&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:24:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"mbp3k7n7eqaepjs467p4rrdbg6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:24:15[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"mbp3k7n7eqaepjs467p4rrdbg6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:24:15[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:24:15[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:24:15[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00040730 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Child window] window handle: 00070E1A window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:26]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00090C06 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:2E750A3F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00010878 window name: EnumWindows_百度搜索 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:16[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 00060BFA window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:24:20[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:45[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:40:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:45[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:40:45[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:45[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:40:45[INFO] - postString:nonce=123456&timestamp=1565516445&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:40:45[INFO] - sign:46A42F8A026B400E206B40389D037A67 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:40:45[INFO] - postString:nonce=123456&sign=46A42F8A026B400E206B40389D037A67&timestamp=1565516445&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:40:46[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"4radc203nrvj43ulgovrhenph3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:40:46[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"4radc203nrvj43ulgovrhenph3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:40:46[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:40:46[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:46[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:40:46[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:40:46[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 00220C16 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:40:46[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:19[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:41:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:19[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:41:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:19[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:41:19[INFO] - postString:nonce=123456&timestamp=1565516479&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:41:19[INFO] - sign:E3664EA3577176C6C89C0D0385A8F4FE [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:41:19[INFO] - postString:nonce=123456&sign=E3664EA3577176C6C89C0D0385A8F4FE&timestamp=1565516479&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:41:20[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"ask8462dgand39o7sechnagr35","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:41:20[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"ask8462dgand39o7sechnagr35","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:41:20[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:41:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:20[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:41:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:41:20[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:41:20[INFO] - [Parent window] window handle: 00070D3E window name:  class name HwndWrapper[DefaultDomain;;813205a3-8c47-4b46-b334-791656e00c14] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:20[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:20[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:20[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:20[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:21[INFO] - [Parent window] window handle: 00070D5E window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:21[INFO] - [Child window] window handle: 00140968 window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:26]
+2019-08-11 17:41:21[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:26[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:28[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:28[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:28[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:28[INFO] - [Parent window] window handle: 00110BE4 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:41:28[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:54]
+2019-08-11 17:44:32[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:32[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:32[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:44:32[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:32[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:44:32[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:32[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:44:32[INFO] - postString:nonce=123456&timestamp=1565516672&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:44:32[INFO] - sign:FF276D20359760A5B537EB1A7FB85A7E [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:44:32[INFO] - postString:nonce=123456&sign=FF276D20359760A5B537EB1A7FB85A7E&timestamp=1565516672&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:44:33[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"7ihl6gdq3svgpb71b3nchssd71","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:44:33[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"7ihl6gdq3svgpb71b3nchssd71","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:44:33[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:44:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:33[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:44:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:44:33[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 00060120 window name:  class name HwndWrapper[DefaultDomain;;e573ddea-fb9a-424d-896c-d301848a52e4] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 00120BE4 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Child window] window handle: 0016099E window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:31]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:33[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:49[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:51[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:51[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:51[INFO] - [Parent window] window handle: 000B0E1A window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:44:51[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:24[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:24[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:24[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:54:24[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:24[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:54:24[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:24[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:54:24[INFO] - postString:nonce=123456&timestamp=1565517264&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:54:24[INFO] - sign:28287F276709A5FDD6BDAA93AFCA30BE [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:54:24[INFO] - postString:nonce=123456&sign=28287F276709A5FDD6BDAA93AFCA30BE&timestamp=1565517264&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:54:25[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"g652j9ulclrvkcj1pmtds2fkn6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:54:25[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"g652j9ulclrvkcj1pmtds2fkn6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:54:25[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:54:25[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:25[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:54:25[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:25[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00060E0E window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00040106 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00040126 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000400E8 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00140BE4 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:25[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:26[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:26[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:26[INFO] - [Parent window] window handle: 000A0970 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:26[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:33[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:54:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:33[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:54:33[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:33[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:54:34[INFO] - postString:nonce=123456&timestamp=1565517274&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:54:34[INFO] - sign:1A1CFF8265304EDE77ABD4675678C97C [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:54:34[INFO] - postString:nonce=123456&sign=1A1CFF8265304EDE77ABD4675678C97C&timestamp=1565517274&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:54:34[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"jtj4c76acmbsjmrcj3p1cgfdi3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:54:34[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"jtj4c76acmbsjmrcj3p1cgfdi3","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:54:34[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:54:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:34[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:54:34[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:54:34[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:54:34[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:34[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:34[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00060E0E window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00040106 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00040126 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000400E8 window name:  class name VisualStudioGlowWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00140BE4 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Child window] window handle: 000F026A window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:31]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 001106B4 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:54:35[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:19[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:57:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 17:57:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:57:20[INFO] - postString:nonce=123456&timestamp=1565517440&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 17:57:20[INFO] - sign:1E3108B1CD797657E0E1FC38D116F8F0 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 17:57:20[INFO] - postString:nonce=123456&sign=1E3108B1CD797657E0E1FC38D116F8F0&timestamp=1565517440&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 17:57:20[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"erubcgb1bv37b3v8dufkv8lvj7","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 17:57:20[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"erubcgb1bv37b3v8dufkv8lvj7","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 17:57:20[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 17:57:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 17:57:20[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 17:57:20[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 17:57:20[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:20[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:20[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:21[INFO] - [Parent window] window handle: 001D09F4 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:21[INFO] - [Child window] window handle: 00170E0A window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:31]
+2019-08-11 17:57:21[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:21[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:21[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:21[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:22[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:26[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:26[INFO] - [Parent window] window handle: 00100C00 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 17:57:26[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:59]
+2019-08-11 18:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:07[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 18:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:07[INFO] - save params fail [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:396]
+2019-08-11 18:01:07[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 18:01:08[INFO] - postString:nonce=123456&timestamp=1565517668&url=https://pf-api.zhipuzi.com/pos/userlogin/userlogin&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:192]
+2019-08-11 18:01:08[INFO] - sign:0010D830FB6E4DA8CBCD35DEAA091F91 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:202]
+2019-08-11 18:01:08[INFO] - postString:nonce=123456&sign=0010D830FB6E4DA8CBCD35DEAA091F91&timestamp=1565517668&username=zhangyang [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:222]
+2019-08-11 18:01:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"7rrm86gbbu26954ai1rlvp56j6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:227]
+2019-08-11 18:01:08[INFO] - response:{"errcode":0,"errmsg":"","data":{"lwm_sess_token":"7rrm86gbbu26954ai1rlvp56j6","version_type":"1"}} [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:40]
+2019-08-11 18:01:08[INFO] - login success! [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\network\czhipuzihttpclient.cpp:91]
+2019-08-11 18:01:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:392]
+2019-08-11 18:01:08[INFO] - Opened database successfully [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:35]
+2019-08-11 18:01:08[INFO] - save params success [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\tool\csqlite3.cpp:331]
+2019-08-11 18:01:08[INFO] - [Parent window] window handle: 000401C4 window name:  class name Shell_TrayWnd [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:08[INFO] - [Parent window] window handle: 0001030E window name:  class name ATL:0061FB48 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 00040128 window name: zhipuzi_pay_plugin (正在运行) - Microsoft Visual Studio (管理员) class name HwndWrapper[DefaultDomain;;3f2e0018-0ff7-4967-9f79-66c76db983a0] [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 00180DA0 window name: 收款 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Child window] window handle: 00100930 window name: 59.3 class name WindowsForms10.EDIT.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:36]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 00040734 window name: 收银系统 class name WindowsForms10.Window.8.app.0.38248fc_r9_ad1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 000B0E32 window name: Microsoft Spy++ - [窗口 1] class name Afx:013B0000:8:00010003:00000000:06540B8F [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 00010878 window name: 如何根据进程id获取该进程的主窗口句柄 - zero_226的专栏 - CSDN博客 - Google Chrome class name Chrome_WidgetWin_1 [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:09[INFO] - [Parent window] window handle: 000300CE window name:  class name DummyDWMListenerWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00060912 window name:  class name EdgeUiInputTopWndClass [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00010304 window name:  class name 360WallPaperCtrlCls [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00010802 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00010800 window name: ChatContactMenu class name ChatContactMenu [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 000B07F8 window name:  class name popupshadow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 000107B4 window name: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00050266 window name: 设置 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 000D0782 window name: 计算器 class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:10[INFO] - [Parent window] window handle: 00010796 window name: 计算器 class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:11[INFO] - [Parent window] window handle: 000103C8 window name: Microsoft Store class name Windows.UI.Core.CoreWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:11[INFO] - [Parent window] window handle: 000103B6 window name: Microsoft Store class name ApplicationFrameWindow [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:11[INFO] - [Parent window] window handle: 001C09B4 window name:  class name Internet Explorer_Hidden [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]
+2019-08-11 18:01:11[INFO] - [Parent window] window handle: 000401D2 window name: Program Manager class name Progman [e:\work\code\zhipuzi_pay_plugin\zhipuzi_pay_plugin\helper\wndhelper.cpp:64]

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zhipuzi_pay_plugin.exe


+ 181 - 0
zhipuzi_pay_plugin/helper/WndHelper.cpp

@@ -0,0 +1,181 @@
+#include "../pch/pch.h"
+#include "WndHelper.h"
+
+int g_zorder = 0;
+std::vector<ValueWnd> g_valuewnd_vector;
+
+BOOL IsMainWindow(HWND handle)
+{
+	return GetWindow(handle, GW_OWNER) == (HWND)0 && IsWindowVisible(handle);
+}
+
+BOOL IsVisibleWindow(HWND handle)
+{
+	return IsWindow(handle) && IsWindowVisible(handle);
+}
+
+BOOL CALLBACK EnumChildProc(HWND  hwnd, LPARAM lParam)
+{
+    if(IsWindow(hwnd) && IsWindowVisible(hwnd))
+    {
+        g_zorder++;
+
+        TCHAR szTitle[MAX_PATH] = { 0 };
+        TCHAR szClass[MAX_PATH] = { 0 };
+        int nMaxCount = MAX_PATH;
+
+        LPWSTR lpClassName = szClass;
+        LPWSTR lpWindowName = szTitle;
+
+        ::SendMessageW(hwnd, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
+        GetClassName(hwnd, lpClassName, nMaxCount);
+
+        if(wstring(szTitle) == L"59.3")
+        {
+            LOG_INFO("[Child window] window handle: " << hwnd << " window name: "
+                     << lpWindowName << " class name " << lpClassName);
+
+            ValueWnd* newWnd = (ValueWnd*)lParam;
+            newWnd->z_order = g_zorder;
+            newWnd->selfWnd = hwnd;
+
+            g_valuewnd_vector.push_back(*newWnd);
+        }
+    }
+
+    return TRUE;
+}
+
+BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
+{
+    if(IsWindow(hwnd) && IsWindowVisible(hwnd))
+    {
+        char szTitle[MAX_PATH] = { 0 };
+        char szClass[MAX_PATH] = { 0 };
+        int nMaxCount = MAX_PATH;
+
+        LPSTR lpClassName = szClass;
+        LPSTR lpWindowName = szTitle;
+
+        GetWindowTextA(hwnd, lpWindowName, nMaxCount);
+        GetClassNameA(hwnd, lpClassName, nMaxCount);
+
+        LOG_INFO("[Parent window] window handle: " << hwnd << " window name: "
+                 << lpWindowName << " class name " << lpClassName);
+
+        ValueWnd newWnd;
+        newWnd.wndTitle = lpWindowName;
+        newWnd.TopWnd = hwnd;
+
+        DWORD id;
+        GetWindowThreadProcessId(hwnd, &id);
+
+        TCHAR processName[MAX_PATH] = { 0 };
+        CSystem::processIdToName(processName, id);
+
+        newWnd.processName = processName;
+
+        g_zorder = 0;
+
+        EnumChildWindows(hwnd, EnumChildProc, (LPARAM)(&newWnd));
+    }
+
+    return TRUE;
+}
+
+BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam)//枚举所有进程
+{
+	DWORD dwProcId;
+	GetWindowThreadProcessId(hWnd, &dwProcId);
+	LPWNDINFO pInfo = (LPWNDINFO)lParam;
+
+	if (dwProcId != pInfo->dwProcessId || !IsVisibleWindow(hWnd))
+	{
+		return TRUE;
+	}
+
+	char szTitle[MAX_PATH] = { 0 };
+	int nMaxCount = MAX_PATH;
+
+	LPSTR lpWindowName = szTitle;
+
+	GetWindowTextA(hWnd, lpWindowName, nMaxCount);
+
+	if (pInfo->wndTitle != lpWindowName)
+	{
+		return TRUE;
+	}
+
+	pInfo->hWnd = hWnd;
+	return FALSE;
+}
+
+HWND GetProcessMainWnd(DWORD dwProcessId, std::string wndTitle)//获取给定进程ID的窗口handle
+{
+    WNDINFO wi;
+    wi.dwProcessId = dwProcessId;
+	wi.wndTitle = wndTitle;
+    wi.hWnd = NULL;
+
+    EnumWindows(MyEnumProc, (LPARAM)&wi);
+
+    return wi.hWnd;
+}
+
+HWND GetWndHwnd(const TCHAR *strExeName, std::string wndTitle)
+{
+    PROCESSENTRY32 pe32;
+    //在使用这个结构前,先设置它的大小
+    pe32.dwSize = sizeof(pe32);
+    //给系统内所有的进程拍个快照
+    HANDLE hProcessSnap = ::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
+
+    if(hProcessSnap == INVALID_HANDLE_VALUE)
+    {
+        //printf("CreateToolhelp32Snapshot 调用失败.\n");
+        return NULL;
+    }
+
+    //遍历进程快照,轮流显示每个进程的信息
+    BOOL bMore = ::Process32First(hProcessSnap, &pe32);
+
+    while(bMore)
+    {
+        //找到了进程
+        if(wstring(pe32.szExeFile) == strExeName)
+        {
+            HWND game_window_hwnd = GetProcessMainWnd(pe32.th32ProcessID, wndTitle);
+
+            if(NULL != game_window_hwnd)
+            {
+                ::CloseHandle(hProcessSnap);
+                return game_window_hwnd;
+            }
+        }
+
+        bMore = ::Process32Next(hProcessSnap, &pe32);
+    }
+
+    //不要忘记清除掉snapshot对象
+    ::CloseHandle(hProcessSnap);
+    return NULL;
+}
+
+BOOL CALLBACK EnumMainwndChildProc(HWND  hwnd, LPARAM lParam)
+{
+	if (IsWindow(hwnd) && IsWindowVisible(hwnd))
+	{
+		g_zorder++;
+
+		ValueWnd* newWnd = (ValueWnd*)lParam;
+		if (g_zorder == newWnd->z_order)
+		{
+			//找到了指定的窗口
+			newWnd->selfWnd = hwnd;
+
+			return FALSE;
+		}
+	}
+
+	return TRUE;
+}

+ 41 - 0
zhipuzi_pay_plugin/helper/WndHelper.h

@@ -0,0 +1,41 @@
+#pragma once
+
+#include "../pch/pch.h"
+
+struct ValueWnd
+{
+	std::string wndTitle; //顶级父窗口的标题
+	std::wstring processName;
+	int z_order;
+	HWND TopWnd;
+	HWND selfWnd;
+};
+
+typedef struct tagWNDINFO
+{
+	DWORD dwProcessId;
+	HWND hWnd;
+	std::string wndTitle;
+} WNDINFO, *LPWNDINFO;
+
+extern int g_zorder;
+extern std::vector<ValueWnd> g_valuewnd_vector;
+
+BOOL IsMainWindow(HWND handle);
+
+BOOL IsVisibleWindow(HWND handle);
+
+BOOL CALLBACK EnumChildProc(HWND  hwnd, LPARAM lParam);
+
+BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
+
+//枚举所有进程
+BOOL CALLBACK MyEnumProc(HWND hWnd, LPARAM lParam);
+
+//获取给定进程ID的窗口handle
+HWND GetProcessMainWnd(DWORD dwProcessId, std::string wndTitle);
+
+HWND GetWndHwnd(const TCHAR *strExeName, std::string wndTitle);
+
+//查找指定主窗口下的指定z序的子窗口
+BOOL CALLBACK EnumMainwndChildProc(HWND  hwnd, LPARAM lParam);

+ 316 - 341
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -5,179 +5,219 @@
 
 #include "../tool/CSerialPort.h"
 
-int g_zorder = 0;
-
-std::vector<ValueWnd> g_valuewnd_vector;
-
 void CValueWnd::Notify(TNotifyUI& msg)
 {
-	if (msg.sType == _T("click"))
-	{
-		if (msg.pSender->GetName() == _T("closebtn"))
-		{
-			PostQuitMessage(0);
-			return;
-		}
-	}
+    if(msg.sType == _T("click"))
+    {
+        if(msg.pSender->GetName() == _T("closebtn"))
+        {
+            PostQuitMessage(0);
+            return;
+        }
+    }
 }
 
 void CValueWnd::Init()
 {
-	SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
-	
-	BOOL isAdmin = CSystem::IsRunasAdmin();
-	if (isAdmin)
-	{
-		//MessageBox(m_hWnd, L"管理员", L"111", MB_OK);
-	}
-	else
-	{
-		//MessageBox(m_hWnd, L"非管理员", L"111", MB_OK);
-	}
+    SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
+
+    BOOL isAdmin = CSystem::IsRunasAdmin();
+
+    if(isAdmin)
+    {
+        //MessageBox(m_hWnd, L"管理员", L"111", MB_OK);
+    }
+    else
+    {
+        //MessageBox(m_hWnd, L"非管理员", L"111", MB_OK);
+    }
 
-	SetHwnd(m_hWnd);
+    SetHwnd(m_hWnd);
 
-	BOOL ret = InstallHook();
+    BOOL ret = InstallHook();
 
-	LONG id = GetWindowLongW((HWND)0x00211108, GWL_ID);
-	LONG b = id;
+    LONG id = GetWindowLongW((HWND)0x00211108, GWL_ID);
+    LONG b = id;
 
-	TCHAR szTitle[MAX_PATH];
-	LPWSTR lpWindowName = szTitle;
+    TCHAR szTitle[MAX_PATH];
+    LPWSTR lpWindowName = szTitle;
 
-	::SendMessageW((HWND)0x00081342, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
-	wstring a = lpWindowName;
+    ::SendMessageW((HWND)0x00081342, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
+    wstring a = lpWindowName;
 
-	std::thread(&CValueWnd::ReadValue, this).detach();
+    std::thread(&CValueWnd::ReadValue, this).detach();
 
-	std::thread(&CValueWnd::WatchWnd, this).detach();
+    std::thread(&CValueWnd::WatchWnd, this).detach();
 }
 
 void CValueWnd::ReadValue()
 {
-	//读取串口的模式
-	//CComHelper helper;
-	//std::vector<std::wstring> comVector = helper.getComPort();
+    //读取串口的模式
+    //CComHelper helper;
+    //std::vector<std::wstring> comVector = helper.getComPort();
 
-	//for (std::vector<std::wstring>::iterator it = comVector.begin(); it != comVector.end(); it++)
-	//{
-	//	std::wstring comName = *it;
-	//	LOG_INFO("comName:" << comName.c_str());
-	//}
+    //for (std::vector<std::wstring>::iterator it = comVector.begin(); it != comVector.end(); it++)
+    //{
+    //	std::wstring comName = *it;
+    //	LOG_INFO("comName:" << comName.c_str());
+    //}
 
-	//int nReadType = 1;
+    //int nReadType = 1;
 
-	//if (nReadType == 1)
-	//{
-	//	std::wstring com_name = L"COM2";
-	//	CSerialPort serial(com_name.c_str(), 2400);
+    //if (nReadType == 1)
+    //{
+    //	std::wstring com_name = L"COM2";
+    //	CSerialPort serial(com_name.c_str(), 2400);
 
-	//	bool ret = serial.openComm();
-	//	if (!ret)
-	//	{
-	//		LOG_INFO("open com failed!");
-	//		return;
-	//	}
+    //	bool ret = serial.openComm();
+    //	if (!ret)
+    //	{
+    //		LOG_INFO("open com failed!");
+    //		return;
+    //	}
 
-	//	while (true)
-	//	{
-	//		//开始读取串口的数据			
-	//		char a[1024] = { 0 };
-	//		serial.readFromComm(a, 1024);
+    //	while (true)
+    //	{
+    //		//开始读取串口的数据
+    //		char a[1024] = { 0 };
+    //		serial.readFromComm(a, 1024);
 
-	//		LOG_INFO("a:" << a);
+    //		LOG_INFO("a:" << a);
 
-	//		Sleep(200);
-	//	}
+    //		Sleep(200);
+    //	}
 
-	//	serial.closeComm();
-	//}
+    //	serial.closeComm();
+    //}
 
 
-	FindValueWnd(L"");
+    FindValueWnd(L"");
 }
 
 void CValueWnd::WatchWnd()
 {
-	while (true)
-	{
-		if (m_watchWnd != NULL)
-		{
-			char szTitle[MAX_PATH] = { 0 };
-
-			LPSTR lpWindowName = szTitle;
-
-			std::string value;
-
-			int ret = ::SendMessageA(m_watchWnd, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
-			if (ret == 0)
-			{
-				//说明m_watchWnd已经失效了
-				value = "0.00";
-
-				m_watchWnd = NULL;
-			}
-			else
-			{
-				value = lpWindowName;
-			}
-
-			if (value != m_watchValue)
-			{
-				m_watchValue = value;
-
-				SendMessage(WM_WATCH_WND_UPDATE, NULL, NULL);
-			}
-		}
-		else
-		{
-			//根据上次保存的记录,来查找符合条件的窗口
-			if (g_valuewnd_vector.size() > 0)
-			{
-				ValueWnd lastWnd = g_valuewnd_vector[0];
-
-				//获得进程名字
-				std::wstring processName = lastWnd.processName;
-
-				//根据进程名字,找到对应的主窗口
-			}
-		}
-
-		Sleep(200);
-	}
+    while(true)
+    {
+        if(m_watchWnd != NULL)
+        {
+            char szTitle[MAX_PATH] = { 0 };
+
+            LPSTR lpWindowName = szTitle;
+
+            std::string value;
+
+            int ret = ::SendMessageA(m_watchWnd, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
+
+            if(ret == 0)
+            {
+                //说明m_watchWnd已经失效了
+                value = "0.00";
+
+                m_watchWnd = NULL;
+            }
+            else
+            {
+                value = lpWindowName;
+            }
+
+            if(value != m_watchValue)
+            {
+                m_watchValue = value;
+
+                SendMessage(WM_WATCH_WND_UPDATE, NULL, NULL);
+            }
+        }
+        else
+        {
+            //根据上次保存的记录,来查找符合条件的窗口
+            if(g_valuewnd_vector.size() > 0)
+            {
+                ValueWnd lastWnd = g_valuewnd_vector[0];
+
+                //获得进程名字
+                std::wstring processName = lastWnd.processName;
+
+                //根据进程名字,找到对应的主窗口
+                HWND mainWnd = GetWndHwnd(processName.c_str(), lastWnd.wndTitle);
+
+                if(mainWnd ==  NULL)
+                {
+                    //说明这个进程还没有启动
+                    m_watchWnd = NULL;
+                }
+                else
+                {
+                    //根据Z序查找目标窗口
+                    char szTitle[MAX_PATH] = { 0 };
+                    int nMaxCount = MAX_PATH;
+
+                    LPSTR lpWindowName = szTitle;
+
+                    GetWindowTextA(mainWnd, lpWindowName, nMaxCount);
+
+					if (string(lpWindowName) != lastWnd.wndTitle)
+					{
+						//这次根据进程名字找到的主窗口,窗口名字和上次的不一样,无效
+						m_watchWnd = NULL;
+					}
+					else
+					{
+						ValueWnd newWnd;
+						newWnd.wndTitle = lpWindowName;
+						newWnd.TopWnd = mainWnd;
+						newWnd.z_order = lastWnd.z_order;
+						newWnd.processName = lastWnd.processName;
+						newWnd.selfWnd = NULL;
+
+						g_zorder = 0;
+
+						EnumChildWindows(mainWnd, EnumMainwndChildProc, (LPARAM)(&newWnd));
+
+						if (newWnd.selfWnd != NULL)
+						{
+							//找到了
+							m_watchWnd = newWnd.selfWnd;
+						}
+					}
+                }
+            }
+        }
+
+        Sleep(200);
+    }
 }
 
 LRESULT CValueWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	LONG styleValue = ::GetWindowLong(*this, GWL_STYLE);
-	styleValue &= ~WS_CAPTION;
-	::SetWindowLong(*this, GWL_STYLE, styleValue | WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
+    LONG styleValue = ::GetWindowLong(*this, GWL_STYLE);
+    styleValue &= ~WS_CAPTION;
+    ::SetWindowLong(*this, GWL_STYLE, styleValue | WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
 
-	// 把自己的窗口句柄与窗口绘制管理器挂接在一起
-	m_pm.Init(m_hWnd);
+    // 把自己的窗口句柄与窗口绘制管理器挂接在一起
+    m_pm.Init(m_hWnd);
 
-	m_pm.AddPreMessageFilter(this);
+    m_pm.AddPreMessageFilter(this);
 
-	CDialogBuilder builder;
+    CDialogBuilder builder;
 
-	CControlUI* pRoot = builder.Create(_T("value.xml"), (UINT)0, NULL, &m_pm);
-	ASSERT(pRoot && "Failed to parse XML");
+    CControlUI* pRoot = builder.Create(_T("value.xml"), (UINT)0, NULL, &m_pm);
+    ASSERT(pRoot && "Failed to parse XML");
 
-	// 把这些控件绘制到本窗口上
-	m_pm.AttachDialog(pRoot);
+    // 把这些控件绘制到本窗口上
+    m_pm.AttachDialog(pRoot);
 
-	// 把自己加入到CPaintManagerUI的m_aNotifiers数组中,用于处理Notify函数
-	m_pm.AddNotifier(this);
+    // 把自己加入到CPaintManagerUI的m_aNotifiers数组中,用于处理Notify函数
+    m_pm.AddNotifier(this);
 
-	Init();
+    Init();
 
-	return 0;
+    return 0;
 }
 
 LRESULT CValueWnd::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	bHandled = FALSE;
-	return 0;
+    bHandled = FALSE;
+    return 0;
 }
 
 /*
@@ -185,290 +225,225 @@ LRESULT CValueWnd::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandl
  **/
 LRESULT CValueWnd::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	bHandled = FALSE;
-	return 0;
+    bHandled = FALSE;
+    return 0;
 }
 
 LRESULT CValueWnd::OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	if (::IsIconic(*this))
-	{
-		bHandled = FALSE;
-	}
+    if(::IsIconic(*this))
+    {
+        bHandled = FALSE;
+    }
 
-	return (wParam == 0) ? TRUE : FALSE;
+    return (wParam == 0) ? TRUE : FALSE;
 }
 
 LRESULT CValueWnd::OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	return 0;
+    return 0;
 }
 
 LRESULT CValueWnd::OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	//在这里设置焦点才有用
-	CEditUI* pAccountEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("accountedit")));
+    //在这里设置焦点才有用
+    CEditUI* pAccountEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("accountedit")));
 
-	if (pAccountEdit)
-	{
-		pAccountEdit->SetFocus();
-	}
+    if(pAccountEdit)
+    {
+        pAccountEdit->SetFocus();
+    }
 
-	return 0;
+    return 0;
 }
 
 LRESULT CValueWnd::OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	POINT pt;
-	pt.x = GET_X_LPARAM(lParam);
-	pt.y = GET_Y_LPARAM(lParam);
-	::ScreenToClient(*this, &pt);
+    POINT pt;
+    pt.x = GET_X_LPARAM(lParam);
+    pt.y = GET_Y_LPARAM(lParam);
+    ::ScreenToClient(*this, &pt);
 
-	RECT rcClient;
-	::GetClientRect(*this, &rcClient);
+    RECT rcClient;
+    ::GetClientRect(*this, &rcClient);
 
-	RECT rcCaption = m_pm.GetCaptionRect();
+    RECT rcCaption = m_pm.GetCaptionRect();
 
-	if (pt.x >= rcClient.left + rcCaption.left && pt.x < rcClient.right - rcCaption.right \
-		&& pt.y >= rcCaption.top && pt.y < rcCaption.bottom)
-	{
-		CControlUI* pControl = static_cast<CControlUI*>(m_pm.FindControl(pt));
+    if(pt.x >= rcClient.left + rcCaption.left && pt.x < rcClient.right - rcCaption.right \
+            && pt.y >= rcCaption.top && pt.y < rcCaption.bottom)
+    {
+        CControlUI* pControl = static_cast<CControlUI*>(m_pm.FindControl(pt));
 
-		if (pControl && _tcscmp(pControl->GetClass(), DUI_CTR_BUTTON) != 0)
-		{
-			return HTCAPTION;
-		}
-	}
+        if(pControl && _tcscmp(pControl->GetClass(), DUI_CTR_BUTTON) != 0)
+        {
+            return HTCAPTION;
+        }
+    }
 
-	return HTCLIENT;
+    return HTCLIENT;
 }
 
 LRESULT CValueWnd::OnKexianUpdate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	//收到了客显数据消息,读取客显数据
-	char data[MAX_DATA_LENGTH] = { 0 };
-	int data_length = 0;
+    //收到了客显数据消息,读取客显数据
+    char data[MAX_DATA_LENGTH] = { 0 };
+    int data_length = 0;
 
-	HookGetData(data, &data_length);
+    HookGetData(data, &data_length);
 
-	if (data_length == 0)
-	{
-		return true;
-	}
+    if(data_length == 0)
+    {
+        return true;
+    }
 
-	UpdateKexian(data, data_length);
+    UpdateKexian(data, data_length);
 
-	return true;
+    return true;
 }
 
 LRESULT CValueWnd::OnWatchWndUpdate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
-	CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
+    CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
 
-	std::string money_show = CLewaimaiString::DoubleToString(atof(m_watchValue.c_str()), 2);
-	valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
+    std::string money_show = CLewaimaiString::DoubleToString(atof(m_watchValue.c_str()), 2);
+    valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
 
-	return TRUE;
+    return TRUE;
 }
 
 LRESULT CValueWnd::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
 {
-	LRESULT lRes = 0;
-	BOOL bHandled = TRUE;
-
-	switch (uMsg)
-	{
-	case WM_CREATE:
-		lRes = OnCreate(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_CLOSE:
-		lRes = OnClose(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_DESTROY:
-		lRes = OnDestroy(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_NCACTIVATE:
-		lRes = OnNcActivate(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_NCCALCSIZE:
-		lRes = OnNcCalcSize(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_NCPAINT:
-		lRes = OnNcPaint(uMsg, wParam, lParam, bHandled);
-		break;
-
-	case WM_NCHITTEST:
-		lRes = OnNcHitTest(uMsg, wParam, lParam, bHandled);
-		break;
-	case WM_HOOK_MESSAGE:
-		lRes = OnKexianUpdate(uMsg, wParam, lParam, bHandled);
-		break;
-	case WM_WATCH_WND_UPDATE:
-		lRes = OnWatchWndUpdate(uMsg, wParam, lParam, bHandled);
-		break;
-	default:
-		bHandled = FALSE;
-	}
-
-	if (bHandled)
-	{
-		return lRes;
-	}
-
-	if (m_pm.MessageHandler(uMsg, wParam, lParam, lRes))
-	{
-		return lRes;
-	}
-
-	return CWindowWnd::HandleMessage(uMsg, wParam, lParam);
+    LRESULT lRes = 0;
+    BOOL bHandled = TRUE;
+
+    switch(uMsg)
+    {
+    case WM_CREATE:
+        lRes = OnCreate(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_CLOSE:
+        lRes = OnClose(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_DESTROY:
+        lRes = OnDestroy(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_NCACTIVATE:
+        lRes = OnNcActivate(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_NCCALCSIZE:
+        lRes = OnNcCalcSize(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_NCPAINT:
+        lRes = OnNcPaint(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_NCHITTEST:
+        lRes = OnNcHitTest(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_HOOK_MESSAGE:
+        lRes = OnKexianUpdate(uMsg, wParam, lParam, bHandled);
+        break;
+
+    case WM_WATCH_WND_UPDATE:
+        lRes = OnWatchWndUpdate(uMsg, wParam, lParam, bHandled);
+        break;
+
+    default:
+        bHandled = FALSE;
+    }
+
+    if(bHandled)
+    {
+        return lRes;
+    }
+
+    if(m_pm.MessageHandler(uMsg, wParam, lParam, lRes))
+    {
+        return lRes;
+    }
+
+    return CWindowWnd::HandleMessage(uMsg, wParam, lParam);
 }
 
 LRESULT CValueWnd::MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled)
 {
-	return false;
+    return false;
 }
 
 void CValueWnd::UpdateKexian(const char* data, int length)
 {
-	std::string new_data = data;
-
-	std::string show_command = "\x1bQA";
-	std::string type_command = "\x1bs";
-
-	std::string money;
-
-	if (new_data.find(show_command) == new_data.npos)
-	{
-		return;
-	}
+    std::string new_data = data;
 
-	int nPos = new_data.find(show_command);
+    std::string show_command = "\x1bQA";
+    std::string type_command = "\x1bs";
 
-	int nTypePos = new_data.find(type_command, nPos + 1);
-	if (nTypePos == new_data.npos)
-	{
-		//没有类型信息,有些收银机(比如思迅天店)就是不传类型信息,这种只有传什么显示什么了
-		int nTabPos = new_data.find("\r", nPos + 1);
+    std::string money;
 
-		if (nTabPos == new_data.npos)
-		{
-			//制表符也没有
-			return;
-		}
+    if(new_data.find(show_command) == new_data.npos)
+    {
+        return;
+    }
 
-		money = new_data.substr(nPos + 3, nTabPos - nPos - 3);
-
-		CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
-
-		std::string money_show = CLewaimaiString::DoubleToString(atof(money.c_str()), 2);
-		valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
-	}
-	else
-	{
-		std::string value_type = new_data.substr(nTypePos + 2, 1);		
-		money = new_data.substr(nPos + 3, nTypePos - nPos - 3 - 1);
-
-		if (value_type == "2")
-		{
-			//这个表示是总计的,那么就要刷新金额显示
-			CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
-
-			std::string money_show = CLewaimaiString::DoubleToString(atof(money.c_str()), 2);
-			valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
-		}
-	}
-
-	return;
-}
-
-BOOL CALLBACK EnumChildProc(HWND  hwnd, LPARAM lParam)
-{
-	if (IsWindow(hwnd) && IsWindowVisible(hwnd))
-	{
-		g_zorder++;
-
-		TCHAR szTitle[MAX_PATH] = { 0 };
-		TCHAR szClass[MAX_PATH] = { 0 };
-		int nMaxCount = MAX_PATH;
-
-		LPWSTR lpClassName = szClass;
-		LPWSTR lpWindowName = szTitle;
-
-		::SendMessageW(hwnd, WM_GETTEXT, (WPARAM)(MAX_PATH), (LPARAM)lpWindowName);
-		GetClassName(hwnd, lpClassName, nMaxCount);
-
-		if (wstring(szTitle) == L"59.3")
-		{
-			LOG_INFO("[Child window] window handle: " << hwnd << " window name: "
-				<< lpWindowName << " class name " << lpClassName);
-
-			ValueWnd* newWnd = (ValueWnd*)lParam;
-			newWnd->z_order = g_zorder;
-			newWnd->selfWnd = hwnd;
-
-			g_valuewnd_vector.push_back(*newWnd);
-		}
-	}
-
-	return TRUE;
-}
-
-BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
-{
-	if (IsWindow(hwnd) && IsWindowVisible(hwnd))
-	{
-		char szTitle[MAX_PATH] = { 0 };
-		char szClass[MAX_PATH] = { 0 };
-		int nMaxCount = MAX_PATH;
+    int nPos = new_data.find(show_command);
 
-		LPSTR lpClassName = szClass;
-		LPSTR lpWindowName = szTitle;
+    int nTypePos = new_data.find(type_command, nPos + 1);
 
-		GetWindowTextA(hwnd, lpWindowName, nMaxCount);
-		GetClassNameA(hwnd, lpClassName, nMaxCount);
+    if(nTypePos == new_data.npos)
+    {
+        //没有类型信息,有些收银机(比如思迅天店)就是不传类型信息,这种只有传什么显示什么了
+        int nTabPos = new_data.find("\r", nPos + 1);
 
-		LOG_INFO("[Parent window] window handle: " << hwnd << " window name: "
-			<< lpWindowName << " class name " << lpClassName);
+        if(nTabPos == new_data.npos)
+        {
+            //制表符也没有
+            return;
+        }
 
-		ValueWnd newWnd;
-		newWnd.wndTitle = lpWindowName;
-		newWnd.TopWnd = hwnd;
-		
-		DWORD id;
-		GetWindowThreadProcessId(hwnd, &id);
+        money = new_data.substr(nPos + 3, nTabPos - nPos - 3);
 
-		TCHAR processName[MAX_PATH] = { 0 };
-		CSystem::processIdToName(processName, id);
+        CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
 
-		newWnd.processName = processName;
+        std::string money_show = CLewaimaiString::DoubleToString(atof(money.c_str()), 2);
+        valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
+    }
+    else
+    {
+        std::string value_type = new_data.substr(nTypePos + 2, 1);
+        money = new_data.substr(nPos + 3, nTypePos - nPos - 3 - 1);
 
-		g_zorder = 0;
+        if(value_type == "2")
+        {
+            //这个表示是总计的,那么就要刷新金额显示
+            CLabelUI* valueLabel = static_cast<CLabelUI*>(m_pm.FindControl(_T("value")));
 
-		EnumChildWindows(hwnd, EnumChildProc, (LPARAM)(&newWnd));
-	}
+            std::string money_show = CLewaimaiString::DoubleToString(atof(money.c_str()), 2);
+            valueLabel->SetText(CLewaimaiString::UTF8ToUnicode(money_show).c_str());
+        }
+    }
 
-	return TRUE;
+    return;
 }
 
 void CValueWnd::FindValueWnd(std::wstring value)
 {
-	//先查找子窗口
-	EnumWindows(EnumWindowsProc, NULL);
+    //先查找子窗口
+    EnumWindows(EnumWindowsProc, NULL);
 
-	//展示查找结果
-	int nCount = (int)g_valuewnd_vector.size();
+    //展示查找结果
+    int nCount = (int)g_valuewnd_vector.size();
 
-	if (nCount > 0)
-	{
-		//开始监听这个窗口的内容变化
-		ValueWnd selectWnd = g_valuewnd_vector[0];
+    if(nCount > 0)
+    {
+        //开始监听这个窗口的内容变化
+        ValueWnd selectWnd = g_valuewnd_vector[0];
 
-		m_watchWnd = selectWnd.selfWnd;
-	}
+        m_watchWnd = selectWnd.selfWnd;
+    }
 }
 

+ 1 - 8
zhipuzi_pay_plugin/wnd/CValueWnd.h

@@ -3,14 +3,7 @@
 #include "../pch/pch.h"
 #include <zpzDll/zpzDll.h>
 
-struct ValueWnd
-{
-	std::string wndTitle;
-	std::wstring processName;
-	int z_order;
-	HWND TopWnd;
-	HWND selfWnd;
-};
+#include "../helper/WndHelper.h"
 
 class CValueWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
 {

+ 2 - 0
zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj

@@ -220,6 +220,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemGroup>
+    <ClInclude Include="helper\WndHelper.h" />
     <ClInclude Include="tool\CSerialPort.h" />
     <ClInclude Include="tool\CComHelper.h" />
     <ClInclude Include="wnd\CValueWnd.h" />
@@ -253,6 +254,7 @@ copy $(ProjectDir)conf\ $(SolutionDir)bin\$(Platform)\$(Configuration)\conf\</Co
     <ClInclude Include="control\OrderListUI.h" />
   </ItemGroup>
   <ItemGroup>
+    <ClCompile Include="helper\WndHelper.cpp" />
     <ClCompile Include="tool\CSerialPort.cpp" />
     <ClCompile Include="tool\CComHelper.cpp" />
     <ClCompile Include="wnd\CValueWnd.cpp" />

+ 6 - 0
zhipuzi_pay_plugin/zhipuzi_pay_plugin.vcxproj.filters

@@ -108,6 +108,9 @@
     <ClInclude Include="tool\CSerialPort.h">
       <Filter>头文件</Filter>
     </ClInclude>
+    <ClInclude Include="helper\WndHelper.h">
+      <Filter>头文件</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="pch\pch.cpp">
@@ -194,6 +197,9 @@
     <ClCompile Include="tool\CSerialPort.cpp">
       <Filter>源文件</Filter>
     </ClCompile>
+    <ClCompile Include="helper\WndHelper.cpp">
+      <Filter>源文件</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <Image Include="resource\zhipuzi.ico">