LB Booster
« Associating files? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 05:06am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Associating files?  (Read 729 times)
datwill
Guest
xx Re: Associating files?
« Reply #7 on: May 12th, 2015, 10:32am »

OK!
Also, I've tried to look up ways of finding out a users status (i.e. Admin or not), and I got as far as finding a user name... I'll keep looking in MSDN but do you know how to do this?

EDIT: Would GetTrusteeTypeA fit my need? MSDN
Quote:
The GetTrusteeType function retrieves the trustee type from the specified TRUSTEE structure. This value indicates whether the trustee is a user, a group, or the trustee type is unknown.

I've found a whole list of security API calls, but don't know which one to use huh
https://msdn.microsoft.com/en-us/library/windows/desktop/aa446674%28v=vs.85%29.aspx
« Last Edit: May 12th, 2015, 10:50am by datwill » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Associating files?
« Reply #8 on: May 12th, 2015, 11:35am »

on May 12th, 2015, 10:32am, Daniel Atwill wrote:
I've tried to look up ways of finding out a users status (i.e. Admin or not)

Code:
    CALLDLL #shell32, "IsUserAnAdmin", admin AS LONG
    IF admin THEN
      PRINT "User is an admin"
    ELSE
      PRINT "User is not an admin"
    END IF 

(The function is deprecated, but seems to work in Windows 8.1. It is not available in Windows 2000.)

Richard.
« Last Edit: May 12th, 2015, 11:38am by Richard Russell » User IP Logged

datwill
Guest
xx Re: Associating files?
« Reply #9 on: May 12th, 2015, 4:03pm »

Wow, I didn't know it was that easy...
embarassed I'm a bit ashamed actually...
Thanks
« Last Edit: May 12th, 2015, 4:03pm by datwill » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »


This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls