[python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread rhyslloyd1 via python-win32
Hello. Sorry if this is the wrong place to ask my question. I am trying to open a memory mapped file using Python. I originally used the "mmap" module from Python however I had issues with it because I had to use a fixed size for the file even though my goal was to open an existing file of whic

Re: [python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread Tim Roberts
rhyslloyd1 via python-win32 wrote: I am trying to open a memory mapped file using Python. I originally used the "mmap" module from Python however I had issues with it because I had to use a fixed size for the file even though my goal was to open an existing file of which the size would be unk

Re: [python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread Eryk Sun
On 2/16/21, rhyslloyd1 via python-win32 wrote: > > I am trying to open a memory mapped file using Python. I originally used the > "mmap" module from Python however I had issues with it because I had to use > a fixed size for the file even though my goal was to open an existing file > of which the

Re: [python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread Tim Roberts
Eryk Sun wrote: I'm sorry to say that the only reliable solution is to directly call WinAPI OpenFileMappingW() and MapViewOfFile() using a foreign-function interface (FFI) package such as ctypes or CFFI. I can write up an example if you need help. Respectfully, I think you have misread the ori

Re: [python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread Eryk Sun
On 2/16/21, Tim Roberts wrote: > Eryk Sun wrote: >> >> I'm sorry to say that the only reliable solution is to directly call >> WinAPI OpenFileMappingW() and MapViewOfFile() using a foreign-function >> interface (FFI) package such as ctypes or CFFI. I can write up an >> example if you need help. >

Re: [python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread Tim Roberts
On Feb 16, 2021, at 5:49 PM, rhyslloyd1 wrote: > > Thanks for the quick response! I've made some progress since reading. My goal > is to be able to talk to the NVIDIA Share API using Python. I found this > > post on Gi