Also, I don't think this is a thread specific function, other implementations can use it in the future, maybe move it to rte_windows.h?
I'd suggest that it's probably better suited to a .c file rather than a header. As an example of what it might end up like see https://github.com/wpdk/wpdk/blob/master/src/error.c Regards, Nick