anyone got any code lying around for associating a default program with a file extension and wouldn't mind sharing? You know, double click a document file and the associated program automatically fires up etc.
I can see the registry entries which need adding, but just wondered if anyone already has some code lying around which could save me the bother? (Lazy b*stard that I am sometimes!)
Thanks in advance.
I may look like a mule, but I'm not a complete ass.
It's in german but not commented, so you don't have problem with the language
greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
netmaestro wrote:@ts-soft: That's a good well-written include and most useful, thanks for sharing it
It is not from me and based on a includefile from GPI
Some constants should changed for vista compatibility. #KEY_ALL_ACCESS
is not required for reading, better use #KEY_READ
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.