Home > Archive > FoxPro Help and Support > July 2005 > Check Admin in Windows 2000 and/or NT









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Check Admin in Windows 2000 and/or NT
SLOBBE NICOLA

2005-07-01, 11:24 am

Hi,

i want to check if the user is Administrator.

The function IsUserAnAdmin is possibile only under Windows XP.

How I do this in Windows 2000 and/or NT?

Thank fot you answear.


SLOBBE NICOLA




Jan Bucek

2005-07-02, 7:24 am

Found anywhere, never used:

* in WinNT/2000/XP - is user admin?

DECLARE Integer IsNTAdmin IN advpack.dll
IF IsNTAdmin() = 0
MESSAGEBOX( "No" )
ELSE
MESSAGEBOX( "Yes" )
ENDIF


HTH



SLOBBE NICOLA napsal(a):
> Hi,
>
> i want to check if the user is Administrator.
>
> The function IsUserAnAdmin is possibile only under Windows XP.
>
> How I do this in Windows 2000 and/or NT?
>
> Thank fot you answear.
>
>
> SLOBBE NICOLA
>
>
>
>

SLOBBE NICOLA

2005-07-13, 3:24 am

Thank,

i try and the solution is ok.
But in which windows version (include service pack) exist advpack.dll with
IsNTAdmin function?

SLOBBE NICOLA

"Jan Bucek" <bucek.jan@post.cz> ha scritto nel messaggio
news:OyVb2QufFHA.1372@TK2MSFTNGP10.phx.gbl...[color=darkred]
> Found anywhere, never used:
>
> * in WinNT/2000/XP - is user admin?
>
> DECLARE Integer IsNTAdmin IN advpack.dll
> IF IsNTAdmin() = 0
> MESSAGEBOX( "No" )
> ELSE
> MESSAGEBOX( "Yes" )
> ENDIF
>
>
> HTH
>
>
>
> SLOBBE NICOLA napsal(a):


Jan Bucek

2005-07-13, 3:24 am

Sorry, I don't know. I have never tested or used it, only found anywhere
and saved.

SLOBBE NICOLA napsal(a):
> Thank,
>
> i try and the solution is ok.
> But in which windows version (include service pack) exist advpack.dll with
> IsNTAdmin function?
>
> SLOBBE NICOLA
>
> "Jan Bucek" <bucek.jan@post.cz> ha scritto nel messaggio
> news:OyVb2QufFHA.1372@TK2MSFTNGP10.phx.gbl...
>
>
>
>

SLOBBE NICOLA

2005-07-15, 11:24 am

i'll try.

Thanks.


"Jan Bucek" <bucek.jan@post.cz> ha scritto nel messaggio
news:eJ9PLn3hFHA.1044@tk2msftngp13.phx.gbl...[color=darkred]
> Sorry, I don't know. I have never tested or used it, only found anywhere
> and saved.
>
> SLOBBE NICOLA napsal(a):
with[color=darkred]


Lee Mitchell

2005-07-22, 8:25 pm

Hi SLOBBE NICOLA:

Take a look at this web link. It tells you what products install
Advpack.dll.

http://support.microsoft.com/dllhel...=advpack.dll&S=
1&x=10&y=11

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/i...cid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Thank,


>i try and the solution is ok.
>But in which windows version (include service pack) exist advpack.dll with
>IsNTAdmin function?


>SLOBBE NICOLA

[color=darkred]
>"Jan Bucek" <bucek.jan@post.cz> ha scritto nel messaggio
>news:OyVb2QufFHA.1372@TK2MSFTNGP10.phx.gbl...
> Found anywhere, never used:
>
> * in WinNT/2000/XP - is user admin?
>
> DECLARE Integer IsNTAdmin IN advpack.dll
> IF IsNTAdmin() = 0
> MESSAGEBOX( "No" )
> ELSE
> MESSAGEBOX( "Yes" )
> ENDIF
>
>
> HTH
>
>
>
> SLOBBE NICOLA napsal(a):



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com