Hi Ken, Am 26.03.2012 um 20:47 schrieb Ken Ray:
> On Mar 26, 2012, at 1:38 AM, Tiemo Hollmann TB wrote: > >> Hi Bob, >> thanks for your hints. >> For windows standalones you can set the UAC Execution Level to "require >> Admin". So LC knows, who's logged in. I wonder, if we can retrieve this >> information from LC? > > You can get the name of the user that is logged in by checking the > environment variables $USERNAME (on Windows) and $USER (on Mac). As to the > user's permission level, this is what I use (watch line wraps): > function stsIsAdminUser pName, pComputer what is "pComputer", resp. how do I get this value? > put stsAdminUserList(pComputer) into tList > ... > end stsAdminUserList > > Hope this helps, > > Ken Ray Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode