?
Solved

Problem using AdjustTokenPrivelges API

Posted on 1998-01-09
1
Medium Priority
?
235 Views
Last Modified: 2013-12-28
I am writing a application on NT Workstation 4.0. I am trying to change the priveleges for SE_TCB_NAME. i.e i am trying to enable it so that i can use the LogonUser API. But when i do this it gives me a error as ERROR_NOT_ALL_ASSIGNED(1300).
What are the other priveleges that are required to be enabled before trying to do this.
The procedure i follow for doing is as per MSDN.
0
Comment
Question by:ajay081397
[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
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 0 total points
ID: 1788891
The ERROR_NOT_ALL_ASSIGNED is returned by AdjustTokenPrivileges() when 1 or more of the privs you requested was not granted for one reason or another.  

There are several causes.  Simple one are that you are not calling the function properly (you could post your code here), or that you have not allocated space properly for the results (this is a common problem).  You may also not be able to get the SE_TCB_NAME priv.  Is your process entitled to request this priv?
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Determining the an SCCM package name from the Package ID
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

801 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