What does 'void' refer to in this context? For now I'll assume that you mean you want to use this in a function that returns a void type. In that case you can't because, and this is assuming I found the correct documentation for this library that I've never heard of before today, "CAPIHook::sm_LoadLibraryA" is private; this means you can't call it from outside of the class or a derivative there of.