DlgDirSelectEx

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Ansi)]
public static extern bool DlgDirSelectExA(IntPtr hwndDlg,
   StringBuilder lpString,
   int cchOut,
   int idListBox
);

Microsoft documentation: Link

Last updated