resend: InternetGetConnectedStateExA

Aric Stewart aric at codeweavers.com
Thu Nov 4 08:38:55 CST 2004


resend: implement this function for iTunes 4.7
-------------- next part --------------
Index: dlls/wininet/internet.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.c,v
retrieving revision 1.100
diff -u -u -w -r1.100 internet.c
--- dlls/wininet/internet.c	23 Sep 2004 22:53:04 -0000	1.100
+++ dlls/wininet/internet.c	4 Nov 2004 14:30:12 -0000
@@ -671,6 +671,33 @@
     return TRUE;
 }
 
+BOOL WINAPI InternetGetConnectedStateExA (LPDWORD lpdwStatus, 
+                LPSTR lpszConnectionName, DWORD dwNameLen, DWORD dwReserved)
+{
+    LPWSTR lpwszConnectionName = NULL;
+    BOOL rc;
+
+    TRACE("(%p, %s, %ld, 0x%08lx)\n", lpdwStatus, debugstr_a(lpszConnectionName), dwNameLen, dwReserved);
+
+    if (lpszConnectionName && dwNameLen > 0)
+        lpwszConnectionName= HeapAlloc(GetProcessHeap(), 0, dwNameLen * 
+                                                            sizeof(WCHAR));
+
+    rc = InternetGetConnectedStateExW(lpdwStatus,lpwszConnectionName, dwNameLen,
+                                      dwReserved);
+    if (lpwszConnectionName)
+    {
+        WideCharToMultiByte(CP_ACP,0,lpwszConnectionName,-1,lpszConnectionName,
+                            dwNameLen, NULL, NULL);
+
+        HeapFree(GetProcessHeap(),0,lpwszConnectionName);
+    }
+
+    return rc;
+}
+
+
+
 /***********************************************************************
  *           InternetConnectW (WININET.@)
  *


More information about the wine-patches mailing list