Try
GetCurrentProcessId(void);
From there you can call many other system functions, to find additional process information.
If a virus is calling your function, it could reroute any of these system calls...
Good luck in writing an 'anti-virus'. You have a lot of studying ahead of you.