Add a stub for ClientSideInstallW. umpnpmgr is supposed to run rundll32 in the context of the currently logged on user like this:

"rundll32.exe newdev.dll,ClientSideInstall \\.\pipe\PNP_Device_Install_Pipe_0.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"

svn path=/trunk/; revision=19342
This commit is contained in:
Thomas Bluemel
2005-11-19 13:27:27 +00:00
parent 2c5fc4425c
commit 2dbda08b7e
2 changed files with 20 additions and 0 deletions

View File

@@ -873,6 +873,12 @@ DevInstallW(
DWORD config_flags;
/*TCHAR buf[128];*/
if (!IsUserAdmin())
{
/* XP kills the process... */
ExitProcess(ERROR_ACCESS_DENIED);
}
/* Clear devinst data */
ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));
DevInstData.devInfoData.cbSize = 0; /* Tell if the devInfoData is valid */
@@ -1026,6 +1032,17 @@ DevInstallW(
return TRUE;
}
BOOL WINAPI
ClientSideInstallW(IN HWND hWndOwner,
IN DWORD dwUnknownFlags,
IN LPWSTR lpNamedPipeName)
{
/* NOTE: pNamedPipeName is in the format:
* "\\.\pipe\PNP_Device_Install_Pipe_0.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
*/
return FALSE;
}
BOOL WINAPI
DllMain(
IN HINSTANCE hInstance,
@@ -1036,6 +1053,8 @@ DllMain(
{
INITCOMMONCONTROLSEX InitControls;
DisableThreadLibraryCalls(hInstance);
InitControls.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitControls.dwICC = ICC_PROGRESS_CLASS;
InitCommonControlsEx(&InitControls);

View File

@@ -1,6 +1,7 @@
LIBRARY newdev.dll
EXPORTS
ClientSideInstallW@12
DevInstallW@16
;InstallDevInst
;InstallDevInstEx