I have this code here
program Project1;
{$APPTYPE CONSOLE}
function GetCurrentProcessID : Cardinal; stdcall; external 'kernel32.dll';
begin
writeln (GetCurrentProcessID);
readln;
end.
and it shows me that the entrypoint of GetCurrentProcessID
could not be found. Any idea why?
I even tried
function GetCurrentProcessID : Cardinal; stdcall; external 'kernel32.dll'; name 'GetCurrentProcessID';
with no luck either...
The name of the function in kernel32 is GetCurrentProcessId
, note the lower case 'd'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With