How do I optimize RAM using API calls? I was thinking about GlobalFree and GlobalAlloc, but I don't know how to use them, anybody?