How to change system date and time with vb.net on windows 7
问题 So I was trying to create a tiny program to rapidly change time on a windows 7. Following the "SetSystemTime(ByRef theDateTime As SYSTEMTIME)" like everyone does on the internet I did the same. But nothing happened. Here's the code: Imports System.Data Imports System.Text Imports System.Runtime.InteropServices Public Class Form1 Private WithEvents timer1 As New Timer <StructLayoutAttribute(LayoutKind.Sequential)> _ Private Structure SYSTEMTIME Public year As Short Public month As Short Public