Author ocean-city
Recipients amaury.forgeotdarc, georg.brandl, ocean-city
Date 2008-07-01.07:55:02
SpamBayes Score 0.00331637
Marked as misclassified No
Message-id <1214898908.71.0.0574133612066.issue3099@psf.upfronthosting.co.za>
In-reply-to
Content
GetFileAttributes() succeeds for "nul", but GetFileAttributesEx() fails.
Maybe is it good idea to use GetFileAttributesEx()?

# test code

import ctypes
import ctypes.wintypes as type

dll = ctypes.windll.kernel32

print dll.GetFileAttributesA("nul") # 32

class WIN32_FILE_ATTRIBUTE_DATA(ctypes.Structure):
	_fields_ = [("dwFileAttributes", type.DWORD),
	            ("ftCreationTime", type.FILETIME),
	            ("ftLastAccessTime", type.FILETIME),
	            ("ftLastWriteTime", type.FILETIME),
	            ("nFileSizeHigh", type.DWORD),
	            ("nFileSizeLow", type.DWORD)]

GetFileExInfoStandard = 0

wfad = WIN32_FILE_ATTRIBUTE_DATA()

print dll.GetFileAttributesExA("nul", GetFileExInfoStandard,
ctypes.byref(wfad)) # 0
History
Date User Action Args
2008-07-01 07:55:09ocean-citysetspambayes_score: 0.00331637 -> 0.00331637
recipients: + ocean-city, georg.brandl, amaury.forgeotdarc
2008-07-01 07:55:09ocean-citysetspambayes_score: 0.00331637 -> 0.00331637
messageid: <1214898908.71.0.0574133612066.issue3099@psf.upfronthosting.co.za>
2008-07-01 07:55:07ocean-citylinkissue3099 messages
2008-07-01 07:55:05ocean-citycreate