[STORPROP] Add storprop.dll and implement the DiskClassInstaller stub

This commit is contained in:
Eric Kohl 2020-03-22 16:37:48 +01:00
parent 67141abef1
commit 38788a2b07
7 changed files with 104 additions and 2 deletions

View file

@ -201,6 +201,7 @@ add_subdirectory(srclient)
add_subdirectory(stdole2.tlb)
add_subdirectory(stdole32.tlb)
add_subdirectory(sti)
add_subdirectory(storprop)
add_subdirectory(streamci)
add_subdirectory(sxs)
add_subdirectory(syssetup)

View file

@ -0,0 +1,13 @@
spec2def(storprop.dll storprop.spec)
add_library(storprop MODULE
storprop.c
storprop.rc
${CMAKE_CURRENT_BINARY_DIR}/storprop_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/storprop.def)
set_module_type(storprop win32dll UNICODE)
target_link_libraries(storprop wine)
add_importlibs(storprop setupapi advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET storprop DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1 @@
#pragma once

View file

@ -0,0 +1,58 @@
/*
* PROJECT: ReactOS system libraries
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Storage device properties
* COPYRIGHT: 2020 Eric Kohl (eric.kohl@reactos.org)
*/
#define WIN32_NO_STATUS
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
#include <commctrl.h>
#include <setupapi.h>
#define NDEBUG
#include <debug.h>
HINSTANCE hInstance = NULL;
DWORD
WINAPI
DiskClassInstaller(
_In_ DI_FUNCTION InstallFunction,
_In_ HDEVINFO DeviceInfoSet,
_In_ PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
{
DPRINT("DiskClassInstaller(%u %p %p)\n",
InstallFunction, DeviceInfoSet, DeviceInfoData);
return ERROR_DI_DO_DEFAULT;
}
BOOL
WINAPI
DllMain(
_In_ HINSTANCE hinstDll,
_In_ DWORD dwReason,
_In_ LPVOID reserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDll);
hInstance = hinstDll;
break;
case DLL_PROCESS_DETACH:
hInstance = NULL;
break;
}
return TRUE;
}
/* EOF */

View file

@ -0,0 +1,12 @@
#include <windef.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "Storage device properties"
#define REACTOS_STR_INTERNAL_NAME "storprop"
#define REACTOS_STR_ORIGINAL_FILENAME "storprop.dll"
#include <reactos/version.rc>

View file

@ -0,0 +1,10 @@
@ stub CdromDisableDigitalPlayback
@ stub CdromEnableDigitalPlayback
@ stub CdromIsDigitalPlaybackEnabled
@ stdcall DiskClassInstaller(long ptr ptr)
@ stdcall DllMain(ptr long ptr)
@ stub DvdClassInstaller
@ stub DvdLauncher
@ stub DvdPropPageProvider
@ stub IdePropPageProvider
@ stub VolumePropPageProvider

View file

@ -12,14 +12,16 @@ Provider = %ReactOS%
DriverVer = 10/19/1999,5.00.2157.1
[DestinationDirs]
DefaultDestDir = 12
disk_CopyFiles.NT = 12
storprop_CopyFiles.NT = 11
[ClassInstall32.NT]
AddReg = DiskClass.NT.AddReg
Copyfiles = storprop_CopyFiles.NT
[DiskClass.NT.AddReg]
HKR, , , 0, %DiskClassName%
;HKR, , Installer32, 0, "StorProp.dll,DiskClassInstaller"
HKR, , Installer32, 0, "storprop.dll,DiskClassInstaller"
HKR, , Icon, 0, "-53"
HKR, , NoInstallClass, 0, 1
HKR, , SilentInstall, 0, 1
@ -49,6 +51,11 @@ ServiceBinary = %12%\disk.sys
[disk_CopyFiles.NT]
disk.sys
;---------------------------- DISK INSTALLER ----------------------------
[storprop_CopyFiles.NT]
storprop.dll
;-------------------------------- STRINGS -------------------------------
[Strings]