Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

win32inetcon.py 42KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086
  1. # Generated by h2py from \mssdk\include\WinInet.h
  2. INTERNET_INVALID_PORT_NUMBER = 0
  3. INTERNET_DEFAULT_PORT = 0
  4. INTERNET_DEFAULT_FTP_PORT = 21
  5. INTERNET_DEFAULT_GOPHER_PORT = 70
  6. INTERNET_DEFAULT_HTTP_PORT = 80
  7. INTERNET_DEFAULT_HTTPS_PORT = 443
  8. INTERNET_DEFAULT_SOCKS_PORT = 1080
  9. INTERNET_MAX_HOST_NAME_LENGTH = 256
  10. INTERNET_MAX_USER_NAME_LENGTH = 128
  11. INTERNET_MAX_PASSWORD_LENGTH = 128
  12. INTERNET_MAX_PORT_NUMBER_LENGTH = 5
  13. INTERNET_MAX_PORT_NUMBER_VALUE = 65535
  14. INTERNET_MAX_PATH_LENGTH = 2048
  15. INTERNET_MAX_SCHEME_LENGTH = 32
  16. INTERNET_KEEP_ALIVE_ENABLED = 1
  17. INTERNET_KEEP_ALIVE_DISABLED = 0
  18. INTERNET_REQFLAG_FROM_CACHE = 0x00000001
  19. INTERNET_REQFLAG_ASYNC = 0x00000002
  20. INTERNET_REQFLAG_VIA_PROXY = 0x00000004
  21. INTERNET_REQFLAG_NO_HEADERS = 0x00000008
  22. INTERNET_REQFLAG_PASSIVE = 0x00000010
  23. INTERNET_REQFLAG_CACHE_WRITE_DISABLED = 0x00000040
  24. INTERNET_REQFLAG_NET_TIMEOUT = 0x00000080
  25. INTERNET_FLAG_RELOAD = -2147483648
  26. INTERNET_FLAG_RAW_DATA = 0x40000000
  27. INTERNET_FLAG_EXISTING_CONNECT = 0x20000000
  28. INTERNET_FLAG_ASYNC = 0x10000000
  29. INTERNET_FLAG_PASSIVE = 0x08000000
  30. INTERNET_FLAG_NO_CACHE_WRITE = 0x04000000
  31. INTERNET_FLAG_DONT_CACHE = INTERNET_FLAG_NO_CACHE_WRITE
  32. INTERNET_FLAG_MAKE_PERSISTENT = 0x02000000
  33. INTERNET_FLAG_FROM_CACHE = 0x01000000
  34. INTERNET_FLAG_OFFLINE = INTERNET_FLAG_FROM_CACHE
  35. INTERNET_FLAG_SECURE = 0x00800000
  36. INTERNET_FLAG_KEEP_CONNECTION = 0x00400000
  37. INTERNET_FLAG_NO_AUTO_REDIRECT = 0x00200000
  38. INTERNET_FLAG_READ_PREFETCH = 0x00100000
  39. INTERNET_FLAG_NO_COOKIES = 0x00080000
  40. INTERNET_FLAG_NO_AUTH = 0x00040000
  41. INTERNET_FLAG_RESTRICTED_ZONE = 0x00020000
  42. INTERNET_FLAG_CACHE_IF_NET_FAIL = 0x00010000
  43. INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP = 0x00008000
  44. INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS = 0x00004000
  45. INTERNET_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000
  46. INTERNET_FLAG_IGNORE_CERT_CN_INVALID = 0x00001000
  47. INTERNET_FLAG_RESYNCHRONIZE = 0x00000800
  48. INTERNET_FLAG_HYPERLINK = 0x00000400
  49. INTERNET_FLAG_NO_UI = 0x00000200
  50. INTERNET_FLAG_PRAGMA_NOCACHE = 0x00000100
  51. INTERNET_FLAG_CACHE_ASYNC = 0x00000080
  52. INTERNET_FLAG_FORMS_SUBMIT = 0x00000040
  53. INTERNET_FLAG_FWD_BACK = 0x00000020
  54. INTERNET_FLAG_NEED_FILE = 0x00000010
  55. INTERNET_FLAG_MUST_CACHE_REQUEST = INTERNET_FLAG_NEED_FILE
  56. SECURITY_INTERNET_MASK = (
  57. INTERNET_FLAG_IGNORE_CERT_CN_INVALID
  58. | INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
  59. | INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
  60. | INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
  61. )
  62. INTERNET_ERROR_MASK_INSERT_CDROM = 0x1
  63. INTERNET_ERROR_MASK_COMBINED_SEC_CERT = 0x2
  64. INTERNET_ERROR_MASK_NEED_MSN_SSPI_PKG = 0x4
  65. INTERNET_ERROR_MASK_LOGIN_FAILURE_DISPLAY_ENTITY_BODY = 0x8
  66. WININET_API_FLAG_ASYNC = 0x00000001
  67. WININET_API_FLAG_SYNC = 0x00000004
  68. WININET_API_FLAG_USE_CONTEXT = 0x00000008
  69. INTERNET_NO_CALLBACK = 0
  70. IDSI_FLAG_KEEP_ALIVE = 0x00000001
  71. IDSI_FLAG_SECURE = 0x00000002
  72. IDSI_FLAG_PROXY = 0x00000004
  73. IDSI_FLAG_TUNNEL = 0x00000008
  74. INTERNET_PER_CONN_FLAGS = 1
  75. INTERNET_PER_CONN_PROXY_SERVER = 2
  76. INTERNET_PER_CONN_PROXY_BYPASS = 3
  77. INTERNET_PER_CONN_AUTOCONFIG_URL = 4
  78. INTERNET_PER_CONN_AUTODISCOVERY_FLAGS = 5
  79. INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL = 6
  80. INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS = 7
  81. INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME = 8
  82. INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL = 9
  83. PROXY_TYPE_DIRECT = 0x00000001
  84. PROXY_TYPE_PROXY = 0x00000002
  85. PROXY_TYPE_AUTO_PROXY_URL = 0x00000004
  86. PROXY_TYPE_AUTO_DETECT = 0x00000008
  87. AUTO_PROXY_FLAG_USER_SET = 0x00000001
  88. AUTO_PROXY_FLAG_ALWAYS_DETECT = 0x00000002
  89. AUTO_PROXY_FLAG_DETECTION_RUN = 0x00000004
  90. AUTO_PROXY_FLAG_MIGRATED = 0x00000008
  91. AUTO_PROXY_FLAG_DONT_CACHE_PROXY_RESULT = 0x00000010
  92. AUTO_PROXY_FLAG_CACHE_INIT_RUN = 0x00000020
  93. AUTO_PROXY_FLAG_DETECTION_SUSPECT = 0x00000040
  94. ISO_FORCE_DISCONNECTED = 0x00000001
  95. INTERNET_RFC1123_FORMAT = 0
  96. INTERNET_RFC1123_BUFSIZE = 30
  97. ICU_ESCAPE = -2147483648
  98. ICU_ESCAPE_AUTHORITY = 0x00002000
  99. ICU_REJECT_USERPWD = 0x00004000
  100. ICU_USERNAME = 0x40000000
  101. ICU_NO_ENCODE = 0x20000000
  102. ICU_DECODE = 0x10000000
  103. ICU_NO_META = 0x08000000
  104. ICU_ENCODE_SPACES_ONLY = 0x04000000
  105. ICU_BROWSER_MODE = 0x02000000
  106. ICU_ENCODE_PERCENT = 0x00001000
  107. INTERNET_OPEN_TYPE_PRECONFIG = 0
  108. INTERNET_OPEN_TYPE_DIRECT = 1
  109. INTERNET_OPEN_TYPE_PROXY = 3
  110. INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4
  111. PRE_CONFIG_INTERNET_ACCESS = INTERNET_OPEN_TYPE_PRECONFIG
  112. LOCAL_INTERNET_ACCESS = INTERNET_OPEN_TYPE_DIRECT
  113. CERN_PROXY_INTERNET_ACCESS = INTERNET_OPEN_TYPE_PROXY
  114. INTERNET_SERVICE_FTP = 1
  115. INTERNET_SERVICE_GOPHER = 2
  116. INTERNET_SERVICE_HTTP = 3
  117. IRF_ASYNC = WININET_API_FLAG_ASYNC
  118. IRF_SYNC = WININET_API_FLAG_SYNC
  119. IRF_USE_CONTEXT = WININET_API_FLAG_USE_CONTEXT
  120. IRF_NO_WAIT = 0x00000008
  121. ISO_GLOBAL = 0x00000001
  122. ISO_REGISTRY = 0x00000002
  123. ISO_VALID_FLAGS = ISO_GLOBAL | ISO_REGISTRY
  124. INTERNET_OPTION_CALLBACK = 1
  125. INTERNET_OPTION_CONNECT_TIMEOUT = 2
  126. INTERNET_OPTION_CONNECT_RETRIES = 3
  127. INTERNET_OPTION_CONNECT_BACKOFF = 4
  128. INTERNET_OPTION_SEND_TIMEOUT = 5
  129. INTERNET_OPTION_CONTROL_SEND_TIMEOUT = INTERNET_OPTION_SEND_TIMEOUT
  130. INTERNET_OPTION_RECEIVE_TIMEOUT = 6
  131. INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT = INTERNET_OPTION_RECEIVE_TIMEOUT
  132. INTERNET_OPTION_DATA_SEND_TIMEOUT = 7
  133. INTERNET_OPTION_DATA_RECEIVE_TIMEOUT = 8
  134. INTERNET_OPTION_HANDLE_TYPE = 9
  135. INTERNET_OPTION_LISTEN_TIMEOUT = 11
  136. INTERNET_OPTION_READ_BUFFER_SIZE = 12
  137. INTERNET_OPTION_WRITE_BUFFER_SIZE = 13
  138. INTERNET_OPTION_ASYNC_ID = 15
  139. INTERNET_OPTION_ASYNC_PRIORITY = 16
  140. INTERNET_OPTION_PARENT_HANDLE = 21
  141. INTERNET_OPTION_KEEP_CONNECTION = 22
  142. INTERNET_OPTION_REQUEST_FLAGS = 23
  143. INTERNET_OPTION_EXTENDED_ERROR = 24
  144. INTERNET_OPTION_OFFLINE_MODE = 26
  145. INTERNET_OPTION_CACHE_STREAM_HANDLE = 27
  146. INTERNET_OPTION_USERNAME = 28
  147. INTERNET_OPTION_PASSWORD = 29
  148. INTERNET_OPTION_ASYNC = 30
  149. INTERNET_OPTION_SECURITY_FLAGS = 31
  150. INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT = 32
  151. INTERNET_OPTION_DATAFILE_NAME = 33
  152. INTERNET_OPTION_URL = 34
  153. INTERNET_OPTION_SECURITY_CERTIFICATE = 35
  154. INTERNET_OPTION_SECURITY_KEY_BITNESS = 36
  155. INTERNET_OPTION_REFRESH = 37
  156. INTERNET_OPTION_PROXY = 38
  157. INTERNET_OPTION_SETTINGS_CHANGED = 39
  158. INTERNET_OPTION_VERSION = 40
  159. INTERNET_OPTION_USER_AGENT = 41
  160. INTERNET_OPTION_END_BROWSER_SESSION = 42
  161. INTERNET_OPTION_PROXY_USERNAME = 43
  162. INTERNET_OPTION_PROXY_PASSWORD = 44
  163. INTERNET_OPTION_CONTEXT_VALUE = 45
  164. INTERNET_OPTION_CONNECT_LIMIT = 46
  165. INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT = 47
  166. INTERNET_OPTION_POLICY = 48
  167. INTERNET_OPTION_DISCONNECTED_TIMEOUT = 49
  168. INTERNET_OPTION_CONNECTED_STATE = 50
  169. INTERNET_OPTION_IDLE_STATE = 51
  170. INTERNET_OPTION_OFFLINE_SEMANTICS = 52
  171. INTERNET_OPTION_SECONDARY_CACHE_KEY = 53
  172. INTERNET_OPTION_CALLBACK_FILTER = 54
  173. INTERNET_OPTION_CONNECT_TIME = 55
  174. INTERNET_OPTION_SEND_THROUGHPUT = 56
  175. INTERNET_OPTION_RECEIVE_THROUGHPUT = 57
  176. INTERNET_OPTION_REQUEST_PRIORITY = 58
  177. INTERNET_OPTION_HTTP_VERSION = 59
  178. INTERNET_OPTION_RESET_URLCACHE_SESSION = 60
  179. INTERNET_OPTION_ERROR_MASK = 62
  180. INTERNET_OPTION_FROM_CACHE_TIMEOUT = 63
  181. INTERNET_OPTION_BYPASS_EDITED_ENTRY = 64
  182. INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO = 67
  183. INTERNET_OPTION_CODEPAGE = 68
  184. INTERNET_OPTION_CACHE_TIMESTAMPS = 69
  185. INTERNET_OPTION_DISABLE_AUTODIAL = 70
  186. INTERNET_OPTION_MAX_CONNS_PER_SERVER = 73
  187. INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER = 74
  188. INTERNET_OPTION_PER_CONNECTION_OPTION = 75
  189. INTERNET_OPTION_DIGEST_AUTH_UNLOAD = 76
  190. INTERNET_OPTION_IGNORE_OFFLINE = 77
  191. INTERNET_OPTION_IDENTITY = 78
  192. INTERNET_OPTION_REMOVE_IDENTITY = 79
  193. INTERNET_OPTION_ALTER_IDENTITY = 80
  194. INTERNET_OPTION_SUPPRESS_BEHAVIOR = 81
  195. INTERNET_OPTION_AUTODIAL_MODE = 82
  196. INTERNET_OPTION_AUTODIAL_CONNECTION = 83
  197. INTERNET_OPTION_CLIENT_CERT_CONTEXT = 84
  198. INTERNET_OPTION_AUTH_FLAGS = 85
  199. INTERNET_OPTION_COOKIES_3RD_PARTY = 86
  200. INTERNET_OPTION_DISABLE_PASSPORT_AUTH = 87
  201. INTERNET_OPTION_SEND_UTF8_SERVERNAME_TO_PROXY = 88
  202. INTERNET_OPTION_EXEMPT_CONNECTION_LIMIT = 89
  203. INTERNET_OPTION_ENABLE_PASSPORT_AUTH = 90
  204. INTERNET_OPTION_HIBERNATE_INACTIVE_WORKER_THREADS = 91
  205. INTERNET_OPTION_ACTIVATE_WORKER_THREADS = 92
  206. INTERNET_OPTION_RESTORE_WORKER_THREAD_DEFAULTS = 93
  207. INTERNET_OPTION_SOCKET_SEND_BUFFER_LENGTH = 94
  208. INTERNET_OPTION_PROXY_SETTINGS_CHANGED = 95
  209. INTERNET_FIRST_OPTION = INTERNET_OPTION_CALLBACK
  210. INTERNET_LAST_OPTION = INTERNET_OPTION_PROXY_SETTINGS_CHANGED
  211. INTERNET_PRIORITY_FOREGROUND = 1000
  212. INTERNET_HANDLE_TYPE_INTERNET = 1
  213. INTERNET_HANDLE_TYPE_CONNECT_FTP = 2
  214. INTERNET_HANDLE_TYPE_CONNECT_GOPHER = 3
  215. INTERNET_HANDLE_TYPE_CONNECT_HTTP = 4
  216. INTERNET_HANDLE_TYPE_FTP_FIND = 5
  217. INTERNET_HANDLE_TYPE_FTP_FIND_HTML = 6
  218. INTERNET_HANDLE_TYPE_FTP_FILE = 7
  219. INTERNET_HANDLE_TYPE_FTP_FILE_HTML = 8
  220. INTERNET_HANDLE_TYPE_GOPHER_FIND = 9
  221. INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML = 10
  222. INTERNET_HANDLE_TYPE_GOPHER_FILE = 11
  223. INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML = 12
  224. INTERNET_HANDLE_TYPE_HTTP_REQUEST = 13
  225. INTERNET_HANDLE_TYPE_FILE_REQUEST = 14
  226. AUTH_FLAG_DISABLE_NEGOTIATE = 0x00000001
  227. AUTH_FLAG_ENABLE_NEGOTIATE = 0x00000002
  228. SECURITY_FLAG_SECURE = 0x00000001
  229. SECURITY_FLAG_STRENGTH_WEAK = 0x10000000
  230. SECURITY_FLAG_STRENGTH_MEDIUM = 0x40000000
  231. SECURITY_FLAG_STRENGTH_STRONG = 0x20000000
  232. SECURITY_FLAG_UNKNOWNBIT = -2147483648
  233. SECURITY_FLAG_FORTEZZA = 0x08000000
  234. SECURITY_FLAG_NORMALBITNESS = SECURITY_FLAG_STRENGTH_WEAK
  235. SECURITY_FLAG_SSL = 0x00000002
  236. SECURITY_FLAG_SSL3 = 0x00000004
  237. SECURITY_FLAG_PCT = 0x00000008
  238. SECURITY_FLAG_PCT4 = 0x00000010
  239. SECURITY_FLAG_IETFSSL4 = 0x00000020
  240. SECURITY_FLAG_40BIT = SECURITY_FLAG_STRENGTH_WEAK
  241. SECURITY_FLAG_128BIT = SECURITY_FLAG_STRENGTH_STRONG
  242. SECURITY_FLAG_56BIT = SECURITY_FLAG_STRENGTH_MEDIUM
  243. SECURITY_FLAG_IGNORE_REVOCATION = 0x00000080
  244. SECURITY_FLAG_IGNORE_UNKNOWN_CA = 0x00000100
  245. SECURITY_FLAG_IGNORE_WRONG_USAGE = 0x00000200
  246. SECURITY_FLAG_IGNORE_CERT_CN_INVALID = INTERNET_FLAG_IGNORE_CERT_CN_INVALID
  247. SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
  248. SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE = 0x00000200
  249. SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS = INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
  250. SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP = INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
  251. SECURITY_SET_MASK = (
  252. SECURITY_FLAG_IGNORE_REVOCATION
  253. | SECURITY_FLAG_IGNORE_UNKNOWN_CA
  254. | SECURITY_FLAG_IGNORE_CERT_CN_INVALID
  255. | SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
  256. | SECURITY_FLAG_IGNORE_WRONG_USAGE
  257. )
  258. AUTODIAL_MODE_NEVER = 1
  259. AUTODIAL_MODE_ALWAYS = 2
  260. AUTODIAL_MODE_NO_NETWORK_PRESENT = 4
  261. INTERNET_STATUS_RESOLVING_NAME = 10
  262. INTERNET_STATUS_NAME_RESOLVED = 11
  263. INTERNET_STATUS_CONNECTING_TO_SERVER = 20
  264. INTERNET_STATUS_CONNECTED_TO_SERVER = 21
  265. INTERNET_STATUS_SENDING_REQUEST = 30
  266. INTERNET_STATUS_REQUEST_SENT = 31
  267. INTERNET_STATUS_RECEIVING_RESPONSE = 40
  268. INTERNET_STATUS_RESPONSE_RECEIVED = 41
  269. INTERNET_STATUS_CTL_RESPONSE_RECEIVED = 42
  270. INTERNET_STATUS_PREFETCH = 43
  271. INTERNET_STATUS_CLOSING_CONNECTION = 50
  272. INTERNET_STATUS_CONNECTION_CLOSED = 51
  273. INTERNET_STATUS_HANDLE_CREATED = 60
  274. INTERNET_STATUS_HANDLE_CLOSING = 70
  275. INTERNET_STATUS_DETECTING_PROXY = 80
  276. INTERNET_STATUS_REQUEST_COMPLETE = 100
  277. INTERNET_STATUS_REDIRECT = 110
  278. INTERNET_STATUS_INTERMEDIATE_RESPONSE = 120
  279. INTERNET_STATUS_USER_INPUT_REQUIRED = 140
  280. INTERNET_STATUS_STATE_CHANGE = 200
  281. INTERNET_STATUS_COOKIE_SENT = 320
  282. INTERNET_STATUS_COOKIE_RECEIVED = 321
  283. INTERNET_STATUS_PRIVACY_IMPACTED = 324
  284. INTERNET_STATUS_P3P_HEADER = 325
  285. INTERNET_STATUS_P3P_POLICYREF = 326
  286. INTERNET_STATUS_COOKIE_HISTORY = 327
  287. INTERNET_STATE_CONNECTED = 0x00000001
  288. INTERNET_STATE_DISCONNECTED = 0x00000002
  289. INTERNET_STATE_DISCONNECTED_BY_USER = 0x00000010
  290. INTERNET_STATE_IDLE = 0x00000100
  291. INTERNET_STATE_BUSY = 0x00000200
  292. FTP_TRANSFER_TYPE_UNKNOWN = 0x00000000
  293. FTP_TRANSFER_TYPE_ASCII = 0x00000001
  294. FTP_TRANSFER_TYPE_BINARY = 0x00000002
  295. FTP_TRANSFER_TYPE_MASK = FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY
  296. MAX_GOPHER_DISPLAY_TEXT = 128
  297. MAX_GOPHER_SELECTOR_TEXT = 256
  298. MAX_GOPHER_HOST_NAME = INTERNET_MAX_HOST_NAME_LENGTH
  299. MAX_GOPHER_LOCATOR_LENGTH = (
  300. 1
  301. + MAX_GOPHER_DISPLAY_TEXT
  302. + 1
  303. + MAX_GOPHER_SELECTOR_TEXT
  304. + 1
  305. + MAX_GOPHER_HOST_NAME
  306. + 1
  307. + INTERNET_MAX_PORT_NUMBER_LENGTH
  308. + 1
  309. + 1
  310. + 2
  311. )
  312. GOPHER_TYPE_TEXT_FILE = 0x00000001
  313. GOPHER_TYPE_DIRECTORY = 0x00000002
  314. GOPHER_TYPE_CSO = 0x00000004
  315. GOPHER_TYPE_ERROR = 0x00000008
  316. GOPHER_TYPE_MAC_BINHEX = 0x00000010
  317. GOPHER_TYPE_DOS_ARCHIVE = 0x00000020
  318. GOPHER_TYPE_UNIX_UUENCODED = 0x00000040
  319. GOPHER_TYPE_INDEX_SERVER = 0x00000080
  320. GOPHER_TYPE_TELNET = 0x00000100
  321. GOPHER_TYPE_BINARY = 0x00000200
  322. GOPHER_TYPE_REDUNDANT = 0x00000400
  323. GOPHER_TYPE_TN3270 = 0x00000800
  324. GOPHER_TYPE_GIF = 0x00001000
  325. GOPHER_TYPE_IMAGE = 0x00002000
  326. GOPHER_TYPE_BITMAP = 0x00004000
  327. GOPHER_TYPE_MOVIE = 0x00008000
  328. GOPHER_TYPE_SOUND = 0x00010000
  329. GOPHER_TYPE_HTML = 0x00020000
  330. GOPHER_TYPE_PDF = 0x00040000
  331. GOPHER_TYPE_CALENDAR = 0x00080000
  332. GOPHER_TYPE_INLINE = 0x00100000
  333. GOPHER_TYPE_UNKNOWN = 0x20000000
  334. GOPHER_TYPE_ASK = 0x40000000
  335. GOPHER_TYPE_GOPHER_PLUS = -2147483648
  336. GOPHER_TYPE_FILE_MASK = (
  337. GOPHER_TYPE_TEXT_FILE
  338. | GOPHER_TYPE_MAC_BINHEX
  339. | GOPHER_TYPE_DOS_ARCHIVE
  340. | GOPHER_TYPE_UNIX_UUENCODED
  341. | GOPHER_TYPE_BINARY
  342. | GOPHER_TYPE_GIF
  343. | GOPHER_TYPE_IMAGE
  344. | GOPHER_TYPE_BITMAP
  345. | GOPHER_TYPE_MOVIE
  346. | GOPHER_TYPE_SOUND
  347. | GOPHER_TYPE_HTML
  348. | GOPHER_TYPE_PDF
  349. | GOPHER_TYPE_CALENDAR
  350. | GOPHER_TYPE_INLINE
  351. )
  352. MAX_GOPHER_CATEGORY_NAME = 128
  353. MAX_GOPHER_ATTRIBUTE_NAME = 128
  354. MIN_GOPHER_ATTRIBUTE_LENGTH = 256
  355. GOPHER_ATTRIBUTE_ID_BASE = -1412641792
  356. GOPHER_CATEGORY_ID_ALL = GOPHER_ATTRIBUTE_ID_BASE + 1
  357. GOPHER_CATEGORY_ID_INFO = GOPHER_ATTRIBUTE_ID_BASE + 2
  358. GOPHER_CATEGORY_ID_ADMIN = GOPHER_ATTRIBUTE_ID_BASE + 3
  359. GOPHER_CATEGORY_ID_VIEWS = GOPHER_ATTRIBUTE_ID_BASE + 4
  360. GOPHER_CATEGORY_ID_ABSTRACT = GOPHER_ATTRIBUTE_ID_BASE + 5
  361. GOPHER_CATEGORY_ID_VERONICA = GOPHER_ATTRIBUTE_ID_BASE + 6
  362. GOPHER_CATEGORY_ID_ASK = GOPHER_ATTRIBUTE_ID_BASE + 7
  363. GOPHER_CATEGORY_ID_UNKNOWN = GOPHER_ATTRIBUTE_ID_BASE + 8
  364. GOPHER_ATTRIBUTE_ID_ALL = GOPHER_ATTRIBUTE_ID_BASE + 9
  365. GOPHER_ATTRIBUTE_ID_ADMIN = GOPHER_ATTRIBUTE_ID_BASE + 10
  366. GOPHER_ATTRIBUTE_ID_MOD_DATE = GOPHER_ATTRIBUTE_ID_BASE + 11
  367. GOPHER_ATTRIBUTE_ID_TTL = GOPHER_ATTRIBUTE_ID_BASE + 12
  368. GOPHER_ATTRIBUTE_ID_SCORE = GOPHER_ATTRIBUTE_ID_BASE + 13
  369. GOPHER_ATTRIBUTE_ID_RANGE = GOPHER_ATTRIBUTE_ID_BASE + 14
  370. GOPHER_ATTRIBUTE_ID_SITE = GOPHER_ATTRIBUTE_ID_BASE + 15
  371. GOPHER_ATTRIBUTE_ID_ORG = GOPHER_ATTRIBUTE_ID_BASE + 16
  372. GOPHER_ATTRIBUTE_ID_LOCATION = GOPHER_ATTRIBUTE_ID_BASE + 17
  373. GOPHER_ATTRIBUTE_ID_GEOG = GOPHER_ATTRIBUTE_ID_BASE + 18
  374. GOPHER_ATTRIBUTE_ID_TIMEZONE = GOPHER_ATTRIBUTE_ID_BASE + 19
  375. GOPHER_ATTRIBUTE_ID_PROVIDER = GOPHER_ATTRIBUTE_ID_BASE + 20
  376. GOPHER_ATTRIBUTE_ID_VERSION = GOPHER_ATTRIBUTE_ID_BASE + 21
  377. GOPHER_ATTRIBUTE_ID_ABSTRACT = GOPHER_ATTRIBUTE_ID_BASE + 22
  378. GOPHER_ATTRIBUTE_ID_VIEW = GOPHER_ATTRIBUTE_ID_BASE + 23
  379. GOPHER_ATTRIBUTE_ID_TREEWALK = GOPHER_ATTRIBUTE_ID_BASE + 24
  380. GOPHER_ATTRIBUTE_ID_UNKNOWN = GOPHER_ATTRIBUTE_ID_BASE + 25
  381. HTTP_MAJOR_VERSION = 1
  382. HTTP_MINOR_VERSION = 0
  383. HTTP_VERSIONA = "HTTP/1.0"
  384. HTTP_VERSION = HTTP_VERSIONA
  385. HTTP_QUERY_MIME_VERSION = 0
  386. HTTP_QUERY_CONTENT_TYPE = 1
  387. HTTP_QUERY_CONTENT_TRANSFER_ENCODING = 2
  388. HTTP_QUERY_CONTENT_ID = 3
  389. HTTP_QUERY_CONTENT_DESCRIPTION = 4
  390. HTTP_QUERY_CONTENT_LENGTH = 5
  391. HTTP_QUERY_CONTENT_LANGUAGE = 6
  392. HTTP_QUERY_ALLOW = 7
  393. HTTP_QUERY_PUBLIC = 8
  394. HTTP_QUERY_DATE = 9
  395. HTTP_QUERY_EXPIRES = 10
  396. HTTP_QUERY_LAST_MODIFIED = 11
  397. HTTP_QUERY_MESSAGE_ID = 12
  398. HTTP_QUERY_URI = 13
  399. HTTP_QUERY_DERIVED_FROM = 14
  400. HTTP_QUERY_COST = 15
  401. HTTP_QUERY_LINK = 16
  402. HTTP_QUERY_PRAGMA = 17
  403. HTTP_QUERY_VERSION = 18
  404. HTTP_QUERY_STATUS_CODE = 19
  405. HTTP_QUERY_STATUS_TEXT = 20
  406. HTTP_QUERY_RAW_HEADERS = 21
  407. HTTP_QUERY_RAW_HEADERS_CRLF = 22
  408. HTTP_QUERY_CONNECTION = 23
  409. HTTP_QUERY_ACCEPT = 24
  410. HTTP_QUERY_ACCEPT_CHARSET = 25
  411. HTTP_QUERY_ACCEPT_ENCODING = 26
  412. HTTP_QUERY_ACCEPT_LANGUAGE = 27
  413. HTTP_QUERY_AUTHORIZATION = 28
  414. HTTP_QUERY_CONTENT_ENCODING = 29
  415. HTTP_QUERY_FORWARDED = 30
  416. HTTP_QUERY_FROM = 31
  417. HTTP_QUERY_IF_MODIFIED_SINCE = 32
  418. HTTP_QUERY_LOCATION = 33
  419. HTTP_QUERY_ORIG_URI = 34
  420. HTTP_QUERY_REFERER = 35
  421. HTTP_QUERY_RETRY_AFTER = 36
  422. HTTP_QUERY_SERVER = 37
  423. HTTP_QUERY_TITLE = 38
  424. HTTP_QUERY_USER_AGENT = 39
  425. HTTP_QUERY_WWW_AUTHENTICATE = 40
  426. HTTP_QUERY_PROXY_AUTHENTICATE = 41
  427. HTTP_QUERY_ACCEPT_RANGES = 42
  428. HTTP_QUERY_SET_COOKIE = 43
  429. HTTP_QUERY_COOKIE = 44
  430. HTTP_QUERY_REQUEST_METHOD = 45
  431. HTTP_QUERY_REFRESH = 46
  432. HTTP_QUERY_CONTENT_DISPOSITION = 47
  433. HTTP_QUERY_AGE = 48
  434. HTTP_QUERY_CACHE_CONTROL = 49
  435. HTTP_QUERY_CONTENT_BASE = 50
  436. HTTP_QUERY_CONTENT_LOCATION = 51
  437. HTTP_QUERY_CONTENT_MD5 = 52
  438. HTTP_QUERY_CONTENT_RANGE = 53
  439. HTTP_QUERY_ETAG = 54
  440. HTTP_QUERY_HOST = 55
  441. HTTP_QUERY_IF_MATCH = 56
  442. HTTP_QUERY_IF_NONE_MATCH = 57
  443. HTTP_QUERY_IF_RANGE = 58
  444. HTTP_QUERY_IF_UNMODIFIED_SINCE = 59
  445. HTTP_QUERY_MAX_FORWARDS = 60
  446. HTTP_QUERY_PROXY_AUTHORIZATION = 61
  447. HTTP_QUERY_RANGE = 62
  448. HTTP_QUERY_TRANSFER_ENCODING = 63
  449. HTTP_QUERY_UPGRADE = 64
  450. HTTP_QUERY_VARY = 65
  451. HTTP_QUERY_VIA = 66
  452. HTTP_QUERY_WARNING = 67
  453. HTTP_QUERY_EXPECT = 68
  454. HTTP_QUERY_PROXY_CONNECTION = 69
  455. HTTP_QUERY_UNLESS_MODIFIED_SINCE = 70
  456. HTTP_QUERY_ECHO_REQUEST = 71
  457. HTTP_QUERY_ECHO_REPLY = 72
  458. HTTP_QUERY_ECHO_HEADERS = 73
  459. HTTP_QUERY_ECHO_HEADERS_CRLF = 74
  460. HTTP_QUERY_PROXY_SUPPORT = 75
  461. HTTP_QUERY_AUTHENTICATION_INFO = 76
  462. HTTP_QUERY_PASSPORT_URLS = 77
  463. HTTP_QUERY_PASSPORT_CONFIG = 78
  464. HTTP_QUERY_MAX = 78
  465. HTTP_QUERY_CUSTOM = 65535
  466. HTTP_QUERY_FLAG_REQUEST_HEADERS = -2147483648
  467. HTTP_QUERY_FLAG_SYSTEMTIME = 0x40000000
  468. HTTP_QUERY_FLAG_NUMBER = 0x20000000
  469. HTTP_QUERY_FLAG_COALESCE = 0x10000000
  470. HTTP_QUERY_MODIFIER_FLAGS_MASK = (
  471. HTTP_QUERY_FLAG_REQUEST_HEADERS
  472. | HTTP_QUERY_FLAG_SYSTEMTIME
  473. | HTTP_QUERY_FLAG_NUMBER
  474. | HTTP_QUERY_FLAG_COALESCE
  475. )
  476. HTTP_QUERY_HEADER_MASK = ~HTTP_QUERY_MODIFIER_FLAGS_MASK
  477. HTTP_STATUS_CONTINUE = 100
  478. HTTP_STATUS_SWITCH_PROTOCOLS = 101
  479. HTTP_STATUS_OK = 200
  480. HTTP_STATUS_CREATED = 201
  481. HTTP_STATUS_ACCEPTED = 202
  482. HTTP_STATUS_PARTIAL = 203
  483. HTTP_STATUS_NO_CONTENT = 204
  484. HTTP_STATUS_RESET_CONTENT = 205
  485. HTTP_STATUS_PARTIAL_CONTENT = 206
  486. HTTP_STATUS_WEBDAV_MULTI_STATUS = 207
  487. HTTP_STATUS_AMBIGUOUS = 300
  488. HTTP_STATUS_MOVED = 301
  489. HTTP_STATUS_REDIRECT = 302
  490. HTTP_STATUS_REDIRECT_METHOD = 303
  491. HTTP_STATUS_NOT_MODIFIED = 304
  492. HTTP_STATUS_USE_PROXY = 305
  493. HTTP_STATUS_REDIRECT_KEEP_VERB = 307
  494. HTTP_STATUS_BAD_REQUEST = 400
  495. HTTP_STATUS_DENIED = 401
  496. HTTP_STATUS_PAYMENT_REQ = 402
  497. HTTP_STATUS_FORBIDDEN = 403
  498. HTTP_STATUS_NOT_FOUND = 404
  499. HTTP_STATUS_BAD_METHOD = 405
  500. HTTP_STATUS_NONE_ACCEPTABLE = 406
  501. HTTP_STATUS_PROXY_AUTH_REQ = 407
  502. HTTP_STATUS_REQUEST_TIMEOUT = 408
  503. HTTP_STATUS_CONFLICT = 409
  504. HTTP_STATUS_GONE = 410
  505. HTTP_STATUS_LENGTH_REQUIRED = 411
  506. HTTP_STATUS_PRECOND_FAILED = 412
  507. HTTP_STATUS_REQUEST_TOO_LARGE = 413
  508. HTTP_STATUS_URI_TOO_LONG = 414
  509. HTTP_STATUS_UNSUPPORTED_MEDIA = 415
  510. HTTP_STATUS_RETRY_WITH = 449
  511. HTTP_STATUS_SERVER_ERROR = 500
  512. HTTP_STATUS_NOT_SUPPORTED = 501
  513. HTTP_STATUS_BAD_GATEWAY = 502
  514. HTTP_STATUS_SERVICE_UNAVAIL = 503
  515. HTTP_STATUS_GATEWAY_TIMEOUT = 504
  516. HTTP_STATUS_VERSION_NOT_SUP = 505
  517. HTTP_STATUS_FIRST = HTTP_STATUS_CONTINUE
  518. HTTP_STATUS_LAST = HTTP_STATUS_VERSION_NOT_SUP
  519. HTTP_ADDREQ_INDEX_MASK = 0x0000FFFF
  520. HTTP_ADDREQ_FLAGS_MASK = -65536
  521. HTTP_ADDREQ_FLAG_ADD_IF_NEW = 0x10000000
  522. HTTP_ADDREQ_FLAG_ADD = 0x20000000
  523. HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA = 0x40000000
  524. HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON = 0x01000000
  525. HTTP_ADDREQ_FLAG_COALESCE = HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
  526. HTTP_ADDREQ_FLAG_REPLACE = -2147483648
  527. HSR_ASYNC = WININET_API_FLAG_ASYNC
  528. HSR_SYNC = WININET_API_FLAG_SYNC
  529. HSR_USE_CONTEXT = WININET_API_FLAG_USE_CONTEXT
  530. HSR_INITIATE = 0x00000008
  531. HSR_DOWNLOAD = 0x00000010
  532. HSR_CHUNKED = 0x00000020
  533. INTERNET_COOKIE_IS_SECURE = 0x01
  534. INTERNET_COOKIE_IS_SESSION = 0x02
  535. INTERNET_COOKIE_THIRD_PARTY = 0x10
  536. INTERNET_COOKIE_PROMPT_REQUIRED = 0x20
  537. INTERNET_COOKIE_EVALUATE_P3P = 0x40
  538. INTERNET_COOKIE_APPLY_P3P = 0x80
  539. INTERNET_COOKIE_P3P_ENABLED = 0x100
  540. INTERNET_COOKIE_IS_RESTRICTED = 0x200
  541. INTERNET_COOKIE_IE6 = 0x400
  542. INTERNET_COOKIE_IS_LEGACY = 0x800
  543. FLAG_ICC_FORCE_CONNECTION = 0x00000001
  544. FLAGS_ERROR_UI_FILTER_FOR_ERRORS = 0x01
  545. FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS = 0x02
  546. FLAGS_ERROR_UI_FLAGS_GENERATE_DATA = 0x04
  547. FLAGS_ERROR_UI_FLAGS_NO_UI = 0x08
  548. FLAGS_ERROR_UI_SERIALIZE_DIALOGS = 0x10
  549. INTERNET_ERROR_BASE = 12000
  550. ERROR_INTERNET_OUT_OF_HANDLES = INTERNET_ERROR_BASE + 1
  551. ERROR_INTERNET_TIMEOUT = INTERNET_ERROR_BASE + 2
  552. ERROR_INTERNET_EXTENDED_ERROR = INTERNET_ERROR_BASE + 3
  553. ERROR_INTERNET_INTERNAL_ERROR = INTERNET_ERROR_BASE + 4
  554. ERROR_INTERNET_INVALID_URL = INTERNET_ERROR_BASE + 5
  555. ERROR_INTERNET_UNRECOGNIZED_SCHEME = INTERNET_ERROR_BASE + 6
  556. ERROR_INTERNET_NAME_NOT_RESOLVED = INTERNET_ERROR_BASE + 7
  557. ERROR_INTERNET_PROTOCOL_NOT_FOUND = INTERNET_ERROR_BASE + 8
  558. ERROR_INTERNET_INVALID_OPTION = INTERNET_ERROR_BASE + 9
  559. ERROR_INTERNET_BAD_OPTION_LENGTH = INTERNET_ERROR_BASE + 10
  560. ERROR_INTERNET_OPTION_NOT_SETTABLE = INTERNET_ERROR_BASE + 11
  561. ERROR_INTERNET_SHUTDOWN = INTERNET_ERROR_BASE + 12
  562. ERROR_INTERNET_INCORRECT_USER_NAME = INTERNET_ERROR_BASE + 13
  563. ERROR_INTERNET_INCORRECT_PASSWORD = INTERNET_ERROR_BASE + 14
  564. ERROR_INTERNET_LOGIN_FAILURE = INTERNET_ERROR_BASE + 15
  565. ERROR_INTERNET_INVALID_OPERATION = INTERNET_ERROR_BASE + 16
  566. ERROR_INTERNET_OPERATION_CANCELLED = INTERNET_ERROR_BASE + 17
  567. ERROR_INTERNET_INCORRECT_HANDLE_TYPE = INTERNET_ERROR_BASE + 18
  568. ERROR_INTERNET_INCORRECT_HANDLE_STATE = INTERNET_ERROR_BASE + 19
  569. ERROR_INTERNET_NOT_PROXY_REQUEST = INTERNET_ERROR_BASE + 20
  570. ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND = INTERNET_ERROR_BASE + 21
  571. ERROR_INTERNET_BAD_REGISTRY_PARAMETER = INTERNET_ERROR_BASE + 22
  572. ERROR_INTERNET_NO_DIRECT_ACCESS = INTERNET_ERROR_BASE + 23
  573. ERROR_INTERNET_NO_CONTEXT = INTERNET_ERROR_BASE + 24
  574. ERROR_INTERNET_NO_CALLBACK = INTERNET_ERROR_BASE + 25
  575. ERROR_INTERNET_REQUEST_PENDING = INTERNET_ERROR_BASE + 26
  576. ERROR_INTERNET_INCORRECT_FORMAT = INTERNET_ERROR_BASE + 27
  577. ERROR_INTERNET_ITEM_NOT_FOUND = INTERNET_ERROR_BASE + 28
  578. ERROR_INTERNET_CANNOT_CONNECT = INTERNET_ERROR_BASE + 29
  579. ERROR_INTERNET_CONNECTION_ABORTED = INTERNET_ERROR_BASE + 30
  580. ERROR_INTERNET_CONNECTION_RESET = INTERNET_ERROR_BASE + 31
  581. ERROR_INTERNET_FORCE_RETRY = INTERNET_ERROR_BASE + 32
  582. ERROR_INTERNET_INVALID_PROXY_REQUEST = INTERNET_ERROR_BASE + 33
  583. ERROR_INTERNET_NEED_UI = INTERNET_ERROR_BASE + 34
  584. ERROR_INTERNET_HANDLE_EXISTS = INTERNET_ERROR_BASE + 36
  585. ERROR_INTERNET_SEC_CERT_DATE_INVALID = INTERNET_ERROR_BASE + 37
  586. ERROR_INTERNET_SEC_CERT_CN_INVALID = INTERNET_ERROR_BASE + 38
  587. ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR = INTERNET_ERROR_BASE + 39
  588. ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR = INTERNET_ERROR_BASE + 40
  589. ERROR_INTERNET_MIXED_SECURITY = INTERNET_ERROR_BASE + 41
  590. ERROR_INTERNET_CHG_POST_IS_NON_SECURE = INTERNET_ERROR_BASE + 42
  591. ERROR_INTERNET_POST_IS_NON_SECURE = INTERNET_ERROR_BASE + 43
  592. ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED = INTERNET_ERROR_BASE + 44
  593. ERROR_INTERNET_INVALID_CA = INTERNET_ERROR_BASE + 45
  594. ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP = INTERNET_ERROR_BASE + 46
  595. ERROR_INTERNET_ASYNC_THREAD_FAILED = INTERNET_ERROR_BASE + 47
  596. ERROR_INTERNET_REDIRECT_SCHEME_CHANGE = INTERNET_ERROR_BASE + 48
  597. ERROR_INTERNET_DIALOG_PENDING = INTERNET_ERROR_BASE + 49
  598. ERROR_INTERNET_RETRY_DIALOG = INTERNET_ERROR_BASE + 50
  599. ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR = INTERNET_ERROR_BASE + 52
  600. ERROR_INTERNET_INSERT_CDROM = INTERNET_ERROR_BASE + 53
  601. ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED = INTERNET_ERROR_BASE + 54
  602. ERROR_INTERNET_SEC_CERT_ERRORS = INTERNET_ERROR_BASE + 55
  603. ERROR_INTERNET_SEC_CERT_NO_REV = INTERNET_ERROR_BASE + 56
  604. ERROR_INTERNET_SEC_CERT_REV_FAILED = INTERNET_ERROR_BASE + 57
  605. ERROR_FTP_TRANSFER_IN_PROGRESS = INTERNET_ERROR_BASE + 110
  606. ERROR_FTP_DROPPED = INTERNET_ERROR_BASE + 111
  607. ERROR_FTP_NO_PASSIVE_MODE = INTERNET_ERROR_BASE + 112
  608. ERROR_GOPHER_PROTOCOL_ERROR = INTERNET_ERROR_BASE + 130
  609. ERROR_GOPHER_NOT_FILE = INTERNET_ERROR_BASE + 131
  610. ERROR_GOPHER_DATA_ERROR = INTERNET_ERROR_BASE + 132
  611. ERROR_GOPHER_END_OF_DATA = INTERNET_ERROR_BASE + 133
  612. ERROR_GOPHER_INVALID_LOCATOR = INTERNET_ERROR_BASE + 134
  613. ERROR_GOPHER_INCORRECT_LOCATOR_TYPE = INTERNET_ERROR_BASE + 135
  614. ERROR_GOPHER_NOT_GOPHER_PLUS = INTERNET_ERROR_BASE + 136
  615. ERROR_GOPHER_ATTRIBUTE_NOT_FOUND = INTERNET_ERROR_BASE + 137
  616. ERROR_GOPHER_UNKNOWN_LOCATOR = INTERNET_ERROR_BASE + 138
  617. ERROR_HTTP_HEADER_NOT_FOUND = INTERNET_ERROR_BASE + 150
  618. ERROR_HTTP_DOWNLEVEL_SERVER = INTERNET_ERROR_BASE + 151
  619. ERROR_HTTP_INVALID_SERVER_RESPONSE = INTERNET_ERROR_BASE + 152
  620. ERROR_HTTP_INVALID_HEADER = INTERNET_ERROR_BASE + 153
  621. ERROR_HTTP_INVALID_QUERY_REQUEST = INTERNET_ERROR_BASE + 154
  622. ERROR_HTTP_HEADER_ALREADY_EXISTS = INTERNET_ERROR_BASE + 155
  623. ERROR_HTTP_REDIRECT_FAILED = INTERNET_ERROR_BASE + 156
  624. ERROR_HTTP_NOT_REDIRECTED = INTERNET_ERROR_BASE + 160
  625. ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION = INTERNET_ERROR_BASE + 161
  626. ERROR_HTTP_COOKIE_DECLINED = INTERNET_ERROR_BASE + 162
  627. ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION = INTERNET_ERROR_BASE + 168
  628. ERROR_INTERNET_SECURITY_CHANNEL_ERROR = INTERNET_ERROR_BASE + 157
  629. ERROR_INTERNET_UNABLE_TO_CACHE_FILE = INTERNET_ERROR_BASE + 158
  630. ERROR_INTERNET_TCPIP_NOT_INSTALLED = INTERNET_ERROR_BASE + 159
  631. ERROR_INTERNET_DISCONNECTED = INTERNET_ERROR_BASE + 163
  632. ERROR_INTERNET_SERVER_UNREACHABLE = INTERNET_ERROR_BASE + 164
  633. ERROR_INTERNET_PROXY_SERVER_UNREACHABLE = INTERNET_ERROR_BASE + 165
  634. ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT = INTERNET_ERROR_BASE + 166
  635. ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT = INTERNET_ERROR_BASE + 167
  636. ERROR_INTERNET_SEC_INVALID_CERT = INTERNET_ERROR_BASE + 169
  637. ERROR_INTERNET_SEC_CERT_REVOKED = INTERNET_ERROR_BASE + 170
  638. ERROR_INTERNET_FAILED_DUETOSECURITYCHECK = INTERNET_ERROR_BASE + 171
  639. ERROR_INTERNET_NOT_INITIALIZED = INTERNET_ERROR_BASE + 172
  640. ERROR_INTERNET_NEED_MSN_SSPI_PKG = INTERNET_ERROR_BASE + 173
  641. ERROR_INTERNET_LOGIN_FAILURE_DISPLAY_ENTITY_BODY = INTERNET_ERROR_BASE + 174
  642. INTERNET_ERROR_LAST = ERROR_INTERNET_LOGIN_FAILURE_DISPLAY_ENTITY_BODY
  643. NORMAL_CACHE_ENTRY = 0x00000001
  644. STICKY_CACHE_ENTRY = 0x00000004
  645. EDITED_CACHE_ENTRY = 0x00000008
  646. TRACK_OFFLINE_CACHE_ENTRY = 0x00000010
  647. TRACK_ONLINE_CACHE_ENTRY = 0x00000020
  648. SPARSE_CACHE_ENTRY = 0x00010000
  649. COOKIE_CACHE_ENTRY = 0x00100000
  650. URLHISTORY_CACHE_ENTRY = 0x00200000
  651. URLCACHE_FIND_DEFAULT_FILTER = (
  652. NORMAL_CACHE_ENTRY
  653. | COOKIE_CACHE_ENTRY
  654. | URLHISTORY_CACHE_ENTRY
  655. | TRACK_OFFLINE_CACHE_ENTRY
  656. | TRACK_ONLINE_CACHE_ENTRY
  657. | STICKY_CACHE_ENTRY
  658. )
  659. CACHEGROUP_ATTRIBUTE_GET_ALL = -1
  660. CACHEGROUP_ATTRIBUTE_BASIC = 0x00000001
  661. CACHEGROUP_ATTRIBUTE_FLAG = 0x00000002
  662. CACHEGROUP_ATTRIBUTE_TYPE = 0x00000004
  663. CACHEGROUP_ATTRIBUTE_QUOTA = 0x00000008
  664. CACHEGROUP_ATTRIBUTE_GROUPNAME = 0x00000010
  665. CACHEGROUP_ATTRIBUTE_STORAGE = 0x00000020
  666. CACHEGROUP_FLAG_NONPURGEABLE = 0x00000001
  667. CACHEGROUP_FLAG_GIDONLY = 0x00000004
  668. CACHEGROUP_FLAG_FLUSHURL_ONDELETE = 0x00000002
  669. CACHEGROUP_SEARCH_ALL = 0x00000000
  670. CACHEGROUP_SEARCH_BYURL = 0x00000001
  671. CACHEGROUP_TYPE_INVALID = 0x00000001
  672. CACHEGROUP_READWRITE_MASK = (
  673. CACHEGROUP_ATTRIBUTE_TYPE
  674. | CACHEGROUP_ATTRIBUTE_QUOTA
  675. | CACHEGROUP_ATTRIBUTE_GROUPNAME
  676. | CACHEGROUP_ATTRIBUTE_STORAGE
  677. )
  678. GROUPNAME_MAX_LENGTH = 120
  679. GROUP_OWNER_STORAGE_SIZE = 4
  680. CACHE_ENTRY_ATTRIBUTE_FC = 0x00000004
  681. CACHE_ENTRY_HITRATE_FC = 0x00000010
  682. CACHE_ENTRY_MODTIME_FC = 0x00000040
  683. CACHE_ENTRY_EXPTIME_FC = 0x00000080
  684. CACHE_ENTRY_ACCTIME_FC = 0x00000100
  685. CACHE_ENTRY_SYNCTIME_FC = 0x00000200
  686. CACHE_ENTRY_HEADERINFO_FC = 0x00000400
  687. CACHE_ENTRY_EXEMPT_DELTA_FC = 0x00000800
  688. INTERNET_CACHE_GROUP_ADD = 0
  689. INTERNET_CACHE_GROUP_REMOVE = 1
  690. INTERNET_DIAL_FORCE_PROMPT = 0x2000
  691. INTERNET_DIAL_SHOW_OFFLINE = 0x4000
  692. INTERNET_DIAL_UNATTENDED = 0x8000
  693. INTERENT_GOONLINE_REFRESH = 0x00000001
  694. INTERENT_GOONLINE_MASK = 0x00000001
  695. INTERNET_AUTODIAL_FORCE_ONLINE = 1
  696. INTERNET_AUTODIAL_FORCE_UNATTENDED = 2
  697. INTERNET_AUTODIAL_FAILIFSECURITYCHECK = 4
  698. INTERNET_AUTODIAL_OVERRIDE_NET_PRESENT = 8
  699. INTERNET_AUTODIAL_FLAGS_MASK = (
  700. INTERNET_AUTODIAL_FORCE_ONLINE
  701. | INTERNET_AUTODIAL_FORCE_UNATTENDED
  702. | INTERNET_AUTODIAL_FAILIFSECURITYCHECK
  703. | INTERNET_AUTODIAL_OVERRIDE_NET_PRESENT
  704. )
  705. PROXY_AUTO_DETECT_TYPE_DHCP = 1
  706. PROXY_AUTO_DETECT_TYPE_DNS_A = 2
  707. INTERNET_CONNECTION_MODEM = 0x01
  708. INTERNET_CONNECTION_LAN = 0x02
  709. INTERNET_CONNECTION_PROXY = 0x04
  710. INTERNET_CONNECTION_MODEM_BUSY = 0x08
  711. INTERNET_RAS_INSTALLED = 0x10
  712. INTERNET_CONNECTION_OFFLINE = 0x20
  713. INTERNET_CONNECTION_CONFIGURED = 0x40
  714. INTERNET_CUSTOMDIAL_CONNECT = 0
  715. INTERNET_CUSTOMDIAL_UNATTENDED = 1
  716. INTERNET_CUSTOMDIAL_DISCONNECT = 2
  717. INTERNET_CUSTOMDIAL_SHOWOFFLINE = 4
  718. INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED = 1
  719. INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE = 2
  720. INTERNET_CUSTOMDIAL_CAN_HANGUP = 4
  721. INTERNET_DIALSTATE_DISCONNECTED = 1
  722. INTERNET_IDENTITY_FLAG_PRIVATE_CACHE = 0x01
  723. INTERNET_IDENTITY_FLAG_SHARED_CACHE = 0x02
  724. INTERNET_IDENTITY_FLAG_CLEAR_DATA = 0x04
  725. INTERNET_IDENTITY_FLAG_CLEAR_COOKIES = 0x08
  726. INTERNET_IDENTITY_FLAG_CLEAR_HISTORY = 0x10
  727. INTERNET_IDENTITY_FLAG_CLEAR_CONTENT = 0x20
  728. INTERNET_SUPPRESS_RESET_ALL = 0x00
  729. INTERNET_SUPPRESS_COOKIE_POLICY = 0x01
  730. INTERNET_SUPPRESS_COOKIE_POLICY_RESET = 0x02
  731. PRIVACY_TEMPLATE_NO_COOKIES = 0
  732. PRIVACY_TEMPLATE_HIGH = 1
  733. PRIVACY_TEMPLATE_MEDIUM_HIGH = 2
  734. PRIVACY_TEMPLATE_MEDIUM = 3
  735. PRIVACY_TEMPLATE_MEDIUM_LOW = 4
  736. PRIVACY_TEMPLATE_LOW = 5
  737. PRIVACY_TEMPLATE_CUSTOM = 100
  738. PRIVACY_TEMPLATE_ADVANCED = 101
  739. PRIVACY_TEMPLATE_MAX = PRIVACY_TEMPLATE_LOW
  740. PRIVACY_TYPE_FIRST_PARTY = 0
  741. PRIVACY_TYPE_THIRD_PARTY = 1
  742. # Generated by h2py from winhttp.h
  743. WINHTTP_FLAG_ASYNC = 0x10000000
  744. WINHTTP_FLAG_SECURE = 0x00800000
  745. WINHTTP_FLAG_ESCAPE_PERCENT = 0x00000004
  746. WINHTTP_FLAG_NULL_CODEPAGE = 0x00000008
  747. WINHTTP_FLAG_BYPASS_PROXY_CACHE = 0x00000100
  748. WINHTTP_FLAG_REFRESH = WINHTTP_FLAG_BYPASS_PROXY_CACHE
  749. WINHTTP_FLAG_ESCAPE_DISABLE = 0x00000040
  750. WINHTTP_FLAG_ESCAPE_DISABLE_QUERY = 0x00000080
  751. INTERNET_SCHEME_HTTP = 1
  752. INTERNET_SCHEME_HTTPS = 2
  753. WINHTTP_AUTOPROXY_AUTO_DETECT = 0x00000001
  754. WINHTTP_AUTOPROXY_CONFIG_URL = 0x00000002
  755. WINHTTP_AUTOPROXY_RUN_INPROCESS = 0x00010000
  756. WINHTTP_AUTOPROXY_RUN_OUTPROCESS_ONLY = 0x00020000
  757. WINHTTP_AUTO_DETECT_TYPE_DHCP = 0x00000001
  758. WINHTTP_AUTO_DETECT_TYPE_DNS_A = 0x00000002
  759. WINHTTP_TIME_FORMAT_BUFSIZE = 62
  760. WINHTTP_ACCESS_TYPE_DEFAULT_PROXY = 0
  761. WINHTTP_ACCESS_TYPE_NO_PROXY = 1
  762. WINHTTP_ACCESS_TYPE_NAMED_PROXY = 3
  763. WINHTTP_OPTION_CALLBACK = 1
  764. WINHTTP_OPTION_RESOLVE_TIMEOUT = 2
  765. WINHTTP_OPTION_CONNECT_TIMEOUT = 3
  766. WINHTTP_OPTION_CONNECT_RETRIES = 4
  767. WINHTTP_OPTION_SEND_TIMEOUT = 5
  768. WINHTTP_OPTION_RECEIVE_TIMEOUT = 6
  769. WINHTTP_OPTION_RECEIVE_RESPONSE_TIMEOUT = 7
  770. WINHTTP_OPTION_HANDLE_TYPE = 9
  771. WINHTTP_OPTION_READ_BUFFER_SIZE = 12
  772. WINHTTP_OPTION_WRITE_BUFFER_SIZE = 13
  773. WINHTTP_OPTION_PARENT_HANDLE = 21
  774. WINHTTP_OPTION_EXTENDED_ERROR = 24
  775. WINHTTP_OPTION_SECURITY_FLAGS = 31
  776. WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT = 32
  777. WINHTTP_OPTION_URL = 34
  778. WINHTTP_OPTION_SECURITY_KEY_BITNESS = 36
  779. WINHTTP_OPTION_PROXY = 38
  780. WINHTTP_OPTION_USER_AGENT = 41
  781. WINHTTP_OPTION_CONTEXT_VALUE = 45
  782. WINHTTP_OPTION_CLIENT_CERT_CONTEXT = 47
  783. WINHTTP_OPTION_REQUEST_PRIORITY = 58
  784. WINHTTP_OPTION_HTTP_VERSION = 59
  785. WINHTTP_OPTION_DISABLE_FEATURE = 63
  786. WINHTTP_OPTION_CODEPAGE = 68
  787. WINHTTP_OPTION_MAX_CONNS_PER_SERVER = 73
  788. WINHTTP_OPTION_MAX_CONNS_PER_1_0_SERVER = 74
  789. WINHTTP_OPTION_AUTOLOGON_POLICY = 77
  790. WINHTTP_OPTION_SERVER_CERT_CONTEXT = 78
  791. WINHTTP_OPTION_ENABLE_FEATURE = 79
  792. WINHTTP_OPTION_WORKER_THREAD_COUNT = 80
  793. WINHTTP_OPTION_PASSPORT_COBRANDING_TEXT = 81
  794. WINHTTP_OPTION_PASSPORT_COBRANDING_URL = 82
  795. WINHTTP_OPTION_CONFIGURE_PASSPORT_AUTH = 83
  796. WINHTTP_OPTION_SECURE_PROTOCOLS = 84
  797. WINHTTP_OPTION_ENABLETRACING = 85
  798. WINHTTP_OPTION_PASSPORT_SIGN_OUT = 86
  799. WINHTTP_OPTION_PASSPORT_RETURN_URL = 87
  800. WINHTTP_OPTION_REDIRECT_POLICY = 88
  801. WINHTTP_OPTION_MAX_HTTP_AUTOMATIC_REDIRECTS = 89
  802. WINHTTP_OPTION_MAX_HTTP_STATUS_CONTINUE = 90
  803. WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE = 91
  804. WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE = 92
  805. WINHTTP_OPTION_CONNECTION_INFO = 93
  806. WINHTTP_OPTION_CLIENT_CERT_ISSUER_LIST = 94
  807. WINHTTP_OPTION_SPN = 96
  808. WINHTTP_OPTION_GLOBAL_PROXY_CREDS = 97
  809. WINHTTP_OPTION_GLOBAL_SERVER_CREDS = 98
  810. WINHTTP_OPTION_UNLOAD_NOTIFY_EVENT = 99
  811. WINHTTP_OPTION_REJECT_USERPWD_IN_URL = 100
  812. WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS = 101
  813. WINHTTP_LAST_OPTION = WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS
  814. WINHTTP_OPTION_USERNAME = 0x1000
  815. WINHTTP_OPTION_PASSWORD = 0x1001
  816. WINHTTP_OPTION_PROXY_USERNAME = 0x1002
  817. WINHTTP_OPTION_PROXY_PASSWORD = 0x1003
  818. WINHTTP_CONNS_PER_SERVER_UNLIMITED = -1
  819. WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM = 0
  820. WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW = 1
  821. WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH = 2
  822. WINHTTP_AUTOLOGON_SECURITY_LEVEL_DEFAULT = WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM
  823. WINHTTP_OPTION_REDIRECT_POLICY_NEVER = 0
  824. WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP = 1
  825. WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS = 2
  826. WINHTTP_OPTION_REDIRECT_POLICY_LAST = WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS
  827. WINHTTP_OPTION_REDIRECT_POLICY_DEFAULT = (
  828. WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP
  829. )
  830. WINHTTP_DISABLE_PASSPORT_AUTH = 0x00000000
  831. WINHTTP_ENABLE_PASSPORT_AUTH = 0x10000000
  832. WINHTTP_DISABLE_PASSPORT_KEYRING = 0x20000000
  833. WINHTTP_ENABLE_PASSPORT_KEYRING = 0x40000000
  834. WINHTTP_DISABLE_COOKIES = 0x00000001
  835. WINHTTP_DISABLE_REDIRECTS = 0x00000002
  836. WINHTTP_DISABLE_AUTHENTICATION = 0x00000004
  837. WINHTTP_DISABLE_KEEP_ALIVE = 0x00000008
  838. WINHTTP_ENABLE_SSL_REVOCATION = 0x00000001
  839. WINHTTP_ENABLE_SSL_REVERT_IMPERSONATION = 0x00000002
  840. WINHTTP_DISABLE_SPN_SERVER_PORT = 0x00000000
  841. WINHTTP_ENABLE_SPN_SERVER_PORT = 0x00000001
  842. WINHTTP_OPTION_SPN_MASK = WINHTTP_ENABLE_SPN_SERVER_PORT
  843. WINHTTP_HANDLE_TYPE_SESSION = 1
  844. WINHTTP_HANDLE_TYPE_CONNECT = 2
  845. WINHTTP_HANDLE_TYPE_REQUEST = 3
  846. WINHTTP_AUTH_SCHEME_BASIC = 0x00000001
  847. WINHTTP_AUTH_SCHEME_NTLM = 0x00000002
  848. WINHTTP_AUTH_SCHEME_PASSPORT = 0x00000004
  849. WINHTTP_AUTH_SCHEME_DIGEST = 0x00000008
  850. WINHTTP_AUTH_SCHEME_NEGOTIATE = 0x00000010
  851. WINHTTP_AUTH_TARGET_SERVER = 0x00000000
  852. WINHTTP_AUTH_TARGET_PROXY = 0x00000001
  853. WINHTTP_CALLBACK_STATUS_FLAG_CERT_REV_FAILED = 0x00000001
  854. WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CERT = 0x00000002
  855. WINHTTP_CALLBACK_STATUS_FLAG_CERT_REVOKED = 0x00000004
  856. WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CA = 0x00000008
  857. WINHTTP_CALLBACK_STATUS_FLAG_CERT_CN_INVALID = 0x00000010
  858. WINHTTP_CALLBACK_STATUS_FLAG_CERT_DATE_INVALID = 0x00000020
  859. WINHTTP_CALLBACK_STATUS_FLAG_CERT_WRONG_USAGE = 0x00000040
  860. WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR = -2147483648
  861. WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 = 0x00000008
  862. WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 = 0x00000020
  863. WINHTTP_FLAG_SECURE_PROTOCOL_TLS1 = 0x00000080
  864. WINHTTP_FLAG_SECURE_PROTOCOL_ALL = (
  865. WINHTTP_FLAG_SECURE_PROTOCOL_SSL2
  866. | WINHTTP_FLAG_SECURE_PROTOCOL_SSL3
  867. | WINHTTP_FLAG_SECURE_PROTOCOL_TLS1
  868. )
  869. WINHTTP_CALLBACK_STATUS_RESOLVING_NAME = 0x00000001
  870. WINHTTP_CALLBACK_STATUS_NAME_RESOLVED = 0x00000002
  871. WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER = 0x00000004
  872. WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER = 0x00000008
  873. WINHTTP_CALLBACK_STATUS_SENDING_REQUEST = 0x00000010
  874. WINHTTP_CALLBACK_STATUS_REQUEST_SENT = 0x00000020
  875. WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE = 0x00000040
  876. WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED = 0x00000080
  877. WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION = 0x00000100
  878. WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED = 0x00000200
  879. WINHTTP_CALLBACK_STATUS_HANDLE_CREATED = 0x00000400
  880. WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING = 0x00000800
  881. WINHTTP_CALLBACK_STATUS_DETECTING_PROXY = 0x00001000
  882. WINHTTP_CALLBACK_STATUS_REDIRECT = 0x00004000
  883. WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE = 0x00008000
  884. WINHTTP_CALLBACK_STATUS_SECURE_FAILURE = 0x00010000
  885. WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE = 0x00020000
  886. WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE = 0x00040000
  887. WINHTTP_CALLBACK_STATUS_READ_COMPLETE = 0x00080000
  888. WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE = 0x00100000
  889. WINHTTP_CALLBACK_STATUS_REQUEST_ERROR = 0x00200000
  890. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE = 0x00400000
  891. API_RECEIVE_RESPONSE = 1
  892. API_QUERY_DATA_AVAILABLE = 2
  893. API_READ_DATA = 3
  894. API_WRITE_DATA = 4
  895. API_SEND_REQUEST = 5
  896. WINHTTP_CALLBACK_FLAG_RESOLVE_NAME = (
  897. WINHTTP_CALLBACK_STATUS_RESOLVING_NAME | WINHTTP_CALLBACK_STATUS_NAME_RESOLVED
  898. )
  899. WINHTTP_CALLBACK_FLAG_CONNECT_TO_SERVER = (
  900. WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER
  901. | WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER
  902. )
  903. WINHTTP_CALLBACK_FLAG_SEND_REQUEST = (
  904. WINHTTP_CALLBACK_STATUS_SENDING_REQUEST | WINHTTP_CALLBACK_STATUS_REQUEST_SENT
  905. )
  906. WINHTTP_CALLBACK_FLAG_RECEIVE_RESPONSE = (
  907. WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE
  908. | WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
  909. )
  910. WINHTTP_CALLBACK_FLAG_CLOSE_CONNECTION = (
  911. WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION
  912. | WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED
  913. )
  914. WINHTTP_CALLBACK_FLAG_HANDLES = (
  915. WINHTTP_CALLBACK_STATUS_HANDLE_CREATED | WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
  916. )
  917. WINHTTP_CALLBACK_FLAG_DETECTING_PROXY = WINHTTP_CALLBACK_STATUS_DETECTING_PROXY
  918. WINHTTP_CALLBACK_FLAG_REDIRECT = WINHTTP_CALLBACK_STATUS_REDIRECT
  919. WINHTTP_CALLBACK_FLAG_INTERMEDIATE_RESPONSE = (
  920. WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE
  921. )
  922. WINHTTP_CALLBACK_FLAG_SECURE_FAILURE = WINHTTP_CALLBACK_STATUS_SECURE_FAILURE
  923. WINHTTP_CALLBACK_FLAG_SENDREQUEST_COMPLETE = (
  924. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE
  925. )
  926. WINHTTP_CALLBACK_FLAG_HEADERS_AVAILABLE = WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
  927. WINHTTP_CALLBACK_FLAG_DATA_AVAILABLE = WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
  928. WINHTTP_CALLBACK_FLAG_READ_COMPLETE = WINHTTP_CALLBACK_STATUS_READ_COMPLETE
  929. WINHTTP_CALLBACK_FLAG_WRITE_COMPLETE = WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
  930. WINHTTP_CALLBACK_FLAG_REQUEST_ERROR = WINHTTP_CALLBACK_STATUS_REQUEST_ERROR
  931. WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS = (
  932. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE
  933. | WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
  934. | WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
  935. | WINHTTP_CALLBACK_STATUS_READ_COMPLETE
  936. | WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
  937. | WINHTTP_CALLBACK_STATUS_REQUEST_ERROR
  938. )
  939. WINHTTP_CALLBACK_FLAG_ALL_NOTIFICATIONS = -1
  940. WINHTTP_QUERY_MIME_VERSION = 0
  941. WINHTTP_QUERY_CONTENT_TYPE = 1
  942. WINHTTP_QUERY_CONTENT_TRANSFER_ENCODING = 2
  943. WINHTTP_QUERY_CONTENT_ID = 3
  944. WINHTTP_QUERY_CONTENT_DESCRIPTION = 4
  945. WINHTTP_QUERY_CONTENT_LENGTH = 5
  946. WINHTTP_QUERY_CONTENT_LANGUAGE = 6
  947. WINHTTP_QUERY_ALLOW = 7
  948. WINHTTP_QUERY_PUBLIC = 8
  949. WINHTTP_QUERY_DATE = 9
  950. WINHTTP_QUERY_EXPIRES = 10
  951. WINHTTP_QUERY_LAST_MODIFIED = 11
  952. WINHTTP_QUERY_MESSAGE_ID = 12
  953. WINHTTP_QUERY_URI = 13
  954. WINHTTP_QUERY_DERIVED_FROM = 14
  955. WINHTTP_QUERY_COST = 15
  956. WINHTTP_QUERY_LINK = 16
  957. WINHTTP_QUERY_PRAGMA = 17
  958. WINHTTP_QUERY_VERSION = 18
  959. WINHTTP_QUERY_STATUS_CODE = 19
  960. WINHTTP_QUERY_STATUS_TEXT = 20
  961. WINHTTP_QUERY_RAW_HEADERS = 21
  962. WINHTTP_QUERY_RAW_HEADERS_CRLF = 22
  963. WINHTTP_QUERY_CONNECTION = 23
  964. WINHTTP_QUERY_ACCEPT = 24
  965. WINHTTP_QUERY_ACCEPT_CHARSET = 25
  966. WINHTTP_QUERY_ACCEPT_ENCODING = 26
  967. WINHTTP_QUERY_ACCEPT_LANGUAGE = 27
  968. WINHTTP_QUERY_AUTHORIZATION = 28
  969. WINHTTP_QUERY_CONTENT_ENCODING = 29
  970. WINHTTP_QUERY_FORWARDED = 30
  971. WINHTTP_QUERY_FROM = 31
  972. WINHTTP_QUERY_IF_MODIFIED_SINCE = 32
  973. WINHTTP_QUERY_LOCATION = 33
  974. WINHTTP_QUERY_ORIG_URI = 34
  975. WINHTTP_QUERY_REFERER = 35
  976. WINHTTP_QUERY_RETRY_AFTER = 36
  977. WINHTTP_QUERY_SERVER = 37
  978. WINHTTP_QUERY_TITLE = 38
  979. WINHTTP_QUERY_USER_AGENT = 39
  980. WINHTTP_QUERY_WWW_AUTHENTICATE = 40
  981. WINHTTP_QUERY_PROXY_AUTHENTICATE = 41
  982. WINHTTP_QUERY_ACCEPT_RANGES = 42
  983. WINHTTP_QUERY_SET_COOKIE = 43
  984. WINHTTP_QUERY_COOKIE = 44
  985. WINHTTP_QUERY_REQUEST_METHOD = 45
  986. WINHTTP_QUERY_REFRESH = 46
  987. WINHTTP_QUERY_CONTENT_DISPOSITION = 47
  988. WINHTTP_QUERY_AGE = 48
  989. WINHTTP_QUERY_CACHE_CONTROL = 49
  990. WINHTTP_QUERY_CONTENT_BASE = 50
  991. WINHTTP_QUERY_CONTENT_LOCATION = 51
  992. WINHTTP_QUERY_CONTENT_MD5 = 52
  993. WINHTTP_QUERY_CONTENT_RANGE = 53
  994. WINHTTP_QUERY_ETAG = 54
  995. WINHTTP_QUERY_HOST = 55
  996. WINHTTP_QUERY_IF_MATCH = 56
  997. WINHTTP_QUERY_IF_NONE_MATCH = 57
  998. WINHTTP_QUERY_IF_RANGE = 58
  999. WINHTTP_QUERY_IF_UNMODIFIED_SINCE = 59
  1000. WINHTTP_QUERY_MAX_FORWARDS = 60
  1001. WINHTTP_QUERY_PROXY_AUTHORIZATION = 61
  1002. WINHTTP_QUERY_RANGE = 62
  1003. WINHTTP_QUERY_TRANSFER_ENCODING = 63
  1004. WINHTTP_QUERY_UPGRADE = 64
  1005. WINHTTP_QUERY_VARY = 65
  1006. WINHTTP_QUERY_VIA = 66
  1007. WINHTTP_QUERY_WARNING = 67
  1008. WINHTTP_QUERY_EXPECT = 68
  1009. WINHTTP_QUERY_PROXY_CONNECTION = 69
  1010. WINHTTP_QUERY_UNLESS_MODIFIED_SINCE = 70
  1011. WINHTTP_QUERY_PROXY_SUPPORT = 75
  1012. WINHTTP_QUERY_AUTHENTICATION_INFO = 76
  1013. WINHTTP_QUERY_PASSPORT_URLS = 77
  1014. WINHTTP_QUERY_PASSPORT_CONFIG = 78
  1015. WINHTTP_QUERY_MAX = 78
  1016. WINHTTP_QUERY_CUSTOM = 65535
  1017. WINHTTP_QUERY_FLAG_REQUEST_HEADERS = -2147483648
  1018. WINHTTP_QUERY_FLAG_SYSTEMTIME = 0x40000000
  1019. WINHTTP_QUERY_FLAG_NUMBER = 0x20000000
  1020. WINHTTP_ADDREQ_INDEX_MASK = 0x0000FFFF
  1021. WINHTTP_ADDREQ_FLAGS_MASK = -65536
  1022. WINHTTP_ADDREQ_FLAG_ADD_IF_NEW = 0x10000000
  1023. WINHTTP_ADDREQ_FLAG_ADD = 0x20000000
  1024. WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA = 0x40000000
  1025. WINHTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON = 0x01000000
  1026. WINHTTP_ADDREQ_FLAG_COALESCE = WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
  1027. WINHTTP_ADDREQ_FLAG_REPLACE = -2147483648
  1028. WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH = 0
  1029. WINHTTP_ERROR_BASE = 12000
  1030. ERROR_WINHTTP_OUT_OF_HANDLES = WINHTTP_ERROR_BASE + 1
  1031. ERROR_WINHTTP_TIMEOUT = WINHTTP_ERROR_BASE + 2
  1032. ERROR_WINHTTP_INTERNAL_ERROR = WINHTTP_ERROR_BASE + 4
  1033. ERROR_WINHTTP_INVALID_URL = WINHTTP_ERROR_BASE + 5
  1034. ERROR_WINHTTP_UNRECOGNIZED_SCHEME = WINHTTP_ERROR_BASE + 6
  1035. ERROR_WINHTTP_NAME_NOT_RESOLVED = WINHTTP_ERROR_BASE + 7
  1036. ERROR_WINHTTP_INVALID_OPTION = WINHTTP_ERROR_BASE + 9
  1037. ERROR_WINHTTP_OPTION_NOT_SETTABLE = WINHTTP_ERROR_BASE + 11
  1038. ERROR_WINHTTP_SHUTDOWN = WINHTTP_ERROR_BASE + 12
  1039. ERROR_WINHTTP_LOGIN_FAILURE = WINHTTP_ERROR_BASE + 15
  1040. ERROR_WINHTTP_OPERATION_CANCELLED = WINHTTP_ERROR_BASE + 17
  1041. ERROR_WINHTTP_INCORRECT_HANDLE_TYPE = WINHTTP_ERROR_BASE + 18
  1042. ERROR_WINHTTP_INCORRECT_HANDLE_STATE = WINHTTP_ERROR_BASE + 19
  1043. ERROR_WINHTTP_CANNOT_CONNECT = WINHTTP_ERROR_BASE + 29
  1044. ERROR_WINHTTP_CONNECTION_ERROR = WINHTTP_ERROR_BASE + 30
  1045. ERROR_WINHTTP_RESEND_REQUEST = WINHTTP_ERROR_BASE + 32
  1046. ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED = WINHTTP_ERROR_BASE + 44
  1047. ERROR_WINHTTP_CANNOT_CALL_BEFORE_OPEN = WINHTTP_ERROR_BASE + 100
  1048. ERROR_WINHTTP_CANNOT_CALL_BEFORE_SEND = WINHTTP_ERROR_BASE + 101
  1049. ERROR_WINHTTP_CANNOT_CALL_AFTER_SEND = WINHTTP_ERROR_BASE + 102
  1050. ERROR_WINHTTP_CANNOT_CALL_AFTER_OPEN = WINHTTP_ERROR_BASE + 103
  1051. ERROR_WINHTTP_HEADER_NOT_FOUND = WINHTTP_ERROR_BASE + 150
  1052. ERROR_WINHTTP_INVALID_SERVER_RESPONSE = WINHTTP_ERROR_BASE + 152
  1053. ERROR_WINHTTP_INVALID_HEADER = WINHTTP_ERROR_BASE + 153
  1054. ERROR_WINHTTP_INVALID_QUERY_REQUEST = WINHTTP_ERROR_BASE + 154
  1055. ERROR_WINHTTP_HEADER_ALREADY_EXISTS = WINHTTP_ERROR_BASE + 155
  1056. ERROR_WINHTTP_REDIRECT_FAILED = WINHTTP_ERROR_BASE + 156
  1057. ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR = WINHTTP_ERROR_BASE + 178
  1058. ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT = WINHTTP_ERROR_BASE + 166
  1059. ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT = WINHTTP_ERROR_BASE + 167
  1060. ERROR_WINHTTP_NOT_INITIALIZED = WINHTTP_ERROR_BASE + 172
  1061. ERROR_WINHTTP_SECURE_FAILURE = WINHTTP_ERROR_BASE + 175
  1062. ERROR_WINHTTP_SECURE_CERT_DATE_INVALID = WINHTTP_ERROR_BASE + 37
  1063. ERROR_WINHTTP_SECURE_CERT_CN_INVALID = WINHTTP_ERROR_BASE + 38
  1064. ERROR_WINHTTP_SECURE_INVALID_CA = WINHTTP_ERROR_BASE + 45
  1065. ERROR_WINHTTP_SECURE_CERT_REV_FAILED = WINHTTP_ERROR_BASE + 57
  1066. ERROR_WINHTTP_SECURE_CHANNEL_ERROR = WINHTTP_ERROR_BASE + 157
  1067. ERROR_WINHTTP_SECURE_INVALID_CERT = WINHTTP_ERROR_BASE + 169
  1068. ERROR_WINHTTP_SECURE_CERT_REVOKED = WINHTTP_ERROR_BASE + 170
  1069. ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE = WINHTTP_ERROR_BASE + 179
  1070. ERROR_WINHTTP_AUTODETECTION_FAILED = WINHTTP_ERROR_BASE + 180
  1071. ERROR_WINHTTP_HEADER_COUNT_EXCEEDED = WINHTTP_ERROR_BASE + 181
  1072. ERROR_WINHTTP_HEADER_SIZE_OVERFLOW = WINHTTP_ERROR_BASE + 182
  1073. ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW = WINHTTP_ERROR_BASE + 183
  1074. ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW = WINHTTP_ERROR_BASE + 184
  1075. ERROR_WINHTTP_CLIENT_CERT_NO_PRIVATE_KEY = WINHTTP_ERROR_BASE + 185
  1076. ERROR_WINHTTP_CLIENT_CERT_NO_ACCESS_PRIVATE_KEY = WINHTTP_ERROR_BASE + 186
  1077. WINHTTP_ERROR_LAST = WINHTTP_ERROR_BASE + 186
  1078. WINHTTP_NO_PROXY_NAME = None
  1079. WINHTTP_NO_PROXY_BYPASS = None
  1080. WINHTTP_NO_REFERER = None
  1081. WINHTTP_DEFAULT_ACCEPT_TYPES = None
  1082. WINHTTP_NO_ADDITIONAL_HEADERS = None
  1083. WINHTTP_NO_REQUEST_DATA = None