SYSWMEVENT can't be enabled

I’m trying to write a small program for windows using an API I wrote that uses SDL. The program will be a system tray application. The problem I’m having is that I don’t get any SYSWMEVENTs. I call SDL_EventState to enable it, and verify it’s set with SDL_QUERY

EDIT: I have this in my main loop and it always pauses, even though it’s verified right after it’s set

while (SDL_PollEvent(&event)) {
    if (SDL_GetEventState(SDL_SYSWMEVENT) == SDL_DISABLE) {
        system("pause");
    }
    //Code
}

The program will be a system tray application.

There needs to be an actual SDL_Window somewhere to get events; just listening for events with SDL_PollEvent() won’t report anything otherwise.

Not sure if this is the problem, but it seems like a likely suspect due to the mention of the system tray.

I’m hiding it using SDL_HideWindow, would it still work on a window hidden that way?

I’m hiding it using SDL_HideWindow, would it still work on a window hidden that way?

I think so…is there source code we can look at somewhere to reproduce this issue?