阅读:1375回复:6
##RtlLocalTimeToSystemTime如何使用?##
函数RtlLocalTimeToSystemTime被ntdll.dll导出,但是却不被ntoskrnl.exe导出,在内核驱动中如何使用呢?
|
|
沙发#
发布于:2005-01-11 23:06
函数RtlLocalTimeToSystemTime被ntdll.dll导出,但是却不被ntoskrnl.exe导出,在内核驱动中如何使用呢? 还有其他相应的函数可以调用 |
|
|
板凳#
发布于:2005-01-12 13:49
NTSTATUS RtlLocalTimeToSystemTime(
PLARGE_INTEGER NTSTATUS RtlLocalTimeToSystemTime( PLARGE_INTEGER LocalTime, PLARGE_INTEGER SystemTime ); public RtlLocalTimeToSystemTime .text:7C9823C2 RtlLocalTimeToSystemTime proc near .text:7C9823C2 .text:7C9823C2 var_30 = dword ptr -30h .text:7C9823C2 var_20 = dword ptr -20h .text:7C9823C2 var_1C = dword ptr -1Ch .text:7C9823C2 arg_4 = dword ptr 8 .text:7C9823C2 arg_8 = dword ptr 0Ch .text:7C9823C2 .text:7C9823C2 mov edi, edi .text:7C9823C4 push ebp .text:7C9823C5 mov ebp, esp .text:7C9823C7 sub esp, 30h .text:7C9823CA push 0 .text:7C9823CC push 30h .text:7C9823CE lea eax, [ebp+var_30] .text:7C9823D1 push eax .text:7C9823D2 push 3 .text:7C9823D4 call ZwQuerySystemInformation .text:7C9823D9 test eax, eax .text:7C9823DB jl short locret_7C9823F5 .text:7C9823DD mov eax, [ebp+arg_4] .text:7C9823E0 mov ecx, [eax] .text:7C9823E2 mov edx, [eax+4] .text:7C9823E5 add ecx, [ebp+var_20] .text:7C9823E8 mov eax, [ebp+arg_8] .text:7C9823EB adc edx, [ebp+var_1C] .text:7C9823EE mov [eax], ecx .text:7C9823F0 mov [eax+4], edx .text:7C9823F3 xor eax, eax .text:7C9823F5 .text:7C9823F5 locret_7C9823F5: ; CODE XREF: RtlLocalTimeToSystemTime+19j .text:7C9823F5 leave .text:7C9823F6 retn 8 .text:7C9823F6 RtlLocalTimeToSystemTime endp ; sp = 4 很简单,自己实现下吧...... |
|
|
地板#
发布于:2005-01-12 14:31
AllenZh老大,能不能具体说一下还有哪些函数可以调用?
另外我要查询系统时间要调用什么函数,好像ZwQuerySystemTime也没有被ntoskrnl.exe导出,不知道如何使用。 wowocock老大,也很感谢你的帮助,恕小弟愚笨,现在还不知道如何使用RtlLocalTimeToSystemTime,不知道怎么实现,如何使用? 欢迎老大们不吝赐教!! 期待中!!!! |
|
地下室#
发布于:2005-01-13 08:29
我顶!
|
|
5楼#
发布于:2005-01-13 11:13
驱动里面可以用:
ExLocalTimeToSystemTime ZwQuerySystemTime |
|
|
6楼#
发布于:2005-01-17 16:55
好像ZwQuerySystemTime也没有被ntoskrnl.exe导出,如何使用?
|
|