NAME

InternetGetConnectedStateExW  (WININET.@)

SYNOPSIS

 BOOL InternetGetConnectedStateExW
 (
  LPDWORD lpdwStatus,
  LPWSTR  lpszConnectionName,
  DWORD   dwNameLen,
  DWORD   dwReserved
 )

DESCRIPTION

Return connected state.

PARAMS

lpdwStatus [Out] Flags specifying the status of the internet connection.
lpszConnectionName [Out] Pointer to buffer to receive the friendly name of the internet connection.
dwNameLen [In] Size of the buffer, in characters.
dwReserved [In] Reserved. Must be set to 0.

RETURNS

TRUE if connected if lpdwStatus is not NULL, return the status (off line, modem, lan...) in it. FALSE if not connected.

NOTES

If the system has no available network connections, an empty string is stored in lpszConnectionName. If there is a LAN connection, a localized "LAN Connection" string is stored. Presumably, if only a dial-up connection is available then the name of the dial-up connection is returned. Why any application, other than the "Internet Settings" CPL, would want to use this function instead of the simpler InternetGetConnectedStateW function is beyond me.

IMPLEMENTATION

Declared in "wininet.h". https://source.winehq.org/source/include/wininet.h

Implemented in "dlls/wininet/internet.c". https://source.winehq.org/source/dlls/wininet/internet.c

Debug channel "wininet".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.