How to get the win32 handle of a directory in Python?

前端 未结 0 1510
你的背包
你的背包 2021-01-30 17:11

You can get the win32 handle of a file in Python by:

file = CreateFile("C:\\\\File.txt")
handle = str(msvcrt.get_osfhandle(file.fileno()))
file.close()
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题