neutrinolabs / NeutrinoRDP

This is a fork of FreeRDP 1.0.1
Apache License 2.0
57 stars 75 forks source link

windows server 2016 no Administrator account cursor abnormal. #14

Closed guchuanhang closed 6 years ago

guchuanhang commented 6 years ago

Recently,I use xrdp and Neutrinordp framework to finish a rdp proxy for windows server 2016. The strange problem is that , when use the Administrator account all is ok. However if you use other account(eg.rdp_test_001),the mouse is just a black rectangle when you explore folders.

I have tried to trace code but end with rdp.c rdp_recv_data_pdu() case DATA_PDU_TYPE_SAVE_SESSION_INFO.

My study as follow:

rdp_recv_data_pdu() case DATA_PDU_TYPE_SAVE_SESSION_INFO will execute 2 times or 3 times.

If you use the Administrator account rdp_recv_data_pdu() case DATA_PDU_TYPE_SAVE_SESSION_INFO always execute 3 times.

If you use rdp_test_001 account rdp_recv_data_pdu() case DATA_PDU_TYPE_SAVE_SESSION_INFO will execute 2 times,sometimes 3 times.

rdp_test_001 account cursor will always abnormal.

Administrator account 3 time xrdp_rdp_send_session_info: data_bytes 592 xrdp_rdp_send_session_info: data_bytes 634 xrdp_rdp_send_session_info: data_bytes 612

rdp_test_001 2 time xrdp_rdp_send_session_info: data_bytes 632 xrdp_rdp_send_session_info: data_bytes 612

I suspect "634 compare 632 ", pass less bytes affect cursor.

Any suggestion is apprecitate.

speidy commented 6 years ago

This have nothing to do with the session info struct. The large pointer support is not yet merged in xrdp master (but i think was implemented by @jsorg71) and I believe that’s the problem you face. Maybe in administrator account the pointer type is not an "Aero scheme" but a normal old-style mouse pointer. This can be configured through Control Panel -> Mouse settings.

Some more protocol reference: https://msdn.microsoft.com/en-us/library/cc240650.aspx

speidy commented 6 years ago

BTW, this is more an xrdp issue, rather than NeutrinoRDP.

guchuanhang commented 6 years ago

I'm sorry for my poor description.In appearance,it's the account type ,the Administrator account cursor ok,but other users in Administrators group cursor abnormal. I think maybe some windows UAC affect it. Try it again, the other users cursor not always abnormal, sometimes it appear normal and abnormal alternately,for most time it just abnormal——a rectangle black .

speidy commented 6 years ago

Your description was OK, the black rectangle happens for large pointers on the remote server.

As a workaround , try to switch the pointer type in the mouse settings in control panel on the remote server. בתאריך יום ו׳, 19 בינו׳ 2018 ב-12:53 מאת guchuanhang < notifications@github.com>:

I'm sorry for my poor description.In appearance,it's the account type ,the Administrator cursor ok,but other users in Administrators group cursor abnormal. I think maybe some windows UAC affect it. Try it again, the other users cursor not always abnormal, sometimes it appear normal and abnormal alternately,for most time it just abnormal——a rectangle black .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neutrinolabs/NeutrinoRDP/issues/14#issuecomment-358932636, or mute the thread https://github.com/notifications/unsubscribe-auth/ADTH1JjXrkbcB-6fmudES-jnxAhKkvU2ks5tMHQPgaJpZM4RkGLt .

-- Idan Freiberg

PGP FP: 8108 7EC9 806E 4980 75F2 72B3 8AD3 2D04 337B 1F18

guchuanhang commented 6 years ago

Thanks a lot. As you suggestion, uncheck "start pointer shader" all is ok. Use @jsorg71 make no difference to no Administrator account black rectangle pointer problem.