IUIHostLocale2::LoadDialog Method (UInt32, UInt32, IntPtr)

 

Loads a dialog box template.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int LoadDialog(
	unsigned int hMod,
	unsigned int dwDlgResId,
	[OutAttribute] IntPtr% ppDlgTemplate
)

Parameters

hMod
Type: System::UInt32

[in] Handle to the module that will create the dialog box.

dwDlgResId
Type: System::UInt32

[in] Identifier of the dialog box template.

ppDlgTemplate
Type: System::IntPtr

[out] Pointer to the dialog box template to load.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From uilocale.idl:

HRESULT IUIHostLocale2::LoadDialog(
   [in] DWORD_PTR hMod,
   [in] DWORD dwDlgResId,
   [out] BYTE **ppDlgTemplate
);

Named dialogs are not supported.

Return to top
Show: