C#利用Win32 API函数设定系统时间
2009-12-31 17:25
239 查看
public class Win32
{
[DllImport("kernel32.dll")]
public static extern bool SetLocalTime(ref DT dt);
}
public struct DT
{
public short wYear;
public short wMonth;
public short wDayOfWeek;
public short wDay;
public short wHour;
public short wMinute;
public short wSecond;
public short wMillisecond;
}
{
[DllImport("kernel32.dll")]
public static extern bool SetLocalTime(ref DT dt);
}
public struct DT
{
public short wYear;
public short wMonth;
public short wDayOfWeek;
public short wDay;
public short wHour;
public short wMinute;
public short wSecond;
public short wMillisecond;
}
相关文章推荐
- c#调用win32 API函数修改系统时间
- C#利用win32 Api 修改本地系统时间、获取硬盘序列号
- winform利用API函数获取系统的信息
- C#测试代码、函数、方法执行时间,方便进行系统性能评估
- 用C#怎样把当前系统时间存入数据库
- 系统API函数获取系统时间
- C#中获取系统时间的一种方法
- C#更改系统时间
- C#调用Win32 的API函数--User32.dll
- C#中的系统时间获取问题
- [C++]win32输出当前系统时间函数,可用以程序计时
- 如何设定linux系统时间
- C# 给某个方法设定执行超时时间
- C#定时器的方式实时显示系统时间
- C# 更改系统时间
- 怎样用C#获取系统时间?
- C#设置系统时间的方法实例详解
- [翻译]利用C#获取终端服务(Terminal Services)会话的闲置时间
- C#更改系统时间
- c#获取系统时间的方法