홈 · 개발 참고자료

개발 참고자료

[파워빌더] Detect if the current user is a member of the Administrator's group

작성자
관리자
작성일
2016-10-16
조회
8762
분류
파워빌더
[W2K/XP ok but not Vista!][local function declaration]
FUNCTION boolean IsUserAnAdmin() LIBRARY "shell32.dll"

[powerscript]
MessageBox("Is Admin ?", IsUserAnAdmin())

With Vista,you need to use the LookupPrivilegeValue and AdjustTokenPrivileges APIs, I have no example but if you have one, send it to me!