troubleshooting Question

Best way to get user permissions from VB6

Avatar of riceman0
riceman0 asked on
Visual Basic Classic
4 Comments2 Solutions1429 ViewsLast Modified:

Hello, I have the unenviable task of modifying an ancient VB6 program.  Don't know if anyone is still using this stuff, but...

A feature we want to add is to disable certain functions if the user is not logged in to that computer as an administrator.

What is the best way (if I recall there are often a few ways to do things in VB6, but they could be of varying reliability/robustness) for a VB6 app to query the OS as to whether the user is part of the Administrators group?

Thanks very much in advance.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros