diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 533d91b6b..a0ce73132 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,9 @@ +2006-03-05 Paul J. Lucas + + * include/wininet.h (INTERNET_CONNECTED_INFO): Define structure. + (INTERNET_STATE_*): Define flags. + (INTERNET_OPTION_CONNECTED_STATE): Define constant. + 2006-03-05 Chris Wilson * include/sddl.h: New file. diff --git a/winsup/w32api/include/wininet.h b/winsup/w32api/include/wininet.h index 70c43c233..5d7fba3b3 100644 --- a/winsup/w32api/include/wininet.h +++ b/winsup/w32api/include/wininet.h @@ -122,8 +122,10 @@ INTERNET_FLAG_NO_COOKIES|INTERNET_FLAG_NO_AUTH|SECURITY_INTERNET_MASK|INTERNET_F #define INTERNET_OPTION_END_BROWSER_SESSION 42 #define INTERNET_OPTION_PROXY_USERNAME 43 #define INTERNET_OPTION_PROXY_PASSWORD 44 +#define INTERNET_OPTION_CONNECTED_STATE 50 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK -#define INTERNET_LAST_OPTION INTERNET_OPTION_USER_AGENT +/* FIXME: missing INTERNET_OPTION_*? */ +#define INTERNET_LAST_OPTION INTERNET_OPTION_CONNECTED_STATE #define INTERNET_PRIORITY_FOREGROUND 1000 #define INTERNET_HANDLE_TYPE_INTERNET 1 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2 @@ -488,6 +490,12 @@ GOPHER_TYPE_UNIX_UUENCODED|GOPHER_TYPE_BINARY|GOPHER_TYPE_GIF|GOPHER_TYPE_IMAGE| #define WININET_API_FLAG_SYNC 0x00000004 /* Force synchronous operations. */ #define WININET_API_FLAG_USE_CONTEXT 0x00000008 /* Force the API to use the context value, even if it is set to zero. */ +#define INTERNET_STATE_CONNECTED 0x0001 +#define INTERNET_STATE_DISCONNECTED 0x0002 +#define INTERNET_STATE_DISCONNECTED_BY_USER 0x0010 +#define INTERNET_STATE_IDLE 0x0100 +#define INTERNET_STATE_BUSY 0x0200 + #ifndef RC_INVOKED typedef PVOID HINTERNET; typedef HINTERNET *LPHINTERNET; @@ -718,6 +726,10 @@ typedef struct _INTERNET_CACHE_GROUP_INFOW { DWORD dwOwnerStorage[GROUP_OWNER_STORAGE_SIZE]; WCHAR szGroupName[GROUPNAME_MAX_LENGTH]; } INTERNET_CACHE_GROUP_INFOW, * LPINTERNET_CACHE_GROUP_INFOW; +typedef struct { + DWORD dwConnectedState; + DWORD dwFlags; +} INTERNET_CONNECTED_INFO, * LPINTERNET_CONNECTED_INFO; #ifdef UNICODE typedef URL_COMPONENTSW URL_COMPONENTS;