Hello to all! Please help me. I need read and change User rights assignment:
— Create a token object;
— Log on as a service;
— Replace a process level token.
Thanks.
Здравствуйте, consist, Вы писали:
C>Hello to all! Please help me. I need read and change User rights assignment:
C>- Create a token object;
C>- Log on as a service;
C>- Replace a process level token.
If you talk about current user, you can read ones privileges via GetTokenInformation( .. TokenPrivilege ..)
You can not change current user privileges, but you can enable them (see AdjustTokenPrivileges).
I dont now how to read other user privileges.
AFAIK, you can change user privileges only by add/remove him in/from group.
C>Thanks.
Excuse my english
Здравствуйте, Alex Fedotov, Вы писали:
AF>Здравствуйте, consist, Вы писали:
C>>Hello to all! Please help me. I need read and change User rights assignment:
C>>- Create a token object;
C>>- Log on as a service;
C>>- Replace a process level token.
AF>http://www.rsdn.ru/?article/qna/baseserv/privedit.xmlАвтор(ы): Александр Федотов
Дата: 09.03.2002
В статье рассматривается управление привилегиями Windows NT
с использованием программного интерфейса, предоставляемого подсистемой
Local Security Authority (LSA).

Thank you very much. But I cannot build debug version of you project in msdev6 and 2003.
Здравствуйте, consist, Вы писали:
C>Здравствуйте, Alex Fedotov, Вы писали:
AF>>Здравствуйте, consist, Вы писали:
C>>>Hello to all! Please help me. I need read and change User rights assignment:
C>>>- Create a token object;
C>>>- Log on as a service;
C>>>- Replace a process level token.
AF>>http://www.rsdn.ru/?article/qna/baseserv/privedit.xmlАвтор(ы): Александр Федотов
Дата: 09.03.2002
В статье рассматривается управление привилегиями Windows NT
с использованием программного интерфейса, предоставляемого подсистемой
Local Security Authority (LSA).
C>
Thank you very much. But I cannot build debug version of you project in msdev6 and 2003.

After download WTL project is builded succesfully.