├── .gitattributes
├── .gitignore
├── DesktopBridge.Helpers.sln
├── DesktopBridge.Helpers
├── DesktopBridge.Helpers.csproj
└── Helpers.cs
├── LICENSE
├── LICENSE.md
├── README.md
├── SECURITY.md
└── Samples
├── ConsoleApplication
├── ConsoleApplication.App
│ ├── App.config
│ ├── ConsoleApplication.App.csproj
│ ├── Program.cs
│ └── Properties
│ │ └── AssemblyInfo.cs
└── ConsoleApplication.Package
│ ├── ConsoleApplication.Package.wapproj
│ ├── Images
│ ├── LockScreenLogo.scale-200.png
│ ├── SplashScreen.scale-200.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ ├── StoreLogo.png
│ └── Wide310x150Logo.scale-200.png
│ ├── package.appxmanifest
│ └── win32
│ ├── ConsoleApplication.App.exe
│ ├── ConsoleApplication.App.exe.config
│ └── DesktopBridge.Helpers.dll
├── WindowsForms
├── WindowsForms.App
│ ├── App.config
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── WindowsForms.App.csproj
└── WindowsForms.Package
│ ├── Images
│ ├── LockScreenLogo.scale-200.png
│ ├── SplashScreen.scale-200.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ ├── StoreLogo.png
│ └── Wide310x150Logo.scale-200.png
│ ├── WindowsForms.Package.wapproj
│ ├── package.appxmanifest
│ └── win32
│ ├── DesktopBridge.Helpers.dll
│ ├── WindowsForms.App.exe
│ └── WindowsForms.App.exe.config
├── WpfApplication
├── WpfApplication.App
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── WpfApplication.App.csproj
└── WpfApplication.Package
│ ├── Images
│ ├── LockScreenLogo.scale-200.png
│ ├── SplashScreen.scale-200.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ ├── StoreLogo.png
│ └── Wide310x150Logo.scale-200.png
│ ├── WpfApplication.Package.wapproj
│ └── package.appxmanifest
└── WpfNetCore
├── WpfNetCore.App
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
└── WpfNetCore.App.csproj
└── WpfNetCore.Package
├── Images
├── LockScreenLogo.scale-200.png
├── SplashScreen.scale-200.png
├── Square150x150Logo.scale-200.png
├── Square44x44Logo.scale-200.png
├── Square44x44Logo.targetsize-24_altform-unplated.png
├── StoreLogo.png
└── Wide310x150Logo.scale-200.png
├── Package.appxmanifest
└── WpfNetCore.Package.wapproj
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | [Xx]64/
19 | [Xx]86/
20 | [Bb]uild/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | artifacts/
46 |
47 | *_i.c
48 | *_p.c
49 | *_i.h
50 | *.ilk
51 | *.meta
52 | *.obj
53 | *.pch
54 | *.pdb
55 | *.pgc
56 | *.pgd
57 | *.rsp
58 | *.sbr
59 | *.tlb
60 | *.tli
61 | *.tlh
62 | *.tmp
63 | *.tmp_proj
64 | *.log
65 | *.vspscc
66 | *.vssscc
67 | .builds
68 | *.pidb
69 | *.svclog
70 | *.scc
71 |
72 | # Chutzpah Test files
73 | _Chutzpah*
74 |
75 | # Visual C++ cache files
76 | ipch/
77 | *.aps
78 | *.ncb
79 | *.opendb
80 | *.opensdf
81 | *.sdf
82 | *.cachefile
83 | *.VC.db
84 |
85 | # Visual Studio profiler
86 | *.psess
87 | *.vsp
88 | *.vspx
89 | *.sap
90 |
91 | # TFS 2012 Local Workspace
92 | $tf/
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 | *.DotSettings.user
101 |
102 | # JustCode is a .NET coding add-in
103 | .JustCode
104 |
105 | # TeamCity is a build add-in
106 | _TeamCity*
107 |
108 | # DotCover is a Code Coverage Tool
109 | *.dotCover
110 |
111 | # NCrunch
112 | _NCrunch_*
113 | .*crunch*.local.xml
114 | nCrunchTemp_*
115 |
116 | # MightyMoose
117 | *.mm.*
118 | AutoTest.Net/
119 |
120 | # Web workbench (sass)
121 | .sass-cache/
122 |
123 | # Installshield output folder
124 | [Ee]xpress/
125 |
126 | # DocProject is a documentation generator add-in
127 | DocProject/buildhelp/
128 | DocProject/Help/*.HxT
129 | DocProject/Help/*.HxC
130 | DocProject/Help/*.hhc
131 | DocProject/Help/*.hhk
132 | DocProject/Help/*.hhp
133 | DocProject/Help/Html2
134 | DocProject/Help/html
135 |
136 | # Click-Once directory
137 | publish/
138 |
139 | # Publish Web Output
140 | *.[Pp]ublish.xml
141 | *.azurePubxml
142 |
143 | # TODO: Un-comment the next line if you do not want to checkin
144 | # your web deploy settings because they may include unencrypted
145 | # passwords
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # NuGet Packages
150 | *.nupkg
151 | # The packages folder can be ignored because of Package Restore
152 | **/packages/*
153 | # except build/, which is used as an MSBuild target.
154 | !**/packages/build/
155 | # Uncomment if necessary however generally it will be regenerated when needed
156 | #!**/packages/repositories.config
157 | # NuGet v3's project.json files produces more ignoreable files
158 | *.nuget.props
159 | *.nuget.targets
160 |
161 | # Microsoft Azure Build Output
162 | csx/
163 | *.build.csdef
164 |
165 | # Microsoft Azure Emulator
166 | ecf/
167 | rcf/
168 |
169 | # Windows Store app package directory
170 | AppPackages/
171 | BundleArtifacts/
172 |
173 | # Visual Studio cache files
174 | # files ending in .cache can be ignored
175 | *.[Cc]ache
176 | # but keep track of directories ending in .cache
177 | !*.[Cc]ache/
178 |
179 | # Others
180 | ClientBin/
181 | [Ss]tyle[Cc]op.*
182 | ~$*
183 | *~
184 | *.dbmdl
185 | *.dbproj.schemaview
186 | *.pfx
187 | *.publishsettings
188 | node_modules/
189 | orleans.codegen.cs
190 |
191 | # RIA/Silverlight projects
192 | Generated_Code/
193 |
194 | # Backup & report files from converting an old project file
195 | # to a newer Visual Studio version. Backup files are not needed,
196 | # because we have git ;-)
197 | _UpgradeReport_Files/
198 | Backup*/
199 | UpgradeLog*.XML
200 | UpgradeLog*.htm
201 |
202 | # SQL Server files
203 | *.mdf
204 | *.ldf
205 |
206 | # Business Intelligence projects
207 | *.rdl.data
208 | *.bim.layout
209 | *.bim_*.settings
210 |
211 | # Microsoft Fakes
212 | FakesAssemblies/
213 |
214 | # GhostDoc plugin setting file
215 | *.GhostDoc.xml
216 |
217 | # Node.js Tools for Visual Studio
218 | .ntvs_analysis.dat
219 |
220 | # Visual Studio 6 build log
221 | *.plg
222 |
223 | # Visual Studio 6 workspace options file
224 | *.opt
225 |
226 | # Visual Studio LightSwitch build output
227 | **/*.HTMLClient/GeneratedArtifacts
228 | **/*.DesktopClient/GeneratedArtifacts
229 | **/*.DesktopClient/ModelManifest.xml
230 | **/*.Server/GeneratedArtifacts
231 | **/*.Server/ModelManifest.xml
232 | _Pvt_Extensions
233 |
234 | # LightSwitch generated files
235 | GeneratedArtifacts/
236 | ModelManifest.xml
237 |
238 | # Paket dependency manager
239 | .paket/paket.exe
240 |
241 | # FAKE - F# Make
242 | .fake/
--------------------------------------------------------------------------------
/DesktopBridge.Helpers.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.28516.95
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{D14A6F7B-27DA-4C28-A976-8CED01378EA5}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConsoleApplication", "ConsoleApplication", "{89B15E8C-428F-4D07-8668-73D59AB5D285}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication.App", "Samples\ConsoleApplication\ConsoleApplication.App\ConsoleApplication.App.csproj", "{FFBF21BB-8303-4470-9152-EC57C42716B1}"
11 | EndProject
12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windows Forms", "Windows Forms", "{30F30CDB-23F6-4A95-A07F-3D47136B9204}"
13 | EndProject
14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsForms.App", "Samples\WindowsForms\WindowsForms.App\WindowsForms.App.csproj", "{96DA9A20-B822-4F4E-899B-D3C6E1DC268E}"
15 | EndProject
16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{04445F10-A8B7-47DB-8894-C5C0BE70625C}"
17 | EndProject
18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApplication.App", "Samples\WpfApplication\WpfApplication.App\WpfApplication.App.csproj", "{FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}"
19 | EndProject
20 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DesktopBridge.Helpers", "DesktopBridge.Helpers\DesktopBridge.Helpers.csproj", "{D76EC0C3-9EDF-4917-9541-1AE875746472}"
21 | EndProject
22 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF (.NET Core)", "WPF (.NET Core)", "{C084AA33-D41A-4070-9D82-DC17B020A14A}"
23 | EndProject
24 | Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "ConsoleApplication.Package", "Samples\ConsoleApplication\ConsoleApplication.Package\ConsoleApplication.Package.wapproj", "{A76FF0C5-23A3-4A7B-B671-BBBA24730713}"
25 | EndProject
26 | Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "WindowsForms.Package", "Samples\WindowsForms\WindowsForms.Package\WindowsForms.Package.wapproj", "{479AD728-507B-436A-82D9-821179E13A99}"
27 | EndProject
28 | Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "WpfApplication.Package", "Samples\WpfApplication\WpfApplication.Package\WpfApplication.Package.wapproj", "{E373C139-D35D-45B8-8CC9-69A4418F6EAD}"
29 | EndProject
30 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WpfNetCore.App", "Samples\WpfNetCore\WpfNetCore.App\WpfNetCore.App.csproj", "{C6499739-404D-4781-84FC-824A658A8AE8}"
31 | EndProject
32 | Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "WpfNetCore.Package", "Samples\WpfNetCore\WpfNetCore.Package\WpfNetCore.Package.wapproj", "{2B30574C-E498-4F2E-9B66-7B18B701634C}"
33 | EndProject
34 | Global
35 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
36 | Debug|Any CPU = Debug|Any CPU
37 | Debug|ARM = Debug|ARM
38 | Debug|x64 = Debug|x64
39 | Debug|x86 = Debug|x86
40 | Release|Any CPU = Release|Any CPU
41 | Release|ARM = Release|ARM
42 | Release|x64 = Release|x64
43 | Release|x86 = Release|x86
44 | EndGlobalSection
45 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
46 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
48 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|ARM.ActiveCfg = Debug|Any CPU
49 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|ARM.Build.0 = Debug|Any CPU
50 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|x64.ActiveCfg = Debug|Any CPU
51 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|x64.Build.0 = Debug|Any CPU
52 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|x86.ActiveCfg = Debug|Any CPU
53 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Debug|x86.Build.0 = Debug|Any CPU
54 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
55 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|Any CPU.Build.0 = Release|Any CPU
56 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|ARM.ActiveCfg = Release|Any CPU
57 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|ARM.Build.0 = Release|Any CPU
58 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|x64.ActiveCfg = Release|Any CPU
59 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|x64.Build.0 = Release|Any CPU
60 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|x86.ActiveCfg = Release|Any CPU
61 | {FFBF21BB-8303-4470-9152-EC57C42716B1}.Release|x86.Build.0 = Release|Any CPU
62 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|Any CPU.Build.0 = Debug|Any CPU
64 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|ARM.ActiveCfg = Debug|Any CPU
65 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|ARM.Build.0 = Debug|Any CPU
66 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|x64.ActiveCfg = Debug|Any CPU
67 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|x64.Build.0 = Debug|Any CPU
68 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|x86.ActiveCfg = Debug|Any CPU
69 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Debug|x86.Build.0 = Debug|Any CPU
70 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|Any CPU.ActiveCfg = Release|Any CPU
71 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|Any CPU.Build.0 = Release|Any CPU
72 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|ARM.ActiveCfg = Release|Any CPU
73 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|ARM.Build.0 = Release|Any CPU
74 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|x64.ActiveCfg = Release|Any CPU
75 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|x64.Build.0 = Release|Any CPU
76 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|x86.ActiveCfg = Release|Any CPU
77 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}.Release|x86.Build.0 = Release|Any CPU
78 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
80 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|ARM.ActiveCfg = Debug|Any CPU
81 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|ARM.Build.0 = Debug|Any CPU
82 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|x64.ActiveCfg = Debug|Any CPU
83 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|x64.Build.0 = Debug|Any CPU
84 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|x86.ActiveCfg = Debug|Any CPU
85 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Debug|x86.Build.0 = Debug|Any CPU
86 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
87 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|Any CPU.Build.0 = Release|Any CPU
88 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|ARM.ActiveCfg = Release|Any CPU
89 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|ARM.Build.0 = Release|Any CPU
90 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|x64.ActiveCfg = Release|Any CPU
91 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|x64.Build.0 = Release|Any CPU
92 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|x86.ActiveCfg = Release|Any CPU
93 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}.Release|x86.Build.0 = Release|Any CPU
94 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
95 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|Any CPU.Build.0 = Debug|Any CPU
96 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|ARM.ActiveCfg = Debug|Any CPU
97 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|ARM.Build.0 = Debug|Any CPU
98 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|x64.ActiveCfg = Debug|Any CPU
99 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|x64.Build.0 = Debug|Any CPU
100 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|x86.ActiveCfg = Debug|Any CPU
101 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Debug|x86.Build.0 = Debug|Any CPU
102 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|Any CPU.ActiveCfg = Release|Any CPU
103 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|Any CPU.Build.0 = Release|Any CPU
104 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|ARM.ActiveCfg = Release|Any CPU
105 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|ARM.Build.0 = Release|Any CPU
106 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|x64.ActiveCfg = Release|Any CPU
107 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|x64.Build.0 = Release|Any CPU
108 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|x86.ActiveCfg = Release|Any CPU
109 | {D76EC0C3-9EDF-4917-9541-1AE875746472}.Release|x86.Build.0 = Release|Any CPU
110 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
111 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|Any CPU.Build.0 = Debug|Any CPU
112 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
113 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|ARM.ActiveCfg = Debug|Any CPU
114 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|ARM.Build.0 = Debug|Any CPU
115 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|ARM.Deploy.0 = Debug|Any CPU
116 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x64.ActiveCfg = Debug|x64
117 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x64.Build.0 = Debug|x64
118 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x64.Deploy.0 = Debug|x64
119 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x86.ActiveCfg = Debug|x86
120 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x86.Build.0 = Debug|x86
121 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Debug|x86.Deploy.0 = Debug|x86
122 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|Any CPU.ActiveCfg = Release|Any CPU
123 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|Any CPU.Build.0 = Release|Any CPU
124 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|Any CPU.Deploy.0 = Release|Any CPU
125 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|ARM.ActiveCfg = Release|Any CPU
126 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|ARM.Build.0 = Release|Any CPU
127 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|ARM.Deploy.0 = Release|Any CPU
128 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x64.ActiveCfg = Release|x64
129 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x64.Build.0 = Release|x64
130 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x64.Deploy.0 = Release|x64
131 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x86.ActiveCfg = Release|x86
132 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x86.Build.0 = Release|x86
133 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713}.Release|x86.Deploy.0 = Release|x86
134 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
135 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|Any CPU.Build.0 = Debug|Any CPU
136 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
137 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|ARM.ActiveCfg = Debug|Any CPU
138 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|ARM.Build.0 = Debug|Any CPU
139 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|ARM.Deploy.0 = Debug|Any CPU
140 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x64.ActiveCfg = Debug|x64
141 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x64.Build.0 = Debug|x64
142 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x64.Deploy.0 = Debug|x64
143 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x86.ActiveCfg = Debug|x86
144 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x86.Build.0 = Debug|x86
145 | {479AD728-507B-436A-82D9-821179E13A99}.Debug|x86.Deploy.0 = Debug|x86
146 | {479AD728-507B-436A-82D9-821179E13A99}.Release|Any CPU.ActiveCfg = Release|Any CPU
147 | {479AD728-507B-436A-82D9-821179E13A99}.Release|Any CPU.Build.0 = Release|Any CPU
148 | {479AD728-507B-436A-82D9-821179E13A99}.Release|Any CPU.Deploy.0 = Release|Any CPU
149 | {479AD728-507B-436A-82D9-821179E13A99}.Release|ARM.ActiveCfg = Release|Any CPU
150 | {479AD728-507B-436A-82D9-821179E13A99}.Release|ARM.Build.0 = Release|Any CPU
151 | {479AD728-507B-436A-82D9-821179E13A99}.Release|ARM.Deploy.0 = Release|Any CPU
152 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x64.ActiveCfg = Release|x64
153 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x64.Build.0 = Release|x64
154 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x64.Deploy.0 = Release|x64
155 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x86.ActiveCfg = Release|x86
156 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x86.Build.0 = Release|x86
157 | {479AD728-507B-436A-82D9-821179E13A99}.Release|x86.Deploy.0 = Release|x86
158 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
159 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
160 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
161 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|ARM.ActiveCfg = Debug|Any CPU
162 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|ARM.Build.0 = Debug|Any CPU
163 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|ARM.Deploy.0 = Debug|Any CPU
164 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x64.ActiveCfg = Debug|x64
165 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x64.Build.0 = Debug|x64
166 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x64.Deploy.0 = Debug|x64
167 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x86.ActiveCfg = Debug|x86
168 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x86.Build.0 = Debug|x86
169 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Debug|x86.Deploy.0 = Debug|x86
170 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
171 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|Any CPU.Build.0 = Release|Any CPU
172 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|Any CPU.Deploy.0 = Release|Any CPU
173 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|ARM.ActiveCfg = Release|Any CPU
174 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|ARM.Build.0 = Release|Any CPU
175 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|ARM.Deploy.0 = Release|Any CPU
176 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x64.ActiveCfg = Release|x64
177 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x64.Build.0 = Release|x64
178 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x64.Deploy.0 = Release|x64
179 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x86.ActiveCfg = Release|x86
180 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x86.Build.0 = Release|x86
181 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD}.Release|x86.Deploy.0 = Release|x86
182 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
183 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
184 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|ARM.ActiveCfg = Debug|Any CPU
185 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|ARM.Build.0 = Debug|Any CPU
186 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|x64.ActiveCfg = Debug|Any CPU
187 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|x64.Build.0 = Debug|Any CPU
188 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|x86.ActiveCfg = Debug|Any CPU
189 | {C6499739-404D-4781-84FC-824A658A8AE8}.Debug|x86.Build.0 = Debug|Any CPU
190 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
191 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|Any CPU.Build.0 = Release|Any CPU
192 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|ARM.ActiveCfg = Release|Any CPU
193 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|ARM.Build.0 = Release|Any CPU
194 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|x64.ActiveCfg = Release|Any CPU
195 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|x64.Build.0 = Release|Any CPU
196 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|x86.ActiveCfg = Release|Any CPU
197 | {C6499739-404D-4781-84FC-824A658A8AE8}.Release|x86.Build.0 = Release|Any CPU
198 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
199 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|Any CPU.Build.0 = Debug|Any CPU
200 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
201 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|ARM.ActiveCfg = Debug|Any CPU
202 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|ARM.Build.0 = Debug|Any CPU
203 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|ARM.Deploy.0 = Debug|Any CPU
204 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x64.ActiveCfg = Debug|x64
205 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x64.Build.0 = Debug|x64
206 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x64.Deploy.0 = Debug|x64
207 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x86.ActiveCfg = Debug|x86
208 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x86.Build.0 = Debug|x86
209 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Debug|x86.Deploy.0 = Debug|x86
210 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|Any CPU.ActiveCfg = Release|Any CPU
211 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|Any CPU.Build.0 = Release|Any CPU
212 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|Any CPU.Deploy.0 = Release|Any CPU
213 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|ARM.ActiveCfg = Release|Any CPU
214 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|ARM.Build.0 = Release|Any CPU
215 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|ARM.Deploy.0 = Release|Any CPU
216 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x64.ActiveCfg = Release|x64
217 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x64.Build.0 = Release|x64
218 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x64.Deploy.0 = Release|x64
219 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x86.ActiveCfg = Release|x86
220 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x86.Build.0 = Release|x86
221 | {2B30574C-E498-4F2E-9B66-7B18B701634C}.Release|x86.Deploy.0 = Release|x86
222 | EndGlobalSection
223 | GlobalSection(SolutionProperties) = preSolution
224 | HideSolutionNode = FALSE
225 | EndGlobalSection
226 | GlobalSection(NestedProjects) = preSolution
227 | {89B15E8C-428F-4D07-8668-73D59AB5D285} = {D14A6F7B-27DA-4C28-A976-8CED01378EA5}
228 | {FFBF21BB-8303-4470-9152-EC57C42716B1} = {89B15E8C-428F-4D07-8668-73D59AB5D285}
229 | {30F30CDB-23F6-4A95-A07F-3D47136B9204} = {D14A6F7B-27DA-4C28-A976-8CED01378EA5}
230 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E} = {30F30CDB-23F6-4A95-A07F-3D47136B9204}
231 | {04445F10-A8B7-47DB-8894-C5C0BE70625C} = {D14A6F7B-27DA-4C28-A976-8CED01378EA5}
232 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D} = {04445F10-A8B7-47DB-8894-C5C0BE70625C}
233 | {C084AA33-D41A-4070-9D82-DC17B020A14A} = {D14A6F7B-27DA-4C28-A976-8CED01378EA5}
234 | {A76FF0C5-23A3-4A7B-B671-BBBA24730713} = {89B15E8C-428F-4D07-8668-73D59AB5D285}
235 | {479AD728-507B-436A-82D9-821179E13A99} = {30F30CDB-23F6-4A95-A07F-3D47136B9204}
236 | {E373C139-D35D-45B8-8CC9-69A4418F6EAD} = {04445F10-A8B7-47DB-8894-C5C0BE70625C}
237 | {C6499739-404D-4781-84FC-824A658A8AE8} = {C084AA33-D41A-4070-9D82-DC17B020A14A}
238 | {2B30574C-E498-4F2E-9B66-7B18B701634C} = {C084AA33-D41A-4070-9D82-DC17B020A14A}
239 | EndGlobalSection
240 | GlobalSection(ExtensibilityGlobals) = postSolution
241 | SolutionGuid = {9DA4F857-07B6-4E33-8D37-947D68660C8C}
242 | EndGlobalSection
243 | EndGlobal
244 |
--------------------------------------------------------------------------------
/DesktopBridge.Helpers/DesktopBridge.Helpers.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0;net45
5 | DesktopBridge.Helpers
6 | Matteo Pagani
7 | 1.2.2
8 | DesktopBridge Helpers
9 | A simple library that can be used in a Win32 app to detect if it's running as native or inside a AppX / MSIX container.
10 | MIT
11 | https://github.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers
12 | msix, appx, windows, .net
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/DesktopBridge.Helpers/Helpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using System.Text;
4 |
5 | namespace DesktopBridge
6 | {
7 | public class Helpers
8 | {
9 | const long APPMODEL_ERROR_NO_PACKAGE = 15700L;
10 |
11 | [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
12 | static extern int GetCurrentPackageFullName(ref int packageFullNameLength, StringBuilder packageFullName);
13 |
14 | public bool IsRunningAsUwp()
15 | {
16 | if (IsWindows7OrLower)
17 | {
18 | return false;
19 | }
20 | else
21 | {
22 | int length = 0;
23 | StringBuilder sb = new StringBuilder(0);
24 | int result = GetCurrentPackageFullName(ref length, sb);
25 |
26 | sb = new StringBuilder(length);
27 | result = GetCurrentPackageFullName(ref length, sb);
28 |
29 | return result != APPMODEL_ERROR_NO_PACKAGE;
30 | }
31 | }
32 |
33 | private bool IsWindows7OrLower
34 | {
35 | get
36 | {
37 | int versionMajor = Environment.OSVersion.Version.Major;
38 | int versionMinor = Environment.OSVersion.Version.Minor;
39 | double version = versionMajor + (double)versionMinor / 10;
40 | return version <= 6.1;
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Microsoft Corporation. All rights reserved.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE
22 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) [2015] [Matteo Pagani]
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Helpers for the Windows 10 Desktop Bridge
2 |
3 | The library offers a simple class to detect if a desktop application is running as native or as converted inside the UWP container.
4 |
5 | Example code:
6 |
7 | ```
8 | public bool IsRunningAsUwp()
9 | {
10 | DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
11 | return helpers.IsRunningAsUwp();
12 | }
13 | ```
14 |
15 | The repository contains also a sample for eery major .NET desktop technology:
16 |
17 | - Windows Forms
18 | - WPF
19 | - Console application
20 |
21 | Important! The sample projects are based on [Visual Studio 15 Preview](https://www.visualstudio.com/visual-studio-pre-release-downloads/) and the [Desktop Bridge extension](http://go.microsoft.com/fwlink/?LinkId=797871)
22 |
23 | The library is available also on NuGet: https://www.nuget.org/packages/DesktopBridge.Helpers/
24 |
25 | The library currently supports every application developed with .NET Framework >=4.0
26 |
27 | Thanks to [Raffaele Rialdi](http://twitter.com/raffaeler) for the help with understanding how to properly use the P/Invoke approach
28 |
29 | # Contributing
30 |
31 | This project welcomes contributions and suggestions. Most contributions require you to agree to a
32 | Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
33 | the rights to use your contribution. For details, visit https://cla.microsoft.com.
34 |
35 | When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
36 | a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
37 | provided by the bot. You will only need to do this once across all repos using our CLA.
38 |
39 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
40 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
41 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
42 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Security
4 |
5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6 |
7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8 |
9 | ## Reporting Security Issues
10 |
11 | **Please do not report security vulnerabilities through public GitHub issues.**
12 |
13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14 |
15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16 |
17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18 |
19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20 |
21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22 | * Full paths of source file(s) related to the manifestation of the issue
23 | * The location of the affected source code (tag/branch/commit or direct URL)
24 | * Any special configuration required to reproduce the issue
25 | * Step-by-step instructions to reproduce the issue
26 | * Proof-of-concept or exploit code (if possible)
27 | * Impact of the issue, including how an attacker might exploit the issue
28 |
29 | This information will help us triage your report more quickly.
30 |
31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32 |
33 | ## Preferred Languages
34 |
35 | We prefer all communications to be in English.
36 |
37 | ## Policy
38 |
39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.App/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.App/ConsoleApplication.App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {FFBF21BB-8303-4470-9152-EC57C42716B1}
8 | Exe
9 | Properties
10 | ConsoleApplication.App
11 | ConsoleApplication.App
12 | v4.6.1
13 | 512
14 | true
15 |
16 |
17 |
18 | AnyCPU
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 | AnyCPU
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | {d76ec0c3-9edf-4917-9541-1ae875746472}
60 | DesktopBridge.Helpers
61 |
62 |
63 |
64 |
65 |
66 | ..\ConsoleApplication.Package\win32\
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.App/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ConsoleApplication.App
4 | {
5 | class Program
6 | {
7 | static void Main(string[] args)
8 | {
9 | DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
10 | bool isUwp = helpers.IsRunningAsUwp();
11 | string text = isUwp ? "The app is running as a Universal Windows Package" : "The app is running as a native Win32 app";
12 | Console.WriteLine(text);
13 | Console.ReadLine();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.App/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ConsoleApplication,App")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ConsoleApplication,App")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("ffbf21bb-8303-4470-9152-ec57c42716b1")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/ConsoleApplication.Package.wapproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 15.0
5 |
6 |
7 |
8 | Debug
9 | x86
10 |
11 |
12 | Release
13 | x86
14 |
15 |
16 | Debug
17 | x64
18 |
19 |
20 | Release
21 | x64
22 |
23 |
24 | Debug
25 | AnyCPU
26 |
27 |
28 | Release
29 | AnyCPU
30 |
31 |
32 |
33 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
34 |
35 |
36 |
37 | a76ff0c5-23a3-4a7b-b671-bbba24730713
38 | 10.0.17763.0
39 | 10.0.14393.0
40 | en-US
41 | ConsoleApplication.Package_TemporaryKey.pfx
42 | ..\ConsoleApplication.App\ConsoleApplication.App.csproj
43 |
44 |
45 |
46 | Designer
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/StoreLogo.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/Images/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 | ConsoleApplication.Package
16 | mpagani
17 | Images\StoreLogo.png
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/win32/ConsoleApplication.App.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/win32/ConsoleApplication.App.exe
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/win32/ConsoleApplication.App.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/ConsoleApplication/ConsoleApplication.Package/win32/DesktopBridge.Helpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/ConsoleApplication/ConsoleApplication.Package/win32/DesktopBridge.Helpers.dll
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace WindowsForms.App
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.txtStatus = new System.Windows.Forms.Label();
32 | this.SuspendLayout();
33 | //
34 | // txtStatus
35 | //
36 | this.txtStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
37 | this.txtStatus.Location = new System.Drawing.Point(12, 119);
38 | this.txtStatus.Name = "txtStatus";
39 | this.txtStatus.Size = new System.Drawing.Size(549, 125);
40 | this.txtStatus.TabIndex = 0;
41 | this.txtStatus.Text = "label1";
42 | this.txtStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
43 | //
44 | // Form1
45 | //
46 | this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
47 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
48 | this.ClientSize = new System.Drawing.Size(573, 406);
49 | this.Controls.Add(this.txtStatus);
50 | this.Name = "Form1";
51 | this.Text = "Form1";
52 | this.ResumeLayout(false);
53 |
54 | }
55 |
56 | #endregion
57 |
58 | private System.Windows.Forms.Label txtStatus;
59 | }
60 | }
61 |
62 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Form1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace WindowsForms.App
5 | {
6 | public partial class Form1 : Form
7 | {
8 | public Form1()
9 | {
10 | InitializeComponent();
11 | this.Load += Form1_Load;
12 | }
13 |
14 | private void Form1_Load(object sender, EventArgs e)
15 | {
16 | DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
17 | bool isUwp = helpers.IsRunningAsUwp();
18 | string text = isUwp ? "The app is running as a Universal Windows Package" : "The app is running as a native Win32 app";
19 | txtStatus.Text = text;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Form1.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace WindowsForms.App
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("WindowsForms.App")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WindowsForms.App")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("96da9a20-b822-4f4e-899b-d3c6e1dc268e")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WindowsForms.App.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsForms.App.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WindowsForms.App.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.App/WindowsForms.App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {96DA9A20-B822-4F4E-899B-D3C6E1DC268E}
8 | WinExe
9 | Properties
10 | WindowsForms.App
11 | WindowsForms.App
12 | v4.6.1
13 | 512
14 | true
15 |
16 |
17 |
18 | AnyCPU
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 | AnyCPU
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | Form
52 |
53 |
54 | Form1.cs
55 |
56 |
57 |
58 |
59 | Form1.cs
60 |
61 |
62 | ResXFileCodeGenerator
63 | Resources.Designer.cs
64 | Designer
65 |
66 |
67 | True
68 | Resources.resx
69 | True
70 |
71 |
72 | SettingsSingleFileGenerator
73 | Settings.Designer.cs
74 |
75 |
76 | True
77 | Settings.settings
78 | True
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 | {d76ec0c3-9edf-4917-9541-1ae875746472}
87 | DesktopBridge.Helpers
88 |
89 |
90 |
91 |
92 |
93 | ..\WindowsForms.Package\win32\
94 |
95 |
96 |
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/StoreLogo.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/Images/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/Images/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/WindowsForms.Package.wapproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 15.0
5 |
6 |
7 |
8 | Debug
9 | x86
10 |
11 |
12 | Release
13 | x86
14 |
15 |
16 | Debug
17 | x64
18 |
19 |
20 | Release
21 | x64
22 |
23 |
24 | Debug
25 | AnyCPU
26 |
27 |
28 | Release
29 | AnyCPU
30 |
31 |
32 |
33 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
34 |
35 |
36 |
37 | 479ad728-507b-436a-82d9-821179e13a99
38 | 10.0.17763.0
39 | 10.0.14393.0
40 | en-US
41 | WindowsForms.Package_TemporaryKey.pfx
42 | ..\WindowsForms.App\WindowsForms.App.csproj
43 |
44 |
45 |
46 | Designer
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 | WindowsForms.Package
16 | mpagani
17 | Images\StoreLogo.png
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/win32/DesktopBridge.Helpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/win32/DesktopBridge.Helpers.dll
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/win32/WindowsForms.App.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WindowsForms/WindowsForms.Package/win32/WindowsForms.App.exe
--------------------------------------------------------------------------------
/Samples/WindowsForms/WindowsForms.Package/win32/WindowsForms.App.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace WpfApplication.App
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace WpfApplication.App
17 | {
18 | ///
19 | /// Interaction logic for MainWindow.xaml
20 | ///
21 | public partial class MainWindow : Window
22 | {
23 | public MainWindow()
24 | {
25 | InitializeComponent();
26 | this.Loaded += MainWindow_Loaded;
27 | }
28 |
29 | private void MainWindow_Loaded(object sender, RoutedEventArgs e)
30 | {
31 | DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
32 | bool isUwp = helpers.IsRunningAsUwp();
33 | string text = isUwp ? "The app is running as a Universal Windows Package" : "The app is running as a native Win32 app";
34 | Status.Text = text;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("WpfApplication.App")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("WpfApplication.App")]
15 | [assembly: AssemblyCopyright("Copyright © 2016")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfApplication.App.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WpfApplication.App.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfApplication.App.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.App/WpfApplication.App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {FE9FDF70-8019-49C9-9563-1ABA1F56EB4D}
8 | WinExe
9 | Properties
10 | WpfApplication.App
11 | WpfApplication.App
12 | v4.6.1
13 | 512
14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
15 | 4
16 | true
17 |
18 |
19 |
20 | AnyCPU
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | AnyCPU
31 | pdbonly
32 | true
33 | bin\Release\
34 | TRACE
35 | prompt
36 | 4
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 4.0
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | MSBuild:Compile
57 | Designer
58 |
59 |
60 | MSBuild:Compile
61 | Designer
62 |
63 |
64 | App.xaml
65 | Code
66 |
67 |
68 | MainWindow.xaml
69 | Code
70 |
71 |
72 |
73 |
74 | Code
75 |
76 |
77 | True
78 | True
79 | Resources.resx
80 |
81 |
82 | True
83 | Settings.settings
84 | True
85 |
86 |
87 | ResXFileCodeGenerator
88 | Resources.Designer.cs
89 |
90 |
91 | SettingsSingleFileGenerator
92 | Settings.Designer.cs
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | {d76ec0c3-9edf-4917-9541-1ae875746472}
102 | DesktopBridge.Helpers
103 |
104 |
105 |
106 |
107 |
108 | ..\WpfApplication.Package\win32\
109 |
110 |
111 |
112 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/StoreLogo.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/Images/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfApplication/WpfApplication.Package/Images/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/WpfApplication.Package.wapproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 15.0
5 |
6 |
7 |
8 | Debug
9 | x86
10 |
11 |
12 | Release
13 | x86
14 |
15 |
16 | Debug
17 | x64
18 |
19 |
20 | Release
21 | x64
22 |
23 |
24 | Debug
25 | AnyCPU
26 |
27 |
28 | Release
29 | AnyCPU
30 |
31 |
32 |
33 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
34 |
35 |
36 |
37 | e373c139-d35d-45b8-8cc9-69a4418f6ead
38 | 10.0.17763.0
39 | 10.0.14393.0
40 | en-US
41 | WpfApplication.Package_TemporaryKey.pfx
42 | ..\WpfNetCore.App\WpfNetCore.App.csproj
43 |
44 |
45 |
46 | Designer
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/Samples/WpfApplication/WpfApplication.Package/package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 | WpfApplication.Package
16 | mpagani
17 | Images\StoreLogo.png
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.App/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.App/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace WpfNetCore.App
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.App/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.App/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace WpfNetCore.App
17 | {
18 | ///
19 | /// Interaction logic for MainWindow.xaml
20 | ///
21 | public partial class MainWindow : Window
22 | {
23 | public MainWindow()
24 | {
25 | InitializeComponent();
26 | this.Loaded += MainWindow_Loaded;
27 | }
28 |
29 | private void ButtonExit_Click(object sender, RoutedEventArgs e)
30 | {
31 | Application.Current.Shutdown();
32 | }
33 |
34 | private void MainWindow_Loaded(object sender, RoutedEventArgs e)
35 | {
36 | DesktopBridge.Helpers helpers = new DesktopBridge.Helpers();
37 | bool isUwp = helpers.IsRunningAsUwp();
38 | string text = isUwp ? "The app is running as a Universal Windows Package" : "The app is running as a native Win32 app";
39 | Status.Text = text;
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.App/WpfNetCore.App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | netcoreapp3.0
6 | true
7 | win-x86
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/StoreLogo.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Images/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/Windows-AppConsult-Tools-DesktopBridgeHelpers/ab28efb1c4c96b03f16c26c7ea275982e5aa214a/Samples/WpfNetCore/WpfNetCore.Package/Images/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
13 |
14 |
15 | WpfNetCore.Package
16 | mpagani
17 | Images\StoreLogo.png
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Samples/WpfNetCore/WpfNetCore.Package/WpfNetCore.Package.wapproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 15.0
5 |
6 |
7 |
8 | Debug
9 | x86
10 |
11 |
12 | Release
13 | x86
14 |
15 |
16 | Debug
17 | x64
18 |
19 |
20 | Release
21 | x64
22 |
23 |
24 | Debug
25 | AnyCPU
26 |
27 |
28 | Release
29 | AnyCPU
30 |
31 |
32 |
33 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\
34 |
35 |
36 |
37 | 2b30574c-e498-4f2e-9b66-7b18b701634c
38 | 10.0.17763.0
39 | 10.0.14393.0
40 | en-US
41 | WpfNetCore.Package_TemporaryKey.pfx
42 | ..\WpfNetCore.App\WpfNetCore.App.csproj
43 |
44 |
45 |
46 | Designer
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | True
62 | $(DesktopBridgeRuntimeIdentifier)
63 | SelfContained=%(DesktopBridgeSelfContained);RuntimeIdentifier=%(DesktopBridgeIdentifier)
64 | True
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------