Skip to content

FileMapping.cpp - C++ Library for Managing File Mappings in Windows

License

Notifications You must be signed in to change notification settings

NIR3X/FileMapping.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileMapping.cpp - C++ Library for Managing File Mappings in Windows

This is a C++ library for managing file mappings in Windows using the WinAPI.

Overview

The FileMapping class provided in this library allows you to create, open, and manage file mappings in Windows. File mapping is a mechanism for mapping a file into memory, allowing for efficient file access and sharing between processes.

Features

  • Create file mappings
  • Open existing file mappings
  • Map files into memory
  • Retrieve file size
  • Access memory-mapped file data

Installation

To use this package, you can clone the repository and compile it using a C++ compiler:

git clone https://github.com/NIR3X/FileMapping.cpp
cd FileMapping.cpp
make

Usage

To use the FileMapping class in your project, include the FileMapping.h header file and link against FileMapping.a.

#include "FileMapping.h"
#include <iostream>

int main() {
	// Example usage
	CFileMapping fileMapping(L"path_to_file");
	LPVOID mapView = fileMapping.getMapView();
	// Use the memory-mapped file...
	return 0;
}

License

GNU AGPLv3 Image

This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

FileMapping.cpp - C++ Library for Managing File Mappings in Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published