- --- a/host/Capture/NvFBC.cpp
- +++ b/host/Capture/NvFBC.cpp
- @@ -119,12 +119,20 @@ bool NvFBC::Initialize(CaptureOptions * options)
- return false;
- }
- + // Secret password that enables NvFBC for GeForce cards. Use of
- + // NvFBC requires that you install the NVIDIA Capture SDK and run
- + // NvFBCEnable.exe -enable in an elevated cmd:
- + // C:\Program Files (x86)\NVIDIA Corporation\NVIDIA Capture SDK\bin\NvFBCEnable.exe -enable
- + int magic[] = { 0x0D7BC620, 0x4C17E142, 0x5E6B5997, 0x4B5A855B };
- +
- NvFBCCreateParams params;
- ZeroMemory(¶ms, sizeof(NvFBCCreateParams));
- params.dwVersion = NVFBC_CREATE_PARAMS_VER;
- params.dwInterfaceType = NVFBC_TO_SYS;
- params.pDevice = NULL;
- params.dwAdapterIdx = 0;
- + params.pPrivateData = &magic;
- + params.dwPrivateDataSize = sizeof(magic);
- if (m_fnCreateEx(¶ms) != NVFBC_SUCCESS)
- {