MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / CreateFileMapping

Function CreateFileMapping

Win32Lib/Win32Lib.cpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216Handle CreateFileMapping(HANDLE hFile, const SECURITY_ATTRIBUTES* pAttributes, DWORD protect, DWORD maximumSizeHigh, DWORD maximumSizeLow, const wchar_t* pName)
217{
218 Handle hMap(::CreateFileMappingW(hFile, const_cast<SECURITY_ATTRIBUTES*>(pAttributes), protect, maximumSizeHigh, maximumSizeLow, pName));
219 if (!hMap)
220 ThrowLastError("CreateFileMapping");
221
222 return hMap;
223}
224
225Handle OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId)
226{

Callers 2

CreateDBWinBufferMappingFunction · 0.85

Calls 1

ThrowLastErrorFunction · 0.85

Tested by

no test coverage detected