例行冻结Windows的时间 [英] Routine to freeze the time of Windows

查看:108
本文介绍了例行冻结Windows的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个c或c ++例程来冻结Windows的时间,并允许以后恢复它.恢复后,它应该从我们冻结它的时间开始.

该程序应该能够控制时间.

我出于研究目的需要它...

I want a c or c++ routine to freeze the time of Windows and allow it to be resumed later on. Upon resuming, it should start from the time where we froze it.

The program should be able to control the time.

I want this for research purposes...

推荐答案

为什么要这样,我不知道.但是请尝试:
C#修改系统时间 [ ^ ]

您可能想要获取当前时间,然后使用计时器或使用Thread.Sleep()将其重置为您希望冻结的时间,并继续执行该操作,直到解冻"它为止.

顺便说一句,添加像您一样的文本格式不会帮助您.
Why you would want that, I have no idea. But try:
C# modify system time[^]

You would want to get the current time, and then with a timer or using Thread.Sleep() reset it to the time when you wanted it frozen and keep doing that until you "unfreeze" it.

By the way, adding text formatting like you did is not going to help you out any.


只需创建一个rundll32.exe
进程即可. 参数Powrprof.dll,SetSuspendState:)
Just create a process of rundll32.exe
with the parameter Powrprof.dll,SetSuspendState :)


这篇关于例行冻结Windows的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆