Partager via


IUIHostLocale2.LoadDialog Method

Loads a dialog box template.

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

Syntax

'Declaration
Function LoadDialog ( _
    hMod As UInteger, _
    dwDlgResId As UInteger, _
    <OutAttribute> ByRef ppDlgTemplate As IntPtr _
) As Integer
int LoadDialog(
    uint hMod,
    uint dwDlgResId,
    out IntPtr ppDlgTemplate
)
int LoadDialog(
    [InAttribute] unsigned int hMod, 
    [InAttribute] unsigned int dwDlgResId, 
    [OutAttribute] IntPtr% ppDlgTemplate
)
abstract LoadDialog : 
        hMod:uint32 * 
        dwDlgResId:uint32 * 
        ppDlgTemplate:IntPtr byref -> int
function LoadDialog(
    hMod : uint, 
    dwDlgResId : uint, 
    ppDlgTemplate : IntPtr
) : int

Parameters

  • hMod
    Type: UInt32

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

  • dwDlgResId
    Type: UInt32

    [in] Identifier of the dialog box template.

  • ppDlgTemplate
    Type: IntPtr%

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

Return Value

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

Remarks

COM Signature

From uilocale.idl:

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

Named dialogs are not supported.

.NET Framework Security

See Also

Reference

IUIHostLocale2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace