code: private static Pointer mapMemory(String mapName, int mode, int size) {
      HANDLE mapping = Kernel32.INSTANCE.OpenFileMapping(mode, false, mapName);
      Pointer v = Kernel32.INSTANCE.MapViewOfFile(mapping, mode, 0, 0, new SIZE_T(size));
      Kernel32.INSTANCE.CloseHandle(mapping);
      return v;
    }
docs: Map memory
  
  @param mapName map name
  @param mode    mode
  @param size    size
  @return Pointer