Newhooks

Hooking system changed to use MinHook library instead of unhook/rehook system. This will allow OBS to coexist with other programs that want to hook the D3D render chain. Have tested on D3D9, D3D11, OpenGL, and D3D11 x64. Testing was done on Win8; may have missed come configurations.

Hooking system selection is currently controlled by a compile-time #define inside GraphicsCaptureHook.h:
#define OLDHOOKS 0   // 0 = false = don't use old system = use new hooking system (default)
#define OLDHOOKS 1   // 1 = true = use old system = don't use these modifications

MinHook is BSD license and forked from the newer https://github.com/RaMMicHaeL/minhook fork, with some additional modifications to make it more stable. It supports both x86 and x64 hooking.