There was no error when hook 'MessageBoxA'.
But, There was problem while hook ZwQuerySystemInformation API (ntdll.dll).
I made dll and i inject dll into other target process.
Hooking was working successfully.
But , AV Error occured when target process terminating.
I mean i close taget process window.
But, there was no problem when i try to hooking MessageBoxA in the user32.dll.
There was no error when hook 'MessageBoxA'. But, There was problem while hook ZwQuerySystemInformation API (ntdll.dll).
I made dll and i inject dll into other target process. Hooking was working successfully. But , AV Error occured when target process terminating. I mean i close taget process window. But, there was no problem when i try to hooking MessageBoxA in the user32.dll.