Capturing mouse wheel events outside of window

Hello! A piece of software that I’m writing needs to be able to access the mouse buttons from outside the window at all times. Using SDL_GetGlobalMouseState works great for the usual left/middle/right mouse buttons, but when it comes to the thumb buttons, it turns out that SDL is registering those as mouse wheel events, which SDL_GetGlobalMouseState does not support. This is where my issue arises, since the only other option I know of is to use SDL_CaptureMouse, which the wiki says should be used sparingly. Is there a third option that SDL provides that is okay to use constantly while the program runs in the background, or am I trying to do something impossible? Thank you!