[fpc-pascal] Function to know if WIN is 32 or 64
md at delfire.net
Wed Mar 16 16:25:41 CET 2011
On Wed, Mar 16, 2011 at 12:19 PM, DaWorm <daworm at gmail.com> wrote:
> 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.
That's nice. Can you share the function?
More information about the fpc-pascal