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

Marcos Douglas md at delfire.net
Wed Mar 16 18:42:11 CET 2011


On Wed, Mar 16, 2011 at 2:23 PM, DaWorm <daworm at gmail.com> wrote:
> On Wed, Mar 16, 2011 at 11:25 AM, Marcos Douglas <md at delfire.net> wrote:
>>> I also had to make sure the code was
>>> being ran as an administrator.
>>
>> That's nice. Can you share the function?
>
> Again, don't remember where I found this, Google or MSDN probably.
> Only tested in Delphi.
>
> function IsAdmin: Boolean;
> [......]

Thanks, I will test.

Marcos Douglas



More information about the fpc-pascal mailing list