Solved

Problem using AdjustTokenPrivelges API

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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...
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

733 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