Windows

PythonからWindows Spoolerをctypesで叩く

#!/usr/bin/env python # -*- coding:utf-8 -*- """\ Utility class for wrapping Winspool.drv with ctypes. GetPrinter function http://msdn.microsoft.com/en-us/library/windows/desktop/dd144911(v=vs.85).aspx PRINTER_INFO_1 structure http://msdn.…

Windows 7でhostsの内容が反映されない

hostsに「ip_address fqdn」みたいに設定したけどping, IE, Firefoxへ反映されず、ただしChromeは名前解決にWinSockを使ってないっぽくてちゃんと反映される。もちろん「ipconfig /displaydns」でhostsの内容が認識されていることは確認済み。おそらくDNSサ…