#coding=utf8 import copy import ctypes from ctypes import byref, POINTER, cast, c_uint64, c_ulong, c_char_p, c_wchar_p from ctypes.wintypes import BOOL, DWORD, HANDLE, LPVOID, WORD, HKEY, LONG import datetime c_uint64_p = POINTER(c_uint64) c_int_p =…