Skip to content

Instantly share code, notes, and snippets.

@ktye
ktye / fileopen.c
Created August 4, 2022 05:15
show windows 3.1 file open dialog
// this program opens an old win 3.1 file-open dialog.
//
// it works if OFN_EXPLORER is missing AND a hook is used.
//
// compile with msys2/mingw:
// gcc fileopen.c -lcomdlg32 -o fileopen
#include<windows.h>
#include<commdlg.h>
#include<stdio.h>