Zebediah Figura : include: Add newdev.h.

Alexandre Julliard julliard at winehq.org
Wed May 29 15:50:37 CDT 2019


Module: wine
Branch: master
Commit: 948f4ebd76ab5c9c8616ae686004f72f5ed3b017
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=948f4ebd76ab5c9c8616ae686004f72f5ed3b017

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue May 28 19:14:12 2019 -0500

include: Add newdev.h.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/Makefile.in |  1 +
 include/newdev.h    | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/include/Makefile.in b/include/Makefile.in
index 81ad3f9..e9312b3 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -471,6 +471,7 @@ SOURCES = \
 	netfw.idl \
 	netioapi.h \
 	netlistmgr.idl \
+	newdev.h \
 	nldef.h \
 	npapi.h \
 	nserror.h \
diff --git a/include/newdev.h b/include/newdev.h
new file mode 100644
index 0000000..94b8a94
--- /dev/null
+++ b/include/newdev.h
@@ -0,0 +1,50 @@
+/*
+ * New Device installation API
+ *
+ * Copyright 2019 Zebediah Figura
+ *
+ * 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 _INC_NEWDEV
+#define _INC_NEWDEV
+
+#include "setupapi.h"
+
+#define INSTALLFLAG_FORCE           0x1
+#define INSTALLFLAG_READONLY        0x2
+#define INSTALLFLAG_NONINTERACTIVE  0x4
+#define INSTALLFLAG_BITS            0x7
+
+BOOL WINAPI UpdateDriverForPlugAndPlayDevicesA(HWND parent, const char *hardware_id, const char *inf_path, DWORD flags, BOOL *reboot);
+BOOL WINAPI UpdateDriverForPlugAndPlayDevicesW(HWND parent, const WCHAR *hardware_id, const WCHAR *inf_path, DWORD flags, BOOL *reboot);
+#define UpdateDriverForPlugAndPlayDevices WINELIB_NAME_AW(UpdateDriverForPlugAndPlayDevices)
+
+#define DIIRFLAG_INF_ALREADY_COPIED 0x01
+#define DIIRFLAG_FORCE_INF          0x02
+#define DIIRFLAG_HW_USING_THE_INF   0x04
+#define DIIRFLAG_HOTPATCH           0x08
+#define DIIRFLAG_NOBACKUP           0x10
+#define DIIRFLAG_PRE_CONFIGURE_INF  0x20
+#define DIIRFLAG_INSTALL_AS_SET     0x40
+#define DIIRFLAG_BITS (DIIRFLAG_FORCE_INF | DIIRFLAG_HOTPATCH | DIIRFLAG_PRE_CONFIGURE_INF | DIIRFLAG_INSTALL_AS_SET)
+#define DIIRFLAG_SYSTEM_BITS (DIIRFLAG_INF_ALREADY_COPIED | DIIRFLAG_FORCE_INF | DIIRFLAG_HW_USING_THE_INF \
+        | DIIRFLAG_HOTPATCH | DIIRFLAG_NOBACKUP | DIIRFLAG_PRE_CONFIGURE_INF | DIIRFLAG_INSTALL_AS_SET)
+
+BOOL WINAPI DiInstallDriverA(HWND parent, const char *inf_path, DWORD flags, BOOL *reboot);
+BOOL WINAPI DiInstallDriverW(HWND parent, const WCHAR *inf_path, DWORD flags, BOOL *reboot);
+#define DiInstallDriver WINELIB_NAME_AW(DiInstallDriver)
+
+#endif




More information about the wine-cvs mailing list