FAQ #2523, published on 2002-10-15
WINDEV
How can I obtain information from files in User GroupWare while my
application is running?
You can directly access the files generated by User GroupWare. The
files of the GroupWare user are dynamically described internally. To
utilize them use the command HDeclareExternal(). The password of these
files is defined in the creation window of the GroupWare user, e.g.
"PCSGPW2001".

Code example how to learn whether the current user has "Supervisor" rights:

EXTERN UTIL
sUser is string
HDeclareExternal(fCurrentDir()+"\My_Project\GPWUtilisateur.FIC","UTIL","PCSGPW2001")
sUser = gpwGetUserInfo(gpwInfoLogin)
HReadSeek("UTIL","LOGIN",sUser)
IF HFound() AND UTIL.SUPERVISOR=1 THEN
_Info("User is of type 'Supervisor'")
END
See also : wd7, groupware, file, gpw, user