Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
HANDLE MemoryMapHandle;
LPVOID MapPointer;
char* OriginData;
// Create the mapped file
MemoryMapHandle = CreatFileMapping((HANDLE) 0xFFFFFFFF, NULL, PAGE_READWRITE, 0, 2048, "SharedData");
// Get a pointer to the mapped file
MapPointer = MapViewOfFile(MemoryMapHandle, FILE_MAP_WRITE, 0, 0, 0);
// Send data to the mapped file
::lstrcpy((char*) MapPointer, OriginData);
UnMapViewOfFile(MapPointer);
CloseHandle(MemoryMapHandle);
HANDLE SharedMap;
LPVOID MapPointer;
char* DestinData;
// Open the mapped file
SharedMap = OpenFileMapping(FILE_MAP_READ, FALSE, "SharedData");
// Get a pointer to the mapped file
MapPointer = MapViewOfFile(SharedMap, File_MAP_READ | FILE_MAP_WRITE, 0, 0, 0);
// Read data to the mapped file
DestinData = (char*) MapPointer;
UnMapViewOfFile(MapPointer);
CloseHandle(SharedMap);
#pragma data_seg("SharedMemory")
// Your shared variable
int data = 0;
#pragma data_seg()
SECTIONS
SharedMemeory READ WRITE SHARED