Solved

Problem using AdjustTokenPrivelges API

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is there a driver update utility? 8 74
Bootit-BM: 'Resize' action not available-grayed out 14 37
Microsoft Word startup Issue 7 24
winscp where are logs stored 3 34
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

785 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