你应该先取得权限,然后再操作。看一看NT编程的书吧。
Privileges provide access to services rarely needed by most users. An account usually has privileges that are disabled, and they must be enabled to be used. For example, to set the time on the local computer, an application has to set the SE_PRIVILEGE_ENABLED attribute for the SE_SYSTEMTIME_NAME privilege. For security reasons, disable an enabled privilege when it is no longer needed. The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires TOKEN_ADJUST_PRIVILEGES access.
Privileges provide access to services rarely needed by most users. An account usually has privileges that are disabled, and they must be enabled to be used. For example, to set the time on the local computer, an application has to set the SE_PRIVILEGE_ENABLED attribute for the SE_SYSTEMTIME_NAME privilege. For security reasons, disable an enabled privilege when it is no longer needed. The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires TOKEN_ADJUST_PRIVILEGES access.
解决方案 »
- Dataset.UpdateBatch 问题
- 谁知道为什么,系统造成的吗
- 关于在Access中查询的SQL
- 高手请进:纯winsocket api多线程文件传输设计思路?
- 关于TIdCookieManager的问题,请大虾进来看看,不胜感激
- 一个非常奇怪的问题,一天都没解决了,求大家帮忙
- 高分相送,在D里面可以编译.ocx的文件吗?具体怎么做?详细点最好。
- 请问哪里有这些控件:TKvLable TdxButton TCoolTrayIcon
- 在WIN2000,XP中,自定义纸张的报表打印不对,请大家帮忙解决,在线等待!
- 如何將ADOConnection放到DLL中供其它Form調用
- 如何创建继承两个类的派生类?
- 关于串行通信的一个简单问题?
thank you.