![]() |
Question about file handles and windows handles @ Windows Operating Systems
Very hard to find right function...
If I open file fname="c:\\temp\\foobar.txt" file_foobar = file(fname) file_foobar.fileno() returns 3 becausee of unix like library used in windows python.... If I'd like to get to known what windows handle it has hfile=win32file.CreateFile( ff,win32con.GENERIC_READ| win32con.GENERIC_WRITE,win32con.FILE_SHARE_READ| win32con.FILE_SHARE_WRITE,None, win32con.OPEN_ALWAYS,win32con.FILE_ATTRIBUTE_NORMA L , 0 ) hfile.handle returns 88 Are there any function to get windows handle of file which is already opened with built-in file-function. -Eino |
Re: Question about file handles and windows handles @ Windows OperatingSystems
> Are there any function to get windows handle of file which is already
> opened with built-in file-function. mscvrt.get_osfhandle HTH, Martin |
| All times are GMT. The time now is 07:46 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.