Link to home
Start Free TrialLog in
Avatar of pedja11
pedja11

asked on

Administrator privilegues

Hello experts.
How can I programatically determine if logged user has administrator's privilegues? I tried to do this with NetUserGetInfo function but it will not work on Windows98.
I have dll with my CheckPrivilegues function. This function calls NetUserGetInfo. Dll is linked to lib needed for NetUserGetInfo. The problem occurs in Windows98 where, because of that lib, my dll can't be used.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KBCRULE
KBCRULE

what jkr said.
there won't be a way to limit a programs functionality based on win 9x user groups because there aren't any. If you're trying to make a network program, win nt 2k or xp would be your choices. If it's really important make it unusable on 9x.
Avatar of pedja11

ASKER

That was my question, how to make it unusable on 9x. I solved the problem. I load dlls only if it is necessary.
Can you re-open this question? I will not accept a C grade for that.
Avatar of pedja11

ASKER

I don't know how can I re-open my question. Also, I can't see how can I cancel my question. You didn't understand my question. I knew that there are no user group on win 9x and I just wanted to know how to avoid using dlls with functions for network users which don't exist on win 9x. That's why C. Sure, it's not a problem to change it to A, but I just don't know how.