The standard file dialogs offered by WinForms and WPF are just wrappers around their own dialogs. Therefore, it makes sense to use these managed C # classes.
If you want to customize the dialogs in some way (for example, adding controls to the dialog), you may encounter a case of using your own API. But this is mainly because you need to use a different configuration method for XP from what is used for Vista / 7. Even in pure native code, setting up file dialogs is not trivial, and you really should avoid this if you can reasonably.
source
share