SDL/src/video/windows
Sam Lantinga 4a089ca1c8 Fixed bug 3486 - Can't get HINSTANCE of my window
realitix

SDL2 allows to create widow and to get information through SDL_SysWMinfo.
But it misses something, with Vulkan, you need the HWND and HINSTANCE of the window for Win32 system.
Sadly, SDL2 provides only HWND but not HINSTANCE.

In some context, it can be difficult to get the HINSTANCE, indeed, I'm using pySDL2 (Python) and I can only access properties that SDL2 gives me.
I have to use a dirty trick like that to get the HINSTANCE:  (https://raw.githubusercontent.com/bglgwyng/pyVulkan/master/examples/win32misc.py)
2016-11-20 21:18:55 -08:00
..
SDL_msctf.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_vkeys.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsclipboard.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsclipboard.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsevents.c Fixed bug 3453 - First mouse button input after a drag and drop event is ignored 2016-10-14 08:40:21 -07:00
SDL_windowsevents.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsframebuffer.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsframebuffer.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowskeyboard.c Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications. 2016-10-01 12:17:42 -07:00
SDL_windowskeyboard.h Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications. 2016-10-01 12:17:42 -07:00
SDL_windowsmessagebox.c Fixed bug 2832 - Inverted arrow-key navigation in MessageBox 2016-10-07 16:19:50 -07:00
SDL_windowsmessagebox.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsmodes.c Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!) 2016-05-23 15:29:25 -03:00
SDL_windowsmodes.h Added SDL_GetDisplayUsableBounds(). 2016-01-04 23:52:40 -05:00
SDL_windowsmouse.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsmouse.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsopengl.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsopengl.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsopengles.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsopengles.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsshape.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsshape.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowsvideo.c Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
SDL_windowsvideo.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_windowswindow.c Fixed bug 3486 - Can't get HINSTANCE of my window 2016-11-20 21:18:55 -08:00
SDL_windowswindow.h Fixed bug 3486 - Can't get HINSTANCE of my window 2016-11-20 21:18:55 -08:00
wmmsg.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00