DialogBoxIndirect function Null safety user32

void DialogBoxIndirect (
  1. int hInstance,
  2. Pointer<DLGTEMPLATE> lpTemplate,
  3. int hWndParent,
  4. Pointer<NativeFunction<DlgProc>> lpDialogFunc
)

Creates a modal dialog box from a dialog box template in memory. DialogBoxIndirect does not return control until the specified callback function terminates the modal dialog box by calling the EndDialog function.

DialogBoxIndirect is implemented as a call to the DialogBoxIndirectParam function.

void DialogBoxIndirectW(
   hInstance,
   lpTemplate,
   hWndParent,
   lpDialogFunc
);

Implementation

void DialogBoxIndirect(int hInstance, Pointer<DLGTEMPLATE> lpTemplate,
        int hWndParent, Pointer<NativeFunction<DlgProc>> lpDialogFunc) =>
    DialogBoxIndirectParam(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0);