SDL_GetWMInfo -- Gets window-manager specific information, if available
#include "SDL_syswm.h" int SDL_GetWMInfo(SDL_SysWMinfo *info);
This function fills in the structure pointed to by info with window-manager specific information. The info.version field has to be set to the used SDL version. Perhaps Windows specific: Return value on failure is -1.
1 if the function is implemented and no error occured, 0 if function is unimplemented, -1 if implemented but a failure occurred. (Non-zero if function implemented, zero if not.)
// ... some code here ... SDL_VERSION(&info.version); // this is important! if (SDL_GetWMInfo(&info)) // ... structure manipulating code ... // ... some code here ...