nvidia-patch/win/nvfbcwrp/nvfbcbody.asm

43 lines
992 B
NASM
Raw Normal View History

2019-12-03 11:27:46 +00:00
IFDEF RAX
ptrsz equ <qword>
ELSE
.486
.model flat, c
ptrsz equ <dword>
ENDIF
.data
2019-12-03 11:27:46 +00:00
extern ORIG_NvFBC_Create : ptrsz, ORIG_NvFBC_Enable : ptrsz,
ORIG_NvFBC_GetSDKVersion : ptrsz, ORIG_NvFBC_GetStatus : ptrsz,
ORIG_NvFBC_GetStatusEx : ptrsz, ORIG_NvFBC_SetGlobalFlags : ptrsz,
ORIG_NvOptimusEnablement : ptrsz
.code
PROXY_NvFBC_Create proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_Create]
PROXY_NvFBC_Create endp
PROXY_NvFBC_Enable proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_Enable]
PROXY_NvFBC_Enable endp
PROXY_NvFBC_GetSDKVersion proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_GetSDKVersion]
PROXY_NvFBC_GetSDKVersion endp
PROXY_NvFBC_GetStatus proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_GetStatus]
PROXY_NvFBC_GetStatus endp
PROXY_NvFBC_GetStatusEx proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_GetStatusEx]
PROXY_NvFBC_GetStatusEx endp
PROXY_NvFBC_SetGlobalFlags proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvFBC_SetGlobalFlags]
PROXY_NvFBC_SetGlobalFlags endp
PROXY_NvOptimusEnablement proc
2019-12-03 11:27:46 +00:00
jmp ptrsz ptr [ORIG_NvOptimusEnablement]
PROXY_NvOptimusEnablement endp
end