summaryrefslogtreecommitdiff
path: root/winmanifest
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-09-02 13:52:55 -0400
committerPietro Gagliardi <[email protected]>2018-09-02 13:52:55 -0400
commit71aba62178195195754bc36e5e84cc7176b0dbcd (patch)
treea24b6302a66e67287be798b448577ce3886b37f2 /winmanifest
parent4c4827d34fdab7953e3dae6659ea029420fd1fa5 (diff)
Added a winmanifest package for including a generic Windows manifest. Now to just rewrite the README.
Diffstat (limited to 'winmanifest')
-rw-r--r--winmanifest/doc.go13
-rw-r--r--winmanifest/resources.rc9
-rw-r--r--winmanifest/ui.manifest41
-rwxr-xr-xwinmanifest/winmanifest_windows_386.sysobin0 -> 1956 bytes
-rwxr-xr-xwinmanifest/winmanifest_windows_amd64.sysobin0 -> 1956 bytes
5 files changed, 63 insertions, 0 deletions
diff --git a/winmanifest/doc.go b/winmanifest/doc.go
new file mode 100644
index 0000000..71d6673
--- /dev/null
+++ b/winmanifest/doc.go
@@ -0,0 +1,13 @@
+// 2 september 2018
+
+// Package winmanifest provides a basic manifest for use with
+// package ui. You import it for its side effects only, as
+//
+// import _ "github.com/andlabs/ui/winmanifest"
+//
+// On non-Windows platforms this package does nothing.
+//
+// If you intend on using a custom manifest instead of the generic
+// one in this package, be sure to read package ui's README so your
+// manifest can have the directives necessary for package ui to work.
+package winmanifest
diff --git a/winmanifest/resources.rc b/winmanifest/resources.rc
new file mode 100644
index 0000000..26f2b42
--- /dev/null
+++ b/winmanifest/resources.rc
@@ -0,0 +1,9 @@
+// 30 may 2015
+
+// this is a UTF-8 file
+#pragma code_page(65001)
+
+// this is the Common Controls 6 manifest
+// TODO set up the string values here
+// 1 is the value of CREATEPROCESS_MANIFEST_RESOURCE_ID and 24 is the value of RT_MANIFEST; we use it directly to avoid needing to share winapi.h with the tests and examples
+1 24 "ui.manifest"
diff --git a/winmanifest/ui.manifest b/winmanifest/ui.manifest
new file mode 100644
index 0000000..2dc9305
--- /dev/null
+++ b/winmanifest/ui.manifest
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+<assemblyIdentity
+ version="1.0.0.0"
+ processorArchitecture="*"
+ name="CompanyName.ProductName.YourApplication"
+ type="win32"
+/>
+<description>Your application description here.</description>
+<!-- we DO need comctl6 in the static case -->
+<dependency>
+ <dependentAssembly>
+ <assemblyIdentity
+ type="win32"
+ name="Microsoft.Windows.Common-Controls"
+ version="6.0.0.0"
+ processorArchitecture="*"
+ publicKeyToken="6595b64144ccf1df"
+ language="*"
+ />
+ </dependentAssembly>
+</dependency>
+<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!--The ID below indicates application support for Windows Vista -->
+ <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
+ <!--The ID below indicates application support for Windows 7 -->
+ <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
+
+ <!-- The ones below are not needed for package ui, but are provided to avoid surprises when interoperating with other packages, or with the Go runtime itself; see also https://github.com/golang/go/issues/17835 -->
+
+ <!--The ID below indicates application support for Windows 8 -->
+ <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
+ <!--The ID below indicates application support for Windows 8.1 -->
+ <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
+ <!--The ID below indicates application support for Windows 10 -->
+ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
+ </application>
+</compatibility>
+</assembly>
+
diff --git a/winmanifest/winmanifest_windows_386.syso b/winmanifest/winmanifest_windows_386.syso
new file mode 100755
index 0000000..93d1dc8
--- /dev/null
+++ b/winmanifest/winmanifest_windows_386.syso
Binary files differ
diff --git a/winmanifest/winmanifest_windows_amd64.syso b/winmanifest/winmanifest_windows_amd64.syso
new file mode 100755
index 0000000..64cfedd
--- /dev/null
+++ b/winmanifest/winmanifest_windows_amd64.syso
Binary files differ