Is it not possible to return custom values from a thread pool function?
I'm using CmtGetThreadPoolFunctionAttribute to get the thread pool function return value, but it seems to only send me 0 (pass) and -1 (fail). My thread function though can return several custom integer value codes depending on what exactly failed.
Is there a way?