Common Dialog Boxes The COMDLG32 sample demonstrates how to use the file open common dialog box. It shows how to create a hook procedure for GetOpenFileName.