Solved

win32s api's problem

Posted on 2000-04-16
2
802 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…

710 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