The only slightly fiddly aspect, as previously discussed, is the required structure: it looks complicated at first sight but that's because it has to cover a large number of different platforms, which it does by using a union. Although you can fabricate a union in BBC BASIC, indeed there's a Wiki article about that, it's not necessary in this case because the only platform you are interested in is Windows.
So you can simply ignore everything other than the part of the structure relevant to Windows, and mercifully that leaves you with something quite simple. I listed the BBC BASIC equivalent in a previous post, here it is again except that this time I've listed the 64-bit version because I assume that's what you are most interested in:
Code: Select all
DIM SDL_SysWMinfo{ \
\ version%, \
\ subsystem%, \
\ window%%, \ The window handle
\ hdc%%, \ The device context
\ hinstance%% \ The instance handle
\ }
Once you have declared the structure it should be straightforward (admittedly I haven't tried it myself, for one thing I would have no way of knowing whether the returned native window handle is correct or not). If it doesn't seem to be working for you, list the code you tried.