Solved

win32s api's problem

Posted on 2000-04-16
2
796 Views
Last Modified: 2010-04-04
when I make program with win32api,I write:user_info.usri1_priv :=USER_PRIV_USER;
the compiler said :[Error] addntuser.pas(107): Undeclared identifier: 'USER_PRIV_USER'.
what's the matter? ( I'v see 'USER_PRIV_USER'is not found in the windows.dcu.what can I do?)
0
Comment
Question by:chenhuapeng
2 Comments
 
LVL 3

Expert Comment

by:f15iaf
ID: 2736277
look the value of "USER_PRIV_USER" at lm.h
0
 
LVL 1

Accepted Solution

by:
nrico earned 100 total points
ID: 2745035
For your convenience, I found this in LMACCESS.H:

#define USER_PRIV_MASK 0x3
#define USER_PRIV_GUEST 0
#define USER_PRIV_USER 1
#define USER_PRIV_ADMIN 2

That translates to

Const
  USER_PRIV_MASK=$03,
  USER_PRIV_GUEST=0,
  USER_PRIV_USER=1,
  USER_PRIV_ADMIN=2;
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question