homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients amaury.forgeotdarc, georg.brandl, ocean-city
Date 2008年07月01日.07:55:02
SpamBayes Score 0.0033163736
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.0033163736
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

AltStyle によって変換されたページ (->オリジナル) /