Bonjour à tous!
Eh bien voila je me suis confronté ce matin à ce problème, pourtant banal je crois!
Merci de votre aide
Version imprimable
Bonjour à tous!
Eh bien voila je me suis confronté ce matin à ce problème, pourtant banal je crois!
Merci de votre aide
Bonjour,
Je pense que ça devrait marcher.Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)] public 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; } [System.Runtime.InteropServices.DllImport("kernel32.dll", ExactSpelling=true)] public static extern void SetSystemTime(ref SystemTime time);
Merci harz62!
Je teste le code et je t'en donne des nouvelles!
Merci