https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e13ff1470ef2d78361b5b…
commit e13ff1470ef2d78361b5b21cb3f5fe6641530b45
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Sep 15 14:10:01 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Sep 15 14:11:04 2018 +0200
[DESK] Add MonitorClassInstaller
---
dll/cpl/desk/classinst.c | 11 ++++++++++-
dll/cpl/desk/desk.spec | 1 +
media/inf/monitor.inf | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/dll/cpl/desk/classinst.c b/dll/cpl/desk/classinst.c
index 8f34f834a4..576a6e7683 100644
--- a/dll/cpl/desk/classinst.c
+++ b/dll/cpl/desk/classinst.c
@@ -2,7 +2,7 @@
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
* FILE: dll/cpl/desk/classinst.c
- * PURPOSE: Display class installer
+ * PURPOSE: Class installers
*
* PROGRAMMERS: Herv� Poussineau (hpoussin(a)reactos.org)
*/
@@ -252,3 +252,12 @@ cleanup:
return rc;
}
+
+DWORD WINAPI
+MonitorClassInstaller(
+ IN DI_FUNCTION InstallFunction,
+ IN HDEVINFO DeviceInfoSet,
+ IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
+{
+ return ERROR_DI_DO_DEFAULT;
+}
diff --git a/dll/cpl/desk/desk.spec b/dll/cpl/desk/desk.spec
index 05de093688..ab02854516 100644
--- a/dll/cpl/desk/desk.spec
+++ b/dll/cpl/desk/desk.spec
@@ -3,3 +3,4 @@
@ stdcall DisplaySaveSettings(ptr ptr)
@ stdcall InstallScreenSaverW(long long ptr long)
@ stdcall InstallScreenSaverA(long long ptr long)
+@ stdcall MonitorClassInstaller(long ptr ptr)
diff --git a/media/inf/monitor.inf b/media/inf/monitor.inf
index ef8aa6bcc2..3326510641 100644
--- a/media/inf/monitor.inf
+++ b/media/inf/monitor.inf
@@ -20,6 +20,7 @@ AddReg = MonitorClass.NT.AddReg
[MonitorClass.NT.AddReg]
HKR, , , 0, %MonitorClassName%
HKR, , Icon, 0, "-1"
+HKR, , Installer32, 0, "desk.cpl,MonitorClassInstaller"
[Manufacturer]
%StdMfg% = StdMfg