Displaying 7 results from an estimated 7 matches for "createfilemapping".
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
...dle, buf, buf_size, flags)
size_ptr = [0].pack(''Q'')
unless GetFileSizeEx(handle, size_ptr)
raise get_last_error
end
if size_ptr.unpack(''Q'')[0] <= 0
raise ''file size must be greater than zero''
end
map = CreateFileMapping(handle, nil, PAGE_READONLY, 0, 1, nil)
final_path = nil
if map && map > 0
pmem = MapViewOfFile(map, FILE_MAP_READ, 0, 0, 1)
if pmem
begin
buf = 0.chr * MAXPATH
# Buf will contain the full path, but with the device name instead...
2014 Feb 20
0
Wine release 1.7.13
...tack corruption in 64-bit builds.
xmllite/tests: There is no need to initialize OLE.
xmllite/tests: Add a test for short variant of xml declaration.
cabinet/tests: Advance buffer by actually read bytes count.
advapi32/tests: Add a test for page to access mapping performed by CreateFileMapping.
kernel32: Fix page protection to access mapping performed by CreateFileMapping.
advapi32/tests: Correct the test failure message.
scrrun: Move the counter check into the code block where counter is actually incremented.
scrrun: Fix a file enumeration handle leak.
task...
2011 Sep 03
1
Patch to build hivex lib on Windows
Hi
I'm just posting this here in case someone is interested in building
hivex on Windows (mingw32). The attached patch allows building the lib
but not the tools (hivexsh etc..) as there are some more problems to solve.
In short terms, this patch replaces file i/o functions and mmap(),
munmap() with their win32api pendants.
cu
--
Unix _IS_ user friendly - it's just
selective about
2001 Sep 05
4
Problems trying to run the examples in windows v orbis sdk
Yes, it works now.
Thank you very much.
-----Original Message-----
From: Chris Wolf [mailto:cwolf@starclass.com]
Sent: 05 September 2001 10:12
To: vorbis-dev@xiph.org
Subject: Re: [vorbis-dev] Problems trying to run the examples in windows
vorbis sdk
On 9/4/2001 at 6:00 PM Pablos-Sanchez, Rolando wrote:
>I have just downloaded the vorbis sdk for windows, for researching
>purposes.
>
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary
file around. The same is true for other llvm tools.
As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and
restart the run a few times. You will get
t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff
The same would happen if there was a fatal error between the
2011 Dec 02
0
Wine release 1.3.34
...e section write.
kernel32: Add a test for main module image section protections.
ntdll: Change the virtual memory test to accept both READWRITE and WRITECOPY protections.
ntdll: Revert 33b0f0edffa0c8a06b4ee8831c92fdc373f83ece.
kernel32: Add a test for protections accepted by CreateFileMapping, make it pass under Wine.
kernel32: Add a bunch of VirtualProtect tests on a memory-mapped file.
Eric Pouech (2):
msvcrt: Implemented _ultow_s.
cmd: Correctly parse program name when launching external processes.
Francois Gouget (28):
ddraw/tests: Fix compilation on system...
2011 Dec 16
0
Wine release 1.3.35
...user32: Add the tests for dialog window styles, make them pass under Wine.
user32: Strip WS_CAPTION|WS_SYSMENU when a dialog has DS_CONTROL style set.
user32: Strip WS_CAPTION|WS_SYSMENU when a dialog has DS_CONTROL style set.
kernel32: Add the tests for various combinations of CreateFileMapping/MapViewOfFile protections.
ntdll: Setting WRITECOPY protection on a memory-mapped file is allowed.
kernel32: Add a bunch of VirtualProtect tests on an image section.
ntdll: Replace WRITE by WRITECOPY protection on an image section as Windows does.
Eric Pouech (1):
d3d: Fixe...