Ignore:
Timestamp:
Dec 28, 2000, 12:16:07 AM (25 years ago)
Author:
sandervl
Message:

JH: Resync with latest Wine + fixes/additions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/wininet.h

    r2651 r4845  
    1 /* $Id: wininet.h,v 1.2 2000-02-05 02:42:19 sandervl Exp $ */
     1/* $Id: wininet.h,v 1.3 2000-12-27 23:16:07 sandervl Exp $ */
    22#ifndef __WININET_H__
    33#define __WININET_H__
     
    339339
    340340
    341 #define HTTP_MAJOR_VERSION                      1
    342 #define HTTP_MINOR_VERSION                      0
    343 
    344 #define HTTP_VERSION                            TEXT("HTTP/1.0")
    345 
     341#define HTTP_MAJOR_VERSION      1
     342#define HTTP_MINOR_VERSION      0
     343#define HTTP_VERSION            TEXT("HTTP/1.0")
    346344#define HTTP_QUERY_MIME_VERSION                 0
    347345#define HTTP_QUERY_CONTENT_TYPE                 1
     
    362360#define HTTP_QUERY_LINK                         16
    363361#define HTTP_QUERY_PRAGMA                       17
    364 #define HTTP_QUERY_VERSION                      18
    365 #define HTTP_QUERY_STATUS_CODE                  19
    366 #define HTTP_QUERY_STATUS_TEXT                  20
    367 #define HTTP_QUERY_RAW_HEADERS                  21
    368 #define HTTP_QUERY_RAW_HEADERS_CRLF             22
     362#define HTTP_QUERY_VERSION                      18 
     363#define HTTP_QUERY_STATUS_CODE                  19 
     364#define HTTP_QUERY_STATUS_TEXT                  20 
     365#define HTTP_QUERY_RAW_HEADERS                  21 
     366#define HTTP_QUERY_RAW_HEADERS_CRLF             22 
    369367#define HTTP_QUERY_CONNECTION                   23
    370368#define HTTP_QUERY_ACCEPT                       24
     
    389387#define HTTP_QUERY_SET_COOKIE                   43
    390388#define HTTP_QUERY_COOKIE                       44
    391 #define HTTP_QUERY_MAX                          44
     389#define HTTP_QUERY_REQUEST_METHOD               45 
     390#define HTTP_QUERY_REFRESH                      46
     391#define HTTP_QUERY_CONTENT_DISPOSITION          47
     392#define HTTP_QUERY_AGE                          48
     393#define HTTP_QUERY_CACHE_CONTROL                49
     394#define HTTP_QUERY_CONTENT_BASE                 50
     395#define HTTP_QUERY_CONTENT_LOCATION             51
     396#define HTTP_QUERY_CONTENT_MD5                  52
     397#define HTTP_QUERY_CONTENT_RANGE                53
     398#define HTTP_QUERY_ETAG                         54
     399#define HTTP_QUERY_HOST                         55
     400#define HTTP_QUERY_IF_MATCH                     56
     401#define HTTP_QUERY_IF_NONE_MATCH                57
     402#define HTTP_QUERY_IF_RANGE                     58
     403#define HTTP_QUERY_IF_UNMODIFIED_SINCE          59
     404#define HTTP_QUERY_MAX_FORWARDS                 60
     405#define HTTP_QUERY_PROXY_AUTHORIZATION          61
     406#define HTTP_QUERY_RANGE                        62
     407#define HTTP_QUERY_TRANSFER_ENCODING            63
     408#define HTTP_QUERY_UPGRADE                      64
     409#define HTTP_QUERY_VARY                         65
     410#define HTTP_QUERY_VIA                          66
     411#define HTTP_QUERY_WARNING                      67
     412#define HTTP_QUERY_MAX                          67
    392413#define HTTP_QUERY_CUSTOM                       65535
    393 
    394414#define HTTP_QUERY_FLAG_REQUEST_HEADERS         0x80000000
    395415#define HTTP_QUERY_FLAG_SYSTEMTIME              0x40000000
    396416#define HTTP_QUERY_FLAG_NUMBER                  0x20000000
    397417#define HTTP_QUERY_FLAG_COALESCE                0x10000000
    398 #define HTTP_QUERY_MODIFIER_FLAGS_MASK          (HTTP_QUERY_FLAG_REQUEST_HEADERS    \
     418#define HTTP_QUERY_MODIFIER_FLAGS_MASK          (HTTP_QUERY_FLAG_REQUEST_HEADERS \
    399419                                                | HTTP_QUERY_FLAG_SYSTEMTIME        \
    400420                                                | HTTP_QUERY_FLAG_NUMBER            \
    401421                                                | HTTP_QUERY_FLAG_COALESCE          \
    402422                                                )
    403 
    404423#define HTTP_QUERY_HEADER_MASK                  (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
    405424
    406 #define HTTP_STATUS_OK              200
    407 #define HTTP_STATUS_CREATED         201
    408 #define HTTP_STATUS_ACCEPTED        202
    409 #define HTTP_STATUS_PARTIAL         203
    410 #define HTTP_STATUS_NO_CONTENT      204
    411 
    412 #define HTTP_STATUS_AMBIGUOUS       300
    413 #define HTTP_STATUS_MOVED           301
    414 #define HTTP_STATUS_REDIRECT        302
    415 #define HTTP_STATUS_REDIRECT_METHOD 303
    416 #define HTTP_STATUS_NOT_MODIFIED    304
    417 
    418 #define HTTP_STATUS_BAD_REQUEST     400
    419 #define HTTP_STATUS_DENIED          401
    420 #define HTTP_STATUS_PAYMENT_REQ     402
    421 #define HTTP_STATUS_FORBIDDEN       403
    422 #define HTTP_STATUS_NOT_FOUND       404
    423 #define HTTP_STATUS_BAD_METHOD      405
    424 #define HTTP_STATUS_NONE_ACCEPTABLE 406
    425 #define HTTP_STATUS_PROXY_AUTH_REQ  407
    426 #define HTTP_STATUS_REQUEST_TIME    408
    427 #define HTTP_STATUS_CONFLICT        409
    428 #define HTTP_STATUS_GONE            410
    429 #define HTTP_STATUS_AUTH_REFUSED    411
    430 
    431 #define HTTP_STATUS_SERVER_ERROR    500
    432 #define HTTP_STATUS_NOT_SUPPORTED   501
    433 #define HTTP_STATUS_BAD_GATEWAY     502
    434 #define HTTP_STATUS_SERVICE_UNAVAIL 503
    435 #define HTTP_STATUS_GATEWAY_TIME    504
     425#define HTTP_STATUS_CONTINUE            100
     426#define HTTP_STATUS_SWITCH_PROTOCOLS    101
     427#define HTTP_STATUS_OK                  200
     428#define HTTP_STATUS_CREATED             201
     429#define HTTP_STATUS_ACCEPTED            202
     430#define HTTP_STATUS_PARTIAL             203
     431#define HTTP_STATUS_NO_CONTENT          204
     432#define HTTP_STATUS_RESET_CONTENT       205
     433#define HTTP_STATUS_PARTIAL_CONTENT     206
     434#define HTTP_STATUS_AMBIGUOUS           300
     435#define HTTP_STATUS_MOVED               301
     436#define HTTP_STATUS_REDIRECT            302
     437#define HTTP_STATUS_REDIRECT_METHOD     303
     438#define HTTP_STATUS_NOT_MODIFIED        304
     439#define HTTP_STATUS_USE_PROXY           305
     440#define HTTP_STATUS_REDIRECT_KEEP_VERB  307
     441#define HTTP_STATUS_BAD_REQUEST         400
     442#define HTTP_STATUS_DENIED              401
     443#define HTTP_STATUS_PAYMENT_REQ         402
     444#define HTTP_STATUS_FORBIDDEN           403
     445#define HTTP_STATUS_NOT_FOUND           404
     446#define HTTP_STATUS_BAD_METHOD          405
     447#define HTTP_STATUS_NONE_ACCEPTABLE     406
     448#define HTTP_STATUS_PROXY_AUTH_REQ      407
     449#define HTTP_STATUS_REQUEST_TIMEOUT     408
     450#define HTTP_STATUS_CONFLICT            409
     451#define HTTP_STATUS_GONE                410
     452#define HTTP_STATUS_LENGTH_REQUIRED     411
     453#define HTTP_STATUS_PRECOND_FAILED      412
     454#define HTTP_STATUS_REQUEST_TOO_LARGE   413
     455#define HTTP_STATUS_URI_TOO_LONG        414
     456#define HTTP_STATUS_UNSUPPORTED_MEDIA   415
     457#define HTTP_STATUS_SERVER_ERROR        500
     458#define HTTP_STATUS_NOT_SUPPORTED       501
     459#define HTTP_STATUS_BAD_GATEWAY         502
     460#define HTTP_STATUS_SERVICE_UNAVAIL     503
     461#define HTTP_STATUS_GATEWAY_TIMEOUT     504
     462#define HTTP_STATUS_VERSION_NOT_SUP     505
     463#define HTTP_STATUS_FIRST               HTTP_STATUS_CONTINUE
     464#define HTTP_STATUS_LAST                HTTP_STATUS_VERSION_NOT_SUP
    436465
    437466#define HTTP_ADDREQ_INDEX_MASK                          0x0000FFFF
     
    452481
    453482#define ERROR_INTERNET_OUT_OF_HANDLES           (INTERNET_ERROR_BASE + 1)
    454 #define ERROR_INTERNET_TIME                     (INTERNET_ERROR_BASE + 2)
     483#define ERROR_INTERNET_TIMEOUT                  (INTERNET_ERROR_BASE + 2)
    455484#define ERROR_INTERNET_EXTENDED_ERROR           (INTERNET_ERROR_BASE + 3)
    456485#define ERROR_INTERNET_INTERNAL_ERROR           (INTERNET_ERROR_BASE + 4)
     
    484513#define ERROR_INTERNET_FORCE_RETRY              (INTERNET_ERROR_BASE + 32)
    485514#define ERROR_INTERNET_INVALID_PROXY_REQUEST    (INTERNET_ERROR_BASE + 33)
    486 
     515#define ERROR_INTERNET_NEED_UI                  (INTERNET_ERROR_BASE + 34)
    487516#define ERROR_INTERNET_HANDLE_EXISTS            (INTERNET_ERROR_BASE + 36)
    488517#define ERROR_INTERNET_SEC_CERT_DATE_INVALID    (INTERNET_ERROR_BASE + 37)
     
    493522#define ERROR_INTERNET_CHG_POST_IS_NON_SECURE   (INTERNET_ERROR_BASE + 42)
    494523#define ERROR_INTERNET_POST_IS_NON_SECURE       (INTERNET_ERROR_BASE + 43)
    495 
     524#define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED  (INTERNET_ERROR_BASE + 44)
     525#define ERROR_INTERNET_INVALID_CA               (INTERNET_ERROR_BASE + 45)
     526#define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP    (INTERNET_ERROR_BASE + 46)
     527#define ERROR_INTERNET_ASYNC_THREAD_FAILED      (INTERNET_ERROR_BASE + 47)
     528#define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE   (INTERNET_ERROR_BASE + 48)
     529#define ERROR_INTERNET_DIALOG_PENDING           (INTERNET_ERROR_BASE + 49)
     530#define ERROR_INTERNET_RETRY_DIALOG             (INTERNET_ERROR_BASE + 50)
     531#define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR  (INTERNET_ERROR_BASE + 52)
     532#define ERROR_INTERNET_INSERT_CDROM             (INTERNET_ERROR_BASE + 53)
    496533#define ERROR_FTP_TRANSFER_IN_PROGRESS          (INTERNET_ERROR_BASE + 110)
    497534#define ERROR_FTP_DROPPED                       (INTERNET_ERROR_BASE + 111)
    498 
     535#define ERROR_FTP_NO_PASSIVE_MODE               (INTERNET_ERROR_BASE + 112)
    499536#define ERROR_GOPHER_PROTOCOL_ERROR             (INTERNET_ERROR_BASE + 130)
    500537#define ERROR_GOPHER_NOT_FILE                   (INTERNET_ERROR_BASE + 131)
     
    506543#define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND        (INTERNET_ERROR_BASE + 137)
    507544#define ERROR_GOPHER_UNKNOWN_LOCATOR            (INTERNET_ERROR_BASE + 138)
    508 
    509545#define ERROR_HTTP_HEADER_NOT_FOUND             (INTERNET_ERROR_BASE + 150)
    510546#define ERROR_HTTP_DOWNLEVEL_SERVER             (INTERNET_ERROR_BASE + 151)
     
    514550#define ERROR_HTTP_HEADER_ALREADY_EXISTS        (INTERNET_ERROR_BASE + 155)
    515551#define ERROR_HTTP_REDIRECT_FAILED              (INTERNET_ERROR_BASE + 156)
    516 
    517 #define INTERNET_ERROR_LAST                     ERROR_HTTP_REDIRECT_FAILED
     552#define ERROR_HTTP_NOT_REDIRECTED               (INTERNET_ERROR_BASE + 160)
     553#define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION    (INTERNET_ERROR_BASE + 161)
     554#define ERROR_HTTP_COOKIE_DECLINED              (INTERNET_ERROR_BASE + 162)
     555#define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION  (INTERNET_ERROR_BASE + 168)
     556#define ERROR_INTERNET_SECURITY_CHANNEL_ERROR   (INTERNET_ERROR_BASE + 157)
     557#define ERROR_INTERNET_UNABLE_TO_CACHE_FILE     (INTERNET_ERROR_BASE + 158)
     558#define ERROR_INTERNET_TCPIP_NOT_INSTALLED      (INTERNET_ERROR_BASE + 159)
     559#define ERROR_INTERNET_DISCONNECTED             (INTERNET_ERROR_BASE + 163)
     560#define ERROR_INTERNET_SERVER_UNREACHABLE       (INTERNET_ERROR_BASE + 164)
     561#define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
     562#define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT    (INTERNET_ERROR_BASE + 166)
     563#define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
     564#define ERROR_INTERNET_SEC_INVALID_CERT    (INTERNET_ERROR_BASE + 169)
     565#define ERROR_INTERNET_SEC_CERT_REVOKED    (INTERNET_ERROR_BASE + 170)
     566#define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK  (INTERNET_ERROR_BASE + 171)
     567#define INTERNET_ERROR_LAST                       ERROR_INTERNET_FAILED_DUETOSECURITYCHECK
     568
    518569
    519570#define CACHE_ENTRY_ATTRIBUTE_FC                0x00000004
     
    607658    LPCTSTR lpszProxyBypass;
    608659} INTERNET_PROXY_INFO, *LPINTERNET_PROXY_INFO;
     660
     661typedef struct _INTERNET_BUFFERSA
     662{
     663    DWORD dwStructSize;
     664    struct _INTERNET_BUFFERSA * Next;
     665    LPCSTR   lpcszHeader;
     666    DWORD dwHeadersLength;
     667    DWORD dwHeadersTotal;
     668    LPVOID lpvBuffer;
     669    DWORD dwBufferLength;
     670    DWORD dwBufferTotal;
     671    DWORD dwOffsetLow;
     672    DWORD dwOffsetHigh;
     673} INTERNET_BUFFERSA,* LPINTERNET_BUFFERSA;
    609674
    610675typedef struct {
Note: See TracChangeset for help on using the changeset viewer.