92 questions
0 votes
0 answers
149 views
How to create a file that only a Windows application can access
I'm struggling to write a Windows x86 console application that must create a local file to pass data to an API to process. I need to ensure that the user or admin of the PC cannot access the file, ...
1 vote
1 answer
59 views
Read/Write file mapping integrity
I have a pretty large set (order of tens of GBs) of persistent data, and a server that's supposed to operate on it, and eventually modify it. The server should compile on Windows and Linux 64-bit ...
0 votes
1 answer
67 views
Getting c_char_p value from a file map causes a python program to crash
I'm trying to create a program that will take a string (const char[]) from a c++ application, create a map file object using windows.h while a separately launched python script will read the map file ...
1 vote
1 answer
143 views
How to load (map) thousands of files as fast as possible?
I want to load the content of thousands of files with different sizes (1KB ~ 50MB) on Windows. Currently, I am using the mapping library from here, but it is still too slow, even with the std::async ...
0 votes
1 answer
394 views
Solidworks PDM Vault - Save PDF to server location that matches first 3 digits of FileName
When I run the 'Convert to PDF' Task, I need my files to save at a file location driven by our xxx-xxx.slddrw file naming scheme. How can I override the PDM Vault's 'Primary Output Path' to follow the ...
-1 votes
1 answer
167 views
Need help about MapViewOfFile performance
I'm very confused by a strange issue I'm having. Consider the following code: testTimer.Start(); u64 startPositionInBytes = startPosition * sizeof(DBTransaction); u64 chunkSizeInBytes = ...
-1 votes
1 answer
107 views
merge contents of two files into one file by bash command
i have two file like blow format and need to marge two file in below format (bash command) 1st row of 1st file + 1st row of 2nd file 2nd row of 1st file + 2nd row of 2nd file Example : file1 a b c d ...
0 votes
0 answers
171 views
Trouble locking physical memory for shared memory using Windows functions
I have been trying to use the CreateFileMapping and PrefetchVirtualMemory functions provided by Windows to share memory between processes. However, I am having trouble locking the physical memory so ...
-1 votes
1 answer
91 views
getting MADV_SEQUENTIAL in freebsd to read ahead
I have a program that needs to read through many files at the same time that are filemapped. In an attempt to get the system to fetch the data before it is needed, I am calling madvise with ...
0 votes
0 answers
202 views
How to get the mapped file object name from the objecthandle in C++?
I am working on a project where I need to decrypt some media files which are mapped to memory by a process. I have successfully hooked the CreateFileW() and MappedViewOfFile() functions. I need to ...
1 vote
1 answer
254 views
How to send a bitmap and text data thought processes using file mapping?
Im trying to send a bitmap and some text string from a script to another using file mapping, below is my attempt: FM := new FileMapping() Return F1:: FM.Read() Esc::ExitApp F2:: ; Write the pbitmap ...
0 votes
1 answer
1k views
CreateFileMapping size limit in a 64-bit process
Is there a size limit to the file mapping object? The reason I'm asking is that there is a mentioning of 2GB limit somewhere in MSDN (lost the track..) and I also checked this sample, which also ...
0 votes
1 answer
2k views
WINAPI Cpp - OpenFileMapping fails with error (2) ERROR_FILE_NOT_FOUND [duplicate]
I'm trying to use WinApi to CreateFileMapping, MapViewOfFile and CopyMemory. It's not showhing me errors and buffor is being filed with my PID int write_pid_to_memory(const char *t_pid) { _tprintf(...
0 votes
1 answer
464 views
SetEndOfFile error 1224: ERROR_USER_MAPPED_FILE, even the file mapping closed successfully
I'm writing a program which logs out to the file with file-mapping. When I want to read the log, Logger::Destroy() is called so that the content writed on file-mapped-view could be flushed to the ...
0 votes
1 answer
249 views
C++ too many initializer values on GENERIC_READ when creating a file mapping object [closed]
I'm trying to create a file mapping object but I'm experiencing a few compiler errors. (I'm using MinGW GCC-8.2.0-3) I'm getting the following error from VS-code: too many initializer values on the ...