mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:25:41 +00:00
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:
parent
e4a01dbd1c
commit
f1f13fff16
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue