diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-24 19:35:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-24 19:35:16 +0300 |
| commit | 3b9b17a00716128ed9f68728c31714f753b8e9ea (patch) | |
| tree | 626699296ceb7ea5119e664f99554b53db31cde9 /Software/Visual_Studio/Notes | |
| parent | 5fd370643691a312e1266f138982d784f0f9ebb1 (diff) | |
| download | Tango-3b9b17a00716128ed9f68728c31714f753b8e9ea.tar.gz Tango-3b9b17a00716128ed9f68728c31714f753b8e9ea.zip | |
Implemented Remote Debugging for panel PC as VS command using PsiExec!
Started investigating the Surface SDK controls.
Diffstat (limited to 'Software/Visual_Studio/Notes')
4 files changed, 117 insertions, 0 deletions
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. + +<configuration> + <runtime> + <AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.EnablePointerSupport=true"/> + </runtime> +</configuration>
\ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{09EE4BC6-F1C6-46DD-B4FE-918377A4EF02}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Tango.Notes</RootNamespace> + <AssemblyName>Tango.Notes</AssemblyName> + <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Net.Http" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <Content Include="PanelPC\Remote Debugging.txt" /> + <Content Include="PanelPC\Touch.txt" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file |
