Solved

win32s api's problem

Posted on 2000-04-16
2
800 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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