Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
qwiScriptStyler
Getting full error messages
Drop Shadow Follow Mouse or Sprite-Alphamania
Emboss trick
Image capture Xtra
Flash Sprite -- Simple Controller [Play, Pause, Rewind]
BitChecker
Volume Control-Button Only
Ripple Button-Alphamania
Odd levels cause audio to play incorrectly
 

 

 

Behavior Check user's administrative privileges on NT platform

Added on 3/24/2002

 

Compatibilities:
behavior D6_5 D7 D8 D8_5 PC US

Required Xtras:
KeyboardControl Xtra Standard

This item has not yet been rated

Author: Shockdev

On NT platform some system functionality is not available. This tiny behavior allows to check Administrative Privileges that user has.

-- Behavior to check administrative privileges on NT/2000
-- KeyboardControl Xtra 1.1 or later required

on getBehaviorDescription
  return "Checks User's Administrative Privileges"
end

on mouseDown
  checkPrivileges
end

on checkPrivileges
  set IsAdmin = KeyboardControlIsAdmin()
  case IsAdmin of
    0: set Status = "Disabled"
    1: set Status = "Enabled"
  end case
  alert ("Administrative privileges are " & Status)
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail