void GetService(IWizardPageContainer *pContainer, I **ppService)
This function is defined in IWizardPageContainer.h and provides a type-safe wrapper over the IWizardPageContainer->GetService method—for example:
GetService<ITSVariableBag>(Container(), &pTsBag);
This function retrieves the task sequence component, which supports the ITSVariableBag interface. (For ITSVariableBag, you can use the TSVariables method of the WizardPageImpl class, instead.)
Related Topics