|
|
|
[求助]朋友们在用VC6.0还是VS2005还是VS2008?
CodeLite和CodeBlocks比较如何? |
|
[求助]请朋友们点评这个sys&exe简单通信代码
好比我是学生,你是老师, 我交了一份作业给你, 请老师打分、点评。 因为是初学,不知道我对代码的理解是否正确, 所以请大家给予点评,以便今后不会一错再错。 |
|
[求助]请朋友们点评这个sys&exe简单通信代码
咋没人理嗫? |
|
[原创]闲来无事,做了个房货计算器
工行。对吧?? |
|
|
|
[求助]求解,为什么GetSystemTime取的系统时间却和实际的系统时间不一样呢?
GetSystemTime所返回的是UTC(格林威治时间),也就是全球标准时间。 本地时间就是相对于UTC而言的,比如中国北京是在东8区,相对于UTC就多了8个小时。 一般使用到的时间都是使用本地时间,也就是调用函数GetLocalTime。 另外(23-15) = 8 != 9 |
|
|
|
|
|
[求助]关于delphi如何动态地调用native api
CSND温研博客上写的: 以调用NtQuerySystemInformation为例介绍这种方法: 第一步:声明函数原型 extern "C" DWORD __stdcall NtQuerySystemInformation(DWORD, PDWORD, DWORD, PVOID); 第二步:添加lib库文件 将DDK中相应平台下的ntdll.lib复制到项目当前目录下,并把ntdll.lib添加到项目的链接文件列表中。 只需这简单的两步,你就可以直接调用ntdll.lib中导出的所有Native API了。 需要注意的是ntdll.lib中导出的Native API绝大部分都是以Nt开头的,而不是以Zw开头的。如不知该Native API的原型,可参考Windows NT(2000) Native API Reference。 |
|
|
|
[求助]初学驱动,请大家点评一个Hello World
在SDK的winternl.h中, _SYSTEM_PROCESS_INFORMATION 被如下定义: typedef struct _SYSTEM_PROCESS_INFORMATION { ULONG NextEntryOffset; BYTE Reserved1[52]; PVOID Reserved2[3]; HANDLE UniqueProcessId; PVOID Reserved3;//父进程的标识符 ULONG HandleCount; BYTE Reserved4[4]; PVOID Reserved5[11]; SIZE_T PeakPagefileUsage; SIZE_T PrivatePageCount; LARGE_INTEGER Reserved6[6]; } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION; 但我们一般使用的是这样的: typedef struct _SYSTEM_PROCESSES { ULONG NextEntryOffset;//NextEntryDelta;//构成结构序列的偏移量 ULONG ThreadCount;//线程数目 ULONG Reserved1[6]; LARGE_INTEGER CreateTime;//创建时间 LARGE_INTEGER UserTime;//用户模式(Ring 3)的CPU时间 LARGE_INTEGER KernelTime;//内核模式(Ring 0)的CPU时间 UNICODE_STRING ProcessName; //进程名称 KPRIORITY BasePriority;//进程优先权 HANDLE UniqueProcessId; //ULONG ProcessId; //进程标识符 ULONG InheritedFromProcessId;//父进程的标识符 ULONG HandleCount;//句柄数目 ULONG Reserved2[2]; VM_COUNTERS VmCounters;//虚拟存储器的结构 IO_COUNTERS IoCounters;//IO计数结构,见下 SYSTEM_THREADS Threads[1];//进程相关线程的结构数组 }SYSTEM_PROCESSES,*PSYSTEM_PROCESSES; typedef SYSTEM_PROCESSES SYSTEM_PROCESS_INFORMATION; typedef PSYSTEM_PROCESSES PSYSTEM_PROCESS_INFORMATION; // 以上信息在SDK被隐藏, //_SYSTEM_PROCESS_INFORMATION = _SYSTEM_PROCESSES 这些被隐藏了的信息,是如何发现的呢? 用WinDbg的“dt _SYSTEM_PROCESS_INFORMATION”命令查不出来啊?? |
|
[求助]初学驱动,请大家点评一个Hello World
烦请兄弟看看我这个代码的结构和注释,是否及格? |
|
|
|
[求助]初学驱动,请大家点评一个Hello World
楼上的兄弟啊,我也刚学呢,呵呵~ |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值