mirror of
https://github.com/reactos/reactos.git
synced 2025-06-29 00:39:42 +00:00
fixed remote device property pages
svn path=/trunk/; revision=20364
This commit is contained in:
parent
ca980c3388
commit
426d30c15a
1 changed files with 6 additions and 2 deletions
|
@ -65,6 +65,7 @@ typedef struct _DEVADVPROP_INFO
|
||||||
BOOL IsAdmin : 1;
|
BOOL IsAdmin : 1;
|
||||||
BOOL DoDefaultDevAction : 1;
|
BOOL DoDefaultDevAction : 1;
|
||||||
BOOL PageInitialized : 1;
|
BOOL PageInitialized : 1;
|
||||||
|
BOOL ShowRemotePages : 1;
|
||||||
BOOL HasDriverPage : 1;
|
BOOL HasDriverPage : 1;
|
||||||
BOOL HasResourcePage : 1;
|
BOOL HasResourcePage : 1;
|
||||||
BOOL HasPowerPage : 1;
|
BOOL HasPowerPage : 1;
|
||||||
|
@ -423,7 +424,9 @@ UpdateDevInfo(IN HWND hwndDlg,
|
||||||
&bDrvInstalled) &&
|
&bDrvInstalled) &&
|
||||||
bDrvInstalled)
|
bDrvInstalled)
|
||||||
{
|
{
|
||||||
if (SetupDiCallClassInstaller(DIF_ADDPROPERTYPAGE_ADVANCED,
|
if (SetupDiCallClassInstaller((dap->ShowRemotePages ?
|
||||||
|
DIF_ADDREMOTEPROPERTYPAGE_ADVANCED :
|
||||||
|
DIF_ADDPROPERTYPAGE_ADVANCED),
|
||||||
DeviceInfoSet,
|
DeviceInfoSet,
|
||||||
DeviceInfoData))
|
DeviceInfoData))
|
||||||
{
|
{
|
||||||
|
@ -1093,6 +1096,7 @@ DisplayDeviceAdvancedProperties(IN HWND hWndParent,
|
||||||
DevAdvPropInfo->CurrentDeviceInfoSet = INVALID_HANDLE_VALUE;
|
DevAdvPropInfo->CurrentDeviceInfoSet = INVALID_HANDLE_VALUE;
|
||||||
DevAdvPropInfo->CurrentDeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
|
DevAdvPropInfo->CurrentDeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
|
||||||
|
|
||||||
|
DevAdvPropInfo->ShowRemotePages = (lpMachineName != NULL && lpMachineName[0] != L'\0');
|
||||||
DevAdvPropInfo->hMachine = hMachine;
|
DevAdvPropInfo->hMachine = hMachine;
|
||||||
DevAdvPropInfo->lpMachineName = lpMachineName;
|
DevAdvPropInfo->lpMachineName = lpMachineName;
|
||||||
DevAdvPropInfo->szDevName[0] = L'\0';
|
DevAdvPropInfo->szDevName[0] = L'\0';
|
||||||
|
@ -1108,7 +1112,7 @@ DisplayDeviceAdvancedProperties(IN HWND hWndParent,
|
||||||
psh.hwndParent = hWndParent;
|
psh.hwndParent = hWndParent;
|
||||||
psh.pszCaption = DevAdvPropInfo->szDevName;
|
psh.pszCaption = DevAdvPropInfo->szDevName;
|
||||||
|
|
||||||
DevAdvPropInfo->PropertySheetType = lpMachineName != NULL ?
|
DevAdvPropInfo->PropertySheetType = DevAdvPropInfo->ShowRemotePages ?
|
||||||
DIGCDP_FLAG_REMOTE_ADVANCED :
|
DIGCDP_FLAG_REMOTE_ADVANCED :
|
||||||
DIGCDP_FLAG_ADVANCED;
|
DIGCDP_FLAG_ADVANCED;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue