VirtualAllocEx lazarus / 34-Windows ---------------------------------------------------------------------- MuteClown · 2011-02-17 15:00 I am unable to use VirtualAllocEx, i am using the Windows and SysUtils units. Error: Identifier not found "VirtualAllocEx Is what i am getting, i know its a kernel32 function, am i not using the right units or is it located some where else? Or maybe not implemented any where? ---------------------------------------------------------------------- Leledumbo · 2011-02-17 15:45 grepping my fpc source, I found it in jwawinbase. ---------------------------------------------------------------------- MuteClown · 2011-02-17 17:01 Thanks you ---------------------------------------------------------------------- framework · 2011-07-11 13:54 Is there a way to manually define API calls in lazarus? ---------------------------------------------------------------------- Leledumbo · 2011-07-11 14:45 QuoteIs there a way to manually define API calls in lazarus?You mean: Code: [Select]uses   ctypes; { links to somecfunc defined in a library someclib (libsomeclib.so on   Linux, someclib.dll on Windows, someclib.dylib on Mac, or   libsomeclib.a if static) } function somecfunc(c: cint): cint; cdecl; external 'someclib'; { links to myfunc defined in a library alib with, but you access it   with localfunc symbol (useful when function name conflicts with   Pascal keywords) } procedure localfunc; stdcall; external 'alib' name 'myfunc'; More info ---------------------------------------------------------------------- framework · 2011-07-11 15:54 Thanks! I just moved from VB.NET to Pascal and many of my programs had a heavy use of API calls. ---------------------------------------------------------------------- marcov · 2011-07-11 20:39 added virtualallocex in trunk. Consider adding bugreports for missing calls, specially if they are relatively common used.