+size_t wxWinINetInputStream::GetSize() const
+{
+ DWORD contentLength = 0;
+ DWORD dwSize = sizeof(contentLength);
+ DWORD index = 0;
+
+ if ( HttpQueryInfo( m_hFile, HTTP_QUERY_CONTENT_LENGTH | HTTP_QUERY_FLAG_NUMBER, &contentLength, &dwSize, &index) )
+ return contentLength;
+ else
+ return 0;
+}
+