[This is preliminary documentation and subject to change.]
Collects the pages from the primary snap-in.
HRESULT AddPrimaryPages(
LPUNKNOWN lpUnknown, // Pointer to an IComponent or IComponentData
BOOL bCreateHandle, // Specifies a handle to a notification
HWND hNotifyWindow, // Specifies the main HWND
BOOL bScopePane // TRUE for scope pane, FALSE for result pane
);
If this parameter is TRUE, the provider creates a notify handle. lpUnknown must not be NULL.
If a snap-in uses the provider directly, you can call IPropertySheetCallback::AddPage to add the primary pages and call AddPrimaryPages (NULL, FALSE, NULL, [TRUE or FALSE]) so the provider will add these pages to the property sheet.
The snap-in might not add any pages during this method call. If this is the case, extension pages should not be added.
IDataObject, IPropertySheetProvider