mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 05:38:41 +00:00
Fix formatting which was screwed in 19254.
Code changes will follow later svn path=/trunk/; revision=21467
This commit is contained in:
parent
74c858ab1b
commit
1239653f28
|
@ -34,7 +34,8 @@ HINSTANCE hDllInstance;
|
||||||
HANDLE hThread;
|
HANDLE hThread;
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
CanDisableDevice(IN DEVINST DevInst,
|
CanDisableDevice(
|
||||||
|
IN DEVINST DevInst,
|
||||||
IN HMACHINE hMachine,
|
IN HMACHINE hMachine,
|
||||||
OUT BOOL *CanDisable)
|
OUT BOOL *CanDisable)
|
||||||
{
|
{
|
||||||
|
@ -46,7 +47,8 @@ CanDisableDevice(IN DEVINST DevInst,
|
||||||
ULONG Status, ProblemNumber;
|
ULONG Status, ProblemNumber;
|
||||||
BOOL Ret = FALSE;
|
BOOL Ret = FALSE;
|
||||||
|
|
||||||
cr = CM_Get_DevNode_Status_Ex(&Status,
|
cr = CM_Get_DevNode_Status_Ex(
|
||||||
|
&Status,
|
||||||
&ProblemNumber,
|
&ProblemNumber,
|
||||||
DevInst,
|
DevInst,
|
||||||
0,
|
0,
|
||||||
|
@ -66,7 +68,8 @@ CanDisableDevice(IN DEVINST DevInst,
|
||||||
|
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
IsDeviceStarted(IN DEVINST DevInst,
|
IsDeviceStarted(
|
||||||
|
IN DEVINST DevInst,
|
||||||
IN HMACHINE hMachine,
|
IN HMACHINE hMachine,
|
||||||
OUT BOOL *IsEnabled)
|
OUT BOOL *IsEnabled)
|
||||||
{
|
{
|
||||||
|
@ -74,7 +77,8 @@ IsDeviceStarted(IN DEVINST DevInst,
|
||||||
ULONG Status, ProblemNumber;
|
ULONG Status, ProblemNumber;
|
||||||
BOOL Ret = FALSE;
|
BOOL Ret = FALSE;
|
||||||
|
|
||||||
cr = CM_Get_DevNode_Status_Ex(&Status,
|
cr = CM_Get_DevNode_Status_Ex(
|
||||||
|
&Status,
|
||||||
&ProblemNumber,
|
&ProblemNumber,
|
||||||
DevInst,
|
DevInst,
|
||||||
0,
|
0,
|
||||||
|
@ -90,7 +94,8 @@ IsDeviceStarted(IN DEVINST DevInst,
|
||||||
|
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
StartDevice(IN HDEVINFO DeviceInfoSet,
|
StartDevice(
|
||||||
|
IN HDEVINFO DeviceInfoSet,
|
||||||
IN PSP_DEVINFO_DATA DevInfoData OPTIONAL,
|
IN PSP_DEVINFO_DATA DevInfoData OPTIONAL,
|
||||||
IN BOOL bEnable,
|
IN BOOL bEnable,
|
||||||
IN DWORD HardwareProfile OPTIONAL,
|
IN DWORD HardwareProfile OPTIONAL,
|
||||||
|
@ -113,12 +118,14 @@ StartDevice(IN HDEVINFO DeviceInfoSet,
|
||||||
|
|
||||||
/* ignore errors */
|
/* ignore errors */
|
||||||
LastErr = GetLastError();
|
LastErr = GetLastError();
|
||||||
if (SetupDiSetClassInstallParams(DeviceInfoSet,
|
if (SetupDiSetClassInstallParams(
|
||||||
|
DeviceInfoSet,
|
||||||
DevInfoData,
|
DevInfoData,
|
||||||
&pcp.ClassInstallHeader,
|
&pcp.ClassInstallHeader,
|
||||||
sizeof(SP_PROPCHANGE_PARAMS)))
|
sizeof(SP_PROPCHANGE_PARAMS)))
|
||||||
{
|
{
|
||||||
SetupDiCallClassInstaller(DIF_PROPERTYCHANGE,
|
SetupDiCallClassInstaller(
|
||||||
|
DIF_PROPERTYCHANGE,
|
||||||
DeviceInfoSet,
|
DeviceInfoSet,
|
||||||
DevInfoData);
|
DevInfoData);
|
||||||
}
|
}
|
||||||
|
@ -129,7 +136,8 @@ StartDevice(IN HDEVINFO DeviceInfoSet,
|
||||||
pcp.StateChange = (bEnable ? DICS_ENABLE : DICS_DISABLE);
|
pcp.StateChange = (bEnable ? DICS_ENABLE : DICS_DISABLE);
|
||||||
pcp.Scope = DICS_FLAG_CONFIGSPECIFIC;
|
pcp.Scope = DICS_FLAG_CONFIGSPECIFIC;
|
||||||
|
|
||||||
if (SetupDiSetClassInstallParams(DeviceInfoSet,
|
if (SetupDiSetClassInstallParams(
|
||||||
|
DeviceInfoSet,
|
||||||
DevInfoData,
|
DevInfoData,
|
||||||
&pcp.ClassInstallHeader,
|
&pcp.ClassInstallHeader,
|
||||||
sizeof(SP_PROPCHANGE_PARAMS)) &&
|
sizeof(SP_PROPCHANGE_PARAMS)) &&
|
||||||
|
@ -138,7 +146,8 @@ StartDevice(IN HDEVINFO DeviceInfoSet,
|
||||||
DevInfoData))
|
DevInfoData))
|
||||||
{
|
{
|
||||||
dp.cbSize = sizeof(SP_DEVINSTALL_PARAMS);
|
dp.cbSize = sizeof(SP_DEVINSTALL_PARAMS);
|
||||||
if (SetupDiGetDeviceInstallParams(DeviceInfoSet,
|
if (SetupDiGetDeviceInstallParams(
|
||||||
|
DeviceInfoSet,
|
||||||
DevInfoData,
|
DevInfoData,
|
||||||
&dp))
|
&dp))
|
||||||
{
|
{
|
||||||
|
@ -188,7 +197,7 @@ UpdateDriverForPlugAndPlayDevicesA(
|
||||||
HardwareIdW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
HardwareIdW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
if (!HardwareIdW)
|
if (!HardwareIdW)
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_GEN_FAILURE);
|
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
MultiByteToWideChar(CP_ACP, 0, HardwareId, -1, HardwareIdW, len);
|
MultiByteToWideChar(CP_ACP, 0, HardwareId, -1, HardwareIdW, len);
|
||||||
|
@ -198,12 +207,13 @@ UpdateDriverForPlugAndPlayDevicesA(
|
||||||
if (!FullInfPathW)
|
if (!FullInfPathW)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, HardwareIdW);
|
HeapFree(GetProcessHeap(), 0, HardwareIdW);
|
||||||
SetLastError(ERROR_GEN_FAILURE);
|
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
MultiByteToWideChar(CP_ACP, 0, FullInfPath, -1, FullInfPathW, len);
|
MultiByteToWideChar(CP_ACP, 0, FullInfPath, -1, FullInfPathW, len);
|
||||||
|
|
||||||
Result = UpdateDriverForPlugAndPlayDevicesW(hwndParent,
|
Result = UpdateDriverForPlugAndPlayDevicesW(
|
||||||
|
hwndParent,
|
||||||
HardwareIdW,
|
HardwareIdW,
|
||||||
FullInfPathW,
|
FullInfPathW,
|
||||||
InstallFlags,
|
InstallFlags,
|
||||||
|
@ -242,7 +252,8 @@ CreateTitleFont(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
CenterWindow(HWND hWnd)
|
CenterWindow(
|
||||||
|
IN HWND hWnd)
|
||||||
{
|
{
|
||||||
HWND hWndParent;
|
HWND hWndParent;
|
||||||
RECT rcParent;
|
RECT rcParent;
|
||||||
|
@ -255,7 +266,8 @@ CenterWindow(HWND hWnd)
|
||||||
GetWindowRect(hWndParent, &rcParent);
|
GetWindowRect(hWndParent, &rcParent);
|
||||||
GetWindowRect(hWnd, &rcWindow);
|
GetWindowRect(hWnd, &rcWindow);
|
||||||
|
|
||||||
SetWindowPos(hWnd,
|
SetWindowPos(
|
||||||
|
hWnd,
|
||||||
HWND_TOP,
|
HWND_TOP,
|
||||||
((rcParent.right - rcParent.left) - (rcWindow.right - rcWindow.left)) / 2,
|
((rcParent.right - rcParent.left) - (rcWindow.right - rcWindow.left)) / 2,
|
||||||
((rcParent.bottom - rcParent.top) - (rcWindow.bottom - rcWindow.top)) / 2,
|
((rcParent.bottom - rcParent.top) - (rcWindow.bottom - rcWindow.top)) / 2,
|
||||||
|
@ -298,28 +310,28 @@ WelcomeDlgProc(
|
||||||
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
||||||
|
|
||||||
/* Set title font */
|
/* Set title font */
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_WELCOMETITLE,
|
IDC_WELCOMETITLE,
|
||||||
WM_SETFONT,
|
WM_SETFONT,
|
||||||
(WPARAM)DevInstData->hTitleFont,
|
(WPARAM)DevInstData->hTitleFont,
|
||||||
(LPARAM)TRUE);
|
(LPARAM)TRUE);
|
||||||
|
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_DEVICE,
|
IDC_DEVICE,
|
||||||
WM_SETTEXT,
|
WM_SETTEXT,
|
||||||
0,
|
0,
|
||||||
(LPARAM) DevInstData->buffer);
|
(LPARAM) DevInstData->buffer);
|
||||||
|
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_RADIO_AUTO,
|
IDC_RADIO_AUTO,
|
||||||
BM_SETCHECK,
|
BM_SETCHECK,
|
||||||
(WPARAM) TRUE,
|
(WPARAM) TRUE,
|
||||||
(LPARAM) 0);
|
(LPARAM) 0);
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
|
@ -334,17 +346,15 @@ WelcomeDlgProc(
|
||||||
|
|
||||||
case PSN_WIZNEXT:
|
case PSN_WIZNEXT:
|
||||||
/* Handle a Next button click, if necessary */
|
/* Handle a Next button click, if necessary */
|
||||||
|
|
||||||
if (SendDlgItemMessage(hwndDlg, IDC_RADIO_AUTO, BM_GETCHECK, (WPARAM) 0, (LPARAM) 0) == BST_CHECKED)
|
if (SendDlgItemMessage(hwndDlg, IDC_RADIO_AUTO, BM_GETCHECK, (WPARAM) 0, (LPARAM) 0) == BST_CHECKED)
|
||||||
PropSheet_SetCurSel(GetParent(hwndDlg), 0, IDD_SEARCHDRV);
|
PropSheet_SetCurSel(GetParent(hwndDlg), 0, IDD_SEARCHDRV);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -360,7 +370,6 @@ CHSourceDlgProc(
|
||||||
IN WPARAM wParam,
|
IN WPARAM wParam,
|
||||||
IN LPARAM lParam)
|
IN LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
PDEVINSTDATA DevInstData;
|
PDEVINSTDATA DevInstData;
|
||||||
|
|
||||||
/* Retrieve pointer to the global setup data */
|
/* Retrieve pointer to the global setup data */
|
||||||
|
@ -386,15 +395,15 @@ CHSourceDlgProc(
|
||||||
dwStyle = GetWindowLong(hwndControl, GWL_STYLE);
|
dwStyle = GetWindowLong(hwndControl, GWL_STYLE);
|
||||||
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
||||||
|
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_RADIO_SEARCHHERE,
|
IDC_RADIO_SEARCHHERE,
|
||||||
BM_SETCHECK,
|
BM_SETCHECK,
|
||||||
(WPARAM) TRUE,
|
(WPARAM) TRUE,
|
||||||
(LPARAM) 0);
|
(LPARAM) 0);
|
||||||
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
|
@ -415,8 +424,8 @@ CHSourceDlgProc(
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -432,7 +441,6 @@ SearchDrvDlgProc(
|
||||||
IN WPARAM wParam,
|
IN WPARAM wParam,
|
||||||
IN LPARAM lParam)
|
IN LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
PDEVINSTDATA DevInstData;
|
PDEVINSTDATA DevInstData;
|
||||||
DWORD dwThreadId;
|
DWORD dwThreadId;
|
||||||
|
|
||||||
|
@ -456,7 +464,8 @@ SearchDrvDlgProc(
|
||||||
/* Center the wizard window */
|
/* Center the wizard window */
|
||||||
CenterWindow (hwndControl);
|
CenterWindow (hwndControl);
|
||||||
|
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_DEVICE,
|
IDC_DEVICE,
|
||||||
WM_SETTEXT,
|
WM_SETTEXT,
|
||||||
0,
|
0,
|
||||||
|
@ -465,8 +474,8 @@ SearchDrvDlgProc(
|
||||||
/* Hide the system menu */
|
/* Hide the system menu */
|
||||||
dwStyle = GetWindowLong(hwndControl, GWL_STYLE);
|
dwStyle = GetWindowLong(hwndControl, GWL_STYLE);
|
||||||
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
SetWindowLong(hwndControl, GWL_STYLE, dwStyle & ~WS_SYSMENU);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_SEARCH_FINISHED:
|
case WM_SEARCH_FINISHED:
|
||||||
{
|
{
|
||||||
|
@ -478,6 +487,7 @@ SearchDrvDlgProc(
|
||||||
PropSheet_SetCurSel(GetParent(hwndDlg), 0, IDD_FINISHPAGE);
|
PropSheet_SetCurSel(GetParent(hwndDlg), 0, IDD_FINISHPAGE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
LPNMHDR lpnm = (LPNMHDR)lParam;
|
LPNMHDR lpnm = (LPNMHDR)lParam;
|
||||||
|
@ -496,6 +506,7 @@ SearchDrvDlgProc(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PSN_WIZNEXT:
|
case PSN_WIZNEXT:
|
||||||
/* Handle a Next button click, if necessary */
|
/* Handle a Next button click, if necessary */
|
||||||
break;
|
break;
|
||||||
|
@ -503,8 +514,8 @@ SearchDrvDlgProc(
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -532,8 +543,7 @@ FindDriverProc(
|
||||||
if (dwDrives & i)
|
if (dwDrives & i)
|
||||||
{
|
{
|
||||||
nType = GetDriveType( drive );
|
nType = GetDriveType( drive );
|
||||||
if ((nType == DRIVE_CDROM))
|
if (nType == DRIVE_CDROM)
|
||||||
//if ((nType == DRIVE_CDROM) || (nType == DRIVE_FIXED))
|
|
||||||
{
|
{
|
||||||
/* search for inf file */
|
/* search for inf file */
|
||||||
if (SearchDriver ( DevInstData, drive ))
|
if (SearchDriver ( DevInstData, drive ))
|
||||||
|
@ -552,7 +562,8 @@ FindDriverProc(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update device configuration */
|
/* update device configuration */
|
||||||
if(SetupDiGetDeviceRegistryProperty(DevInstData->hDevInfo,
|
if (SetupDiGetDeviceRegistryProperty(
|
||||||
|
DevInstData->hDevInfo,
|
||||||
&DevInstData->devInfoData,
|
&DevInstData->devInfoData,
|
||||||
SPDRP_CONFIGFLAGS,
|
SPDRP_CONFIGFLAGS,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -599,20 +610,22 @@ FinishDlgProc(
|
||||||
ShowWindow (hwndControl, SW_HIDE);
|
ShowWindow (hwndControl, SW_HIDE);
|
||||||
EnableWindow (hwndControl, FALSE);
|
EnableWindow (hwndControl, FALSE);
|
||||||
|
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_DEVICE,
|
IDC_DEVICE,
|
||||||
WM_SETTEXT,
|
WM_SETTEXT,
|
||||||
0,
|
0,
|
||||||
(LPARAM) DevInstData->drvInfoData.Description);
|
(LPARAM) DevInstData->drvInfoData.Description);
|
||||||
|
|
||||||
/* Set title font */
|
/* Set title font */
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_FINISHTITLE,
|
IDC_FINISHTITLE,
|
||||||
WM_SETFONT,
|
WM_SETFONT,
|
||||||
(WPARAM)DevInstData->hTitleFont,
|
(WPARAM)DevInstData->hTitleFont,
|
||||||
(LPARAM)TRUE);
|
(LPARAM)TRUE);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
|
@ -636,8 +649,8 @@ FinishDlgProc(
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -674,7 +687,8 @@ InstFailDlgProc(
|
||||||
EnableWindow (hwndControl, FALSE);
|
EnableWindow (hwndControl, FALSE);
|
||||||
|
|
||||||
/* Set title font */
|
/* Set title font */
|
||||||
SendDlgItemMessage(hwndDlg,
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
IDC_FINISHTITLE,
|
IDC_FINISHTITLE,
|
||||||
WM_SETFONT,
|
WM_SETFONT,
|
||||||
(WPARAM)DevInstData->hTitleFont,
|
(WPARAM)DevInstData->hTitleFont,
|
||||||
|
@ -682,14 +696,15 @@ InstFailDlgProc(
|
||||||
|
|
||||||
/* disable the "do not show this dialog anymore" checkbox
|
/* disable the "do not show this dialog anymore" checkbox
|
||||||
if the device cannot be disabled */
|
if the device cannot be disabled */
|
||||||
CanDisableDevice(DevInstData->devInfoData.DevInst,
|
CanDisableDevice(
|
||||||
|
DevInstData->devInfoData.DevInst,
|
||||||
NULL,
|
NULL,
|
||||||
&DisableableDevice);
|
&DisableableDevice);
|
||||||
EnableWindow(GetDlgItem(hwndDlg,
|
EnableWindow(
|
||||||
IDC_DONOTSHOWDLG),
|
GetDlgItem(hwndDlg, IDC_DONOTSHOWDLG),
|
||||||
DisableableDevice);
|
DisableableDevice);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
|
@ -716,14 +731,20 @@ InstFailDlgProc(
|
||||||
NULL,
|
NULL,
|
||||||
&DisableableDevice) &&
|
&DisableableDevice) &&
|
||||||
DisableableDevice &&
|
DisableableDevice &&
|
||||||
IsDeviceStarted(DevInstData->devInfoData.DevInst,
|
IsDeviceStarted(
|
||||||
|
DevInstData->devInfoData.DevInst,
|
||||||
NULL,
|
NULL,
|
||||||
&IsStarted) &&
|
&IsStarted) &&
|
||||||
!IsStarted &&
|
!IsStarted &&
|
||||||
SendDlgItemMessage(hwndDlg, IDC_DONOTSHOWDLG, BM_GETCHECK, (WPARAM) 0, (LPARAM) 0) == BST_CHECKED)
|
SendDlgItemMessage(
|
||||||
|
hwndDlg,
|
||||||
|
IDC_DONOTSHOWDLG,
|
||||||
|
BM_GETCHECK,
|
||||||
|
(WPARAM) 0, (LPARAM) 0) == BST_CHECKED)
|
||||||
{
|
{
|
||||||
/* disable the device */
|
/* disable the device */
|
||||||
StartDevice(DevInstData->hDevInfo,
|
StartDevice(
|
||||||
|
DevInstData->hDevInfo,
|
||||||
&DevInstData->devInfoData,
|
&DevInstData->devInfoData,
|
||||||
FALSE,
|
FALSE,
|
||||||
0,
|
0,
|
||||||
|
@ -735,8 +756,8 @@ InstFailDlgProc(
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -846,7 +867,8 @@ SearchDriver(
|
||||||
{
|
{
|
||||||
|
|
||||||
_tcscpy(FileName, wfd.cFileName);
|
_tcscpy(FileName, wfd.cFileName);
|
||||||
if (IsDots(FileName)) continue;
|
if (IsDots(FileName))
|
||||||
|
continue;
|
||||||
|
|
||||||
if((wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
|
if((wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||||
{
|
{
|
||||||
|
@ -1005,7 +1027,6 @@ InstallDriver(
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
|
@ -1056,7 +1077,6 @@ DevInstallW(
|
||||||
ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));
|
ZeroMemory(&DevInstData, sizeof(DEVINSTDATA));
|
||||||
DevInstData.devInfoData.cbSize = 0; /* Tell if the devInfoData is valid */
|
DevInstData.devInfoData.cbSize = 0; /* Tell if the devInfoData is valid */
|
||||||
|
|
||||||
|
|
||||||
DevInstData.hDevInfo = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, NULL);
|
DevInstData.hDevInfo = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, NULL);
|
||||||
if (DevInstData.hDevInfo == INVALID_HANDLE_VALUE)
|
if (DevInstData.hDevInfo == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
|
@ -1115,7 +1135,8 @@ DevInstallW(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(SetupDiGetDeviceRegistryProperty(DevInstData.hDevInfo,
|
if (SetupDiGetDeviceRegistryProperty(
|
||||||
|
DevInstData.hDevInfo,
|
||||||
&DevInstData.devInfoData,
|
&DevInstData.devInfoData,
|
||||||
SPDRP_CONFIGFLAGS,
|
SPDRP_CONFIGFLAGS,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -1129,13 +1150,6 @@ DevInstallW(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
else
|
|
||||||
{
|
|
||||||
swprintf(buf, _T("%ld"), GetLastError());
|
|
||||||
MessageBox(0,buf,buf,0);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
TRACE("Installing %S (%S)\n", DevInstData.buffer, InstanceId);
|
TRACE("Installing %S (%S)\n", DevInstData.buffer, InstanceId);
|
||||||
|
|
||||||
|
@ -1209,13 +1223,15 @@ DevInstallW(
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
ClientSideInstallW(IN HWND hWndOwner,
|
ClientSideInstallW(
|
||||||
|
IN HWND hWndOwner,
|
||||||
IN DWORD dwUnknownFlags,
|
IN DWORD dwUnknownFlags,
|
||||||
IN LPWSTR lpNamedPipeName)
|
IN LPWSTR lpNamedPipeName)
|
||||||
{
|
{
|
||||||
/* NOTE: pNamedPipeName is in the format:
|
/* NOTE: pNamedPipeName is in the format:
|
||||||
* "\\.\pipe\PNP_Device_Install_Pipe_0.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
|
* "\\.\pipe\PNP_Device_Install_Pipe_0.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
|
||||||
*/
|
*/
|
||||||
|
FIXME("Stub\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue