Using Win32 API

Blitz3D Forums/Blitz3D Programming/Using Win32 API

I posted the decls there as I wanted to use them to do a particular strange thing (actually it was to get the users desktop colour depth) and thought that they ** MIGHT ** be useful for others but...

I agree with semar, the use of the WIN API is not needed to produce polished pro games. You can do it all with Blitz. It's only when you want to do something 'out of the box', like get the users desktop wallpaper that you need to use WIN API calls.

Typically if you don't know you need them then you don't, you are not missing anything!

But to answer your question. Drop them in your \blitz3d\userlibs directory. Then in your code call them like this for example this sets the desktop wallpaper...

api_SystemParametersInfo(20, 0, gen_screenshot_filename$, 1)

Hope that answers your question.