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

'Déclaration
Function LoadDialog ( _
    hMod As UInteger, _
    dwDlgResId As UInteger, _
    <OutAttribute> ByRef ppDlgTemplate As IntPtr _
) As Integer
'Utilisation
Dim instance As IUIHostLocale2
Dim hMod As UInteger
Dim dwDlgResId As UInteger
Dim ppDlgTemplate As IntPtr
Dim returnValue As Integer

returnValue = instance.LoadDialog(hMod, _
    dwDlgResId, ppDlgTemplate)
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: 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.

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

IUIHostLocale2 Members

Microsoft.VisualStudio.Shell.Interop Namespace