Crash on SendMessageTimeout with ofGLFWWindowSettings


#1

Hi,

I’m trying to perform a command in setup
SendMessageTimeout(hwnd, 0x052C, 0, NULL, SMTO_NORMAL, 1000, result);

This works with ofSetupOpenGL(200,200,OF_WINDOW);
but unfortunately crashes if I use the ofGLFWWindowSettings renderer.

Perhaps I’m missing something specific here? I’ve tried SMTO_BLOCK and the hwnd is found.

Thanks for any help or pointers!


#2

Fixed changing
result from PDWORD_PTR to DWORD
and command to:
SendMessageTimeout(hwnd, 0x052C, 0, NULL, SMTO_BLOCK, 1000, &result);