Solved

Problem using AdjustTokenPrivelges API

Posted on 1998-01-09
1
216 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
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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now