From 3b9b17a00716128ed9f68728c31714f753b8e9ea Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 24 May 2018 19:35:16 +0300 Subject: Implemented Remote Debugging for panel PC as VS command using PsiExec! Started investigating the Surface SDK controls. --- .../Notes/Tango.Notes/PanelPC/Remote Debugging.txt | 17 ++++++++ .../Notes/Tango.Notes/PanelPC/Touch.txt | 14 ++++++ .../Notes/Tango.Notes/Properties/AssemblyInfo.cs | 36 ++++++++++++++++ .../Notes/Tango.Notes/Tango.Notes.csproj | 50 ++++++++++++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Remote Debugging.txt create mode 100644 Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Touch.txt create mode 100644 Software/Visual_Studio/Notes/Tango.Notes/Properties/AssemblyInfo.cs create mode 100644 Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj (limited to 'Software/Visual_Studio/Notes/Tango.Notes') diff --git a/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Remote Debugging.txt b/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Remote Debugging.txt new file mode 100644 index 000000000..a7d1ef40a --- /dev/null +++ b/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Remote Debugging.txt @@ -0,0 +1,17 @@ +To use PsExec on a Windows 10 remote machine we need to apply a registry patch: + +1. Open RegEdit on your remote server +2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System +3. Add a new DWORD value called LocalAccountTokenFilterPolicy +4. Set its value to 1 + +Example Usage: + +-> User Name +-> Password +-> HostName +-> Absolute/relative file path. +-> '-d' means don't wait for the process to exit. (Not sure it is working) +-> '-accepteula' means suppress the license dialog. + +psexec -u panel-pc -p Aa123456 -i \\panel-pc "\\Twine01\data\Roy BACKUP\Debug\PanelTest.exe" -d -accepteula \ No newline at end of file diff --git a/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Touch.txt b/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Touch.txt new file mode 100644 index 000000000..ba8eb01ed --- /dev/null +++ b/Software/Visual_Studio/Notes/Tango.Notes/PanelPC/Touch.txt @@ -0,0 +1,14 @@ +There are several useful registry settings for the Touch Wisp component. + +CURRENT_USER\SOFTWARE\MICROSOFT\Wisp\Touch + +If we are working on .NET 4.7 & Windows 10 +We can take advantage of the new touch engine (Not Wisp). + +To enable the new touch engine on a WPF application, add the following to the app.config. + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/Notes/Tango.Notes/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Notes/Tango.Notes/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..2113058a9 --- /dev/null +++ b/Software/Visual_Studio/Notes/Tango.Notes/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Tango.Notes")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Tango.Notes")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("09ee4bc6-f1c6-46dd-b4fe-918377a4ef02")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj new file mode 100644 index 000000000..9beca48ec --- /dev/null +++ b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj @@ -0,0 +1,50 @@ + + + + + Debug + AnyCPU + {09EE4BC6-F1C6-46DD-B4FE-918377A4EF02} + Library + Properties + Tango.Notes + Tango.Notes + v4.6 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.3.1