I've never done it myself but I saw such code in Delphi.
IMHO it still should be possible on modern systems. After all, a lot o game hacks operate on accessing memory (yes memory, not file).
For example StarCraft hacks. I saw hacks to this game made in Delphi and Visual Basic I think it could be possible in Free Pascal too. Probably by using Windows API. Don't know hot it works under Linux. But it is certainly possible under Windows.