> What dll is GetCurrentProcessId located in?
Its located in Kernel32.dll
Next time when you want to figure it out you could do worse than to search
" for it (perhaps like this : "site:learn.microsoft.com
GetCurrentProcessId". Works for several search engines, not just Google),
and than, on the returned MS webpage, look at the "Requirements" box at the
bottom. It mostly has a "DLL" entry.