code: def genwinmap(codepage):
      MultiByteToWideChar = ctypes.windll.kernel32.MultiByteToWideChar
      MultiByteToWideChar.argtypes = [
          wintypes.UINT,
          wintypes.DWORD,
          wintypes.LPCSTR,
          ctypes.c_int,
          wintypes.LPWSTR,
          ctypes.c_int,
      ]
      MultiByteToWideChar.restype = ctypes.c_int
  
      enc2uni = {}
  
      for i in list(range(32)) + [127]:
          enc2uni[i] = (i, "CONTROL CHARACTER")
  
      for i in range(256):
          buf = ctypes.create_unicode_buffer(2)
          ret = MultiByteToWideChar(codepage, 0, bytes([i]), 1, buf, 2)
          assert ret == 1, "invalid code page"
          assert buf[1] == "\x00"
          try:
              name = unicodedata.name(buf[0])
          except ValueError:
              try:
                  name = enc2uni[i][1]
              except KeyError:
                  name = ""
  
          enc2uni[i] = (ord(buf[0]), name)
  
      return enc2uni
  
imports: import ctypes
  from ctypes import wintypes
  from gencodec import codegen
  import unicodedata
label_desc: Use image node_id 1 for calling a global function with example usage: genwinmap(codepage) and returns: enc2uni