Module: wine
Branch: master
Commit: 274829691818f44cf115b21200ddd0cc34445243
URL: https://source.winehq.org/git/wine.git/?a=commit;h=274829691818f44cf115b212…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Thu Jul 11 14:23:44 2019 -0500
include: Add strongname.h.
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/Makefile.in | 1 +
include/strongname.h | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 6913587..7ca25e2 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -612,6 +612,7 @@ SOURCES = \
sti.h \
storage.h \
strmif.idl \
+ strongname.h \
strsafe.h \
structuredquerycondition.idl \
svrapi.h \
diff --git a/include/strongname.h b/include/strongname.h
new file mode 100644
index 0000000..f05861a
--- /dev/null
+++ b/include/strongname.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2019 Zebediah Figura for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __STRONG_NAME_H
+#define __STRONG_NAME_H
+
+#include <windows.h>
+#include <wincrypt.h>
+#include <ole2.h>
+#include <corerror.h>
+
+#define SN_INFLAG_FORCE_VER 0x00000001
+#define SN_INFLAG_INSTALL 0x00000002
+#define SN_INFLAG_ADMIN_ACCESS 0x00000004
+#define SN_INFLAG_USER_ACCESS 0x00000008
+#define SN_INFLAG_ALL_ACCESS 0x00000010
+#define SN_INFLAG_RUNTIME 0x80000000
+
+#define SN_OUTFLAG_WAS_VERIFIED 0x00000001
+
+BOOLEAN __stdcall StrongNameSignatureVerification(const WCHAR *path, DWORD flags, DWORD *ret_flags);
+BOOLEAN __stdcall StrongNameSignatureVerificationEx(const WCHAR *path, BOOLEAN force, BOOLEAN *verified);
+
+#endif