[fpc-pascal] Function to know if WIN is 32 or 64

DaWorm daworm at gmail.com
Wed Mar 16 16:19:46 CET 2011

On Wed, Mar 16, 2011 at 8:45 AM, Marcos Douglas <md at delfire.net> wrote:
> The program was compiled in 32-bits but I have to know what kind of OS
> is running because my program needs to install somethings.

That's why I needed it too.  In my case, my code is always 32 bit, but
to install a smart card NULL driver, I needed to be able to adjust
both the 32 bit registry and the 64 bit registry.  Just adjusting the
32 bit registry wasn't enough.  I also had to make sure the code was
being ran as an administrator.


More information about the fpc-pascal mailing list