Enable shell extensions to add pages to the control panel. The "Remote" page in XP however disappears when being clicked on. Is someone interested in taking a look at it?

svn path=/trunk/; revision=25536
This commit is contained in:
Thomas Bluemel 2007-01-19 18:34:50 +00:00
parent e4a01dbd1c
commit f1f13fff16

View file

@ -102,6 +102,7 @@ SystemApplet(VOID)
HPROPSHEETPAGE hpsp[MAX_SYSTEM_PAGES];
PROPSHEETHEADER psh;
HMODULE hNetIdDll;
HPSXA hpsxa;
LONG Ret;
static INITCOMMONCONTROLSEX icc = {sizeof(INITCOMMONCONTROLSEX), ICC_LINK_CLASS};
@ -125,8 +126,20 @@ SystemApplet(VOID)
InitPropSheetPage(&psh, IDD_PROPPAGEHARDWARE, (DLGPROC) HardwarePageProc);
InitPropSheetPage(&psh, IDD_PROPPAGEADVANCED, (DLGPROC) AdvancedPageProc);
/* Load additional pages provided by shell extensions */
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\System"), MAX_SYSTEM_PAGES - psh.nPages);
if (hpsxa != NULL)
{
SHAddFromPropSheetExtArray(hpsxa, PropSheetAddPage, (LPARAM)&psh);
}
Ret = (LONG)(PropertySheet(&psh) != -1);
if (hpsxa != NULL)
{
SHDestroyPropSheetExtArray(hpsxa);
}
if (hNetIdDll != NULL)
FreeLibrary(hNetIdDll);