I want to compile an asm program made in TASM and I get the following errors:
-----------
Error: Unresolved external 'EnumProcesses' referenced from module sfp.ASM
Error: Unresolved external 'EnumProcessModules' referenced from module sfp.ASM
Error: Unresolved external 'GetModuleBaseNameA' referenced from module sfp.ASM
Error: Unresolved external 'VirtualAllocEx' referenced from module sfp.ASM
Error: Unresolved external 'VirtualFreeEx' referenced from module sfp.ASM
-----------
in my .asm file I call the functions like this "call EnumProcesses",
but in import32.lib these function are missing. "EnumProcesses" api is in "psapi.dll".How can I call these functions, without using LoadLibrary?
Posted on 2003-01-18 16:18:18 by p.andrei
try something like:
implib -f -c psapi.lib c:\windows\system32\psapi.dll

in your program:
includelib psapi.lib
Posted on 2003-01-18 17:29:31 by Tola

try something like:
implib -f -c psapi.lib c:\windows\system32\psapi.dll

in your program:
includelib psapi.lib


where can i find/download implib?
Posted on 2003-01-19 14:26:40 by p.andrei



where can i find/download implib?

should be included with tasm, located in the bin folder.
Posted on 2003-01-19 14:57:32 by Tola
BTW, WIn2k and WinXP use/export the ToolHelp32 API and that is easyer to use than PSAPI... this makes PSAPI required ONLY for WinNT 4.0 OS... kind of obsolete :)

Also AFAIK Yoda has made and unifyed API "pstools" or something that will detect and use either PSAPI or ToolHelp32 API as required.
Posted on 2003-01-19 15:12:21 by BogdanOntanu