Files
docs-desktop/dotnet-desktop-guide/framework/wpf/app-development/getcustomui.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

45 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "GetCustomUI"
ms.date: "03/30/2017"
helpviewer_keywords:
- "custom error messages [WPF]"
ms.assetid: e55180fc-35bb-4f80-a136-772b5eb3e4e5
---
# GetCustomUI
Called by PresentationHost.exe to get custom progress and error messages from the host, if implemented.
## Syntax
```cpp
HRESULT GetCustomUI( [out] BSTR* pwzProgressAssemblyName, [out] BSTR* pwzProgressClassName, [out] BSTR* pwzErrorAssemblyName, [out] BSTR* pwzErrorClassName );
```
## Parameters
`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 <xref:System.Windows.Controls.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 <xref:System.Windows.Controls.Page> is its top-level element. This class resides in the assembly that is specified by `pwzErrorAssemblyName`.
## Property Value/Return Value
HRESULT: Ignored.
## Remarks
A host application may have a specific theme that PresentationHost.exes default user interfaces may not conform to. If this is the case, the host application can implement [GetCustomUI](getcustomui.md) to return progress and error user interfaces to PresentationHost.exe. PresentationHost.exe will always call [GetCustomUI](getcustomui.md) before using its default user interfaces.
This function is called once during PresentationHosts initialization.
## See also
- [IWpfHostSupport](iwpfhostsupport.md)