选择显示字体大小

win 2000下的进程枚举

    进程在每个系统中实现的方法是不一样的,在 win 98 中,系统提供 toolhelp32 api 接口,在 win nt 中,系统提供 psapi 函数, 2000而 win 2000 既支持 toolhelp 又支持 psapi,nt 系统还提供了 native api (ntquerysysteminformation),这个函数功能十分强大,几乎可以查询所有的系统信息,调用此函数必须有se_tcb_name特权。下面给出函数原型:
ntstatus
winapi
ntquerysysteminformation(
int systeminfoclass
pvoid systeminfobuffer,
ulong systeminfobuffersize,
pulong bytesreturned
);

  当 systeminfoclass 等于5时便可获取进程信息了。

  关于 nt 系统下的特权(privilege)及其描述见下表:

privilege constant description
se_assignprimarytoken_name required to assign the primary token of a process.
se_audit_name required to generate audit-log entries. give this privilege to secure servers.
se_backup_name required to perform backup operations.
se_change_notify_name required to receive notifications of changes to files or directories. this privilege also causes the system to skip all traversal access checks. it is enabled by default for all users.
se_create_pagefile_name required to create a paging file.
se_create_permanent_name required to create a permanent object.
se_create_token_name required to create a primary token.
se_debug_name required to debug a process.
se_inc_base_priority_name required to increase the base priority of a process.
se_increase_quota_name required to increase the quota assigned to a process.
se_load_driver_name required to load or unload a device driver.
se_lock_memory_name required to lock physical pages in memory.
se_prof_single_process_name required to gather profiling information for a single process.
se_remote_shutdown_name required to shut down a system using a.network request.
se_restore_name required to perform restore operations. this privilege enables you to set any valid user or group sid as the owner of an object.
se_security_name required to perform a number of security-related functions, such as controlling and viewing audit messages. this privilege identifies its holder as a security operator.
se_shutdown_name required to shut down a local system.
se_system_environment_name required to modify the nonvolatile ram of systems that use this type of memory to store configuration information.
se_system_profile_name required to gather profiling information for the entire system.
se_systemtime_name required to modify the system time.
se_take_ownership_name required to take ownership of an object without being granted discretionary access. this privilege allows the owner value to be set only to those values that the holder may legitimately assign as the owner of an object.
se_tcb_name this privilege identifies its holder as part of the trusted computer base. some trusted protected subsystems are granted this privilege. this privilege is required to call the logonuser function.
se_unsolicited_input_name required to read unsolicited input from a terminal device.
se_machine_account_name required to create a machine account.


    关于定义可见下表,或察看 winnt.h:


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons