[Bug 52787] Invalid function prototype for "RegisterUserApiHook" when compiling for C++