Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem using AdjustTokenPrivelges API

Posted on 1998-01-09
1
Medium Priority
?
242 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

604 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