mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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 DoDefaultDevAction : 1;
|
||||
BOOL PageInitialized : 1;
|
||||
BOOL ShowRemotePages : 1;
|
||||
BOOL HasDriverPage : 1;
|
||||
BOOL HasResourcePage : 1;
|
||||
BOOL HasPowerPage : 1;
|
||||
|
@ -423,7 +424,9 @@ UpdateDevInfo(IN HWND hwndDlg,
|
|||
&bDrvInstalled) &&
|
||||
bDrvInstalled)
|
||||
{
|
||||
if (SetupDiCallClassInstaller(DIF_ADDPROPERTYPAGE_ADVANCED,
|
||||
if (SetupDiCallClassInstaller((dap->ShowRemotePages ?
|
||||
DIF_ADDREMOTEPROPERTYPAGE_ADVANCED :
|
||||
DIF_ADDPROPERTYPAGE_ADVANCED),
|
||||
DeviceInfoSet,
|
||||
DeviceInfoData))
|
||||
{
|
||||
|
@ -1093,6 +1096,7 @@ DisplayDeviceAdvancedProperties(IN HWND hWndParent,
|
|||
DevAdvPropInfo->CurrentDeviceInfoSet = INVALID_HANDLE_VALUE;
|
||||
DevAdvPropInfo->CurrentDeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
|
||||
|
||||
DevAdvPropInfo->ShowRemotePages = (lpMachineName != NULL && lpMachineName[0] != L'\0');
|
||||
DevAdvPropInfo->hMachine = hMachine;
|
||||
DevAdvPropInfo->lpMachineName = lpMachineName;
|
||||
DevAdvPropInfo->szDevName[0] = L'\0';
|
||||
|
@ -1108,7 +1112,7 @@ DisplayDeviceAdvancedProperties(IN HWND hWndParent,
|
|||
psh.hwndParent = hWndParent;
|
||||
psh.pszCaption = DevAdvPropInfo->szDevName;
|
||||
|
||||
DevAdvPropInfo->PropertySheetType = lpMachineName != NULL ?
|
||||
DevAdvPropInfo->PropertySheetType = DevAdvPropInfo->ShowRemotePages ?
|
||||
DIGCDP_FLAG_REMOTE_ADVANCED :
|
||||
DIGCDP_FLAG_ADVANCED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue