GetCustomUI
Called by PresentationHost.exe to get custom progress and error messages from the host, if implemented.
HRESULT GetCustomUI( [out] BSTR* pwzProgressAssemblyName, [out] BSTR* pwzProgressClassName, [out] BSTR* pwzErrorAssemblyName, [out] BSTR* pwzErrorClassName );
Parâmetros
pwzProgressAssemblyName
[out] A pointer to the assembly that contains the host-supplied progress user interface.
pwzProgressClassName
[out] The name of the class that is the host-supplied progress user interface, preferably a XAML file with Page is its top-level element. This class resides in the assembly that is specified by pwzProgressAssemblyName.
pwzErrorAssemblyName
[out] A pointer to the assembly that contains the host-supplied error user interface.
pwzErrorClassName
[out] The name of the class that is the host-supplied error user interface, preferably a XAML file with Page is its top-level element. This class resides in the assembly that is specified by pwzErrorAssemblyName.
Property Value/Return Value
HRESULT: Ignorado.
Comentários
A host application may have a specific theme that PresentationHost.exe’s default user interfaces may not conform to. Se for esse o caso, o aplicativo host pode implementar GetCustomUI para retornar o progresso e o erro de interfaces de usuário PresentationHost.exe. Sempre chamará PresentationHost.exe GetCustomUI antes de usar suas interfaces de usuário padrão.
This function is called once during PresentationHost’s initialization.