Pekka Niiranen wrote:
However, using
highbits=0x7fff # equals hex(sys.maxint)
gives no errors, but does locking work if
highbits are not exactly 0x?
Try using highbits=-0x7fff as your mask. That should set the MSB without
tripping over the sys.maxint limit.
Cheers,
Nick.
--
http:/
Hi,
I tried to lock file in w2k using example
directly from pyWin32 manual:
#--
>>> import pywintypes
>>> ov=pywintypes.OVERLAPPED() #used to indicate starting region to lock
>>> highbits=0x
>>> file="c:wilma.txt"
>>> import win32file
>>> import win32security
>>> import win3