EndDialog function user32
Destroys a modal dialog box, causing the system to end any processing for the dialog box.
BOOL EndDialog(
  HWND    hDlg,
  INT_PTR nResult
);
Implementation
int EndDialog(int hDlg, int nResult) => _EndDialog(hDlg, nResult);