Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-03-05 11:31:57 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2006-03-05 11:31:57 +0300
commit984b8182bf75df013017ca5d4682e69993ac3192 (patch)
treedf6295567c035860780eb3e92c0bc13114a068c1 /winsup/w32api
parent41c3c8bd2c93e6f90834f3db4cb8651ca5eec24a (diff)
2006-03-05 Paul J. Lucas <pauljlucas@users.sourceforge.net>
* include/wininet.h (INTERNET_CONNECTED_INFO): Define structure. (INTERNET_STATE_*): Define flags. (INTERNET_OPTION_CONNECTED_STATE): Define constant.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog6
-rw-r--r--winsup/w32api/include/wininet.h14
2 files changed, 19 insertions, 1 deletions
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 <pauljlucas@users.sourceforge.net>
+
+ * include/wininet.h (INTERNET_CONNECTED_INFO): Define structure.
+ (INTERNET_STATE_*): Define flags.
+ (INTERNET_OPTION_CONNECTED_STATE): Define constant.
+
2006-03-05 Chris Wilson <chris+mingw@qwirx.com>
* 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;