求一份C# 源码+思路有详细注释分析的 100

C#+PHP实现用户登录,然后过去下载信息,再下载内容的源码!... C# + PHP 实现用户登录,然后过去下载信息,再下载内容的源码! 展开
 我来答
hv...b@163.com
2017-11-22 · TA获得超过335个赞
知道小有建树答主
回答量:212
采纳率:34%
帮助的人:36.7万
展开全部
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;namespace SystemTime
{
public partial class FormLocal : Form
{
#region SetLocalTime
[DllImport("Kernel32.dll")]
private static extern bool SetLocalTime(ref SYSTEMTIME lpSystemTime); [StructLayout(LayoutKind.Sequential)]
private struct SYSTEMTIME
{
public ushort wYear;
public ushort wMonth;
public ushort wDayOfWeek;
public ushort wDay;
public ushort wHour;
public ushort wMinute;
public ushort wSecond;
public ushort wMilliseconds;
} private void SetSystemTime(DateTime date)
{
SYSTEMTIME lpTime = new SYSTEMTIME();
lpTime.wYear = Convert.ToUInt16(date.Year);
lpTime.wMonth = Convert.ToUInt16(date.Month);
lpTime.wDayOfWeek = Convert.ToUInt16(date.DayOfWeek);
lpTime.wDay = Convert.ToUInt16(date.Day);
DateTime time = DateTime.Now;
lpTime.wHour = Convert.ToUInt16(time.Hour);
lpTime.wMinute = Convert.ToUInt16(time.Minute);
lpTime.wSecond = Convert.ToUInt16(time.Second);
lpTime.wMilliseconds = Convert.ToUInt16(time.Millisecond);
SetLocalTime(ref lpTime);
}
#endregion
}
}变
)证明: (按不等号方向放缩) 不等式恒
追问
说实话,完全看不懂这是什么鬼?自己写的
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式