Ver Mensaje Individual
  #1  
Antiguo 13-10-2004
luiguiray luiguiray is offline
Registrado
 
Registrado: ago 2004
Posts: 4
Reputación: 0
luiguiray Va por buen camino
Question WNET API Windows Networking

Alguien sabe como usar esta API?...únicamente la necesito para saber la información de la red, específicamente si está desconectado el cable de red o no, en el supuesto de que la red funciona perfectamente al igual que la tarjeta de red...
Según la información de Microsoft en MSDN hay una función para esto...

[The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration.]

DWORD WNetGetNetworkInformation( LPCTSTR lpProvider, LPNETINFOSTRUCT lpNetInfoStruct);
Parameters

lpProvider [in] Pointer to a constant null-terminated string that contains the name of the network provider for which information is required. lpNetInfoStruct [out] Pointer to a NETINFOSTRUCT structure. The structure describes characteristics of the network. Y bueno, la he utilizado y siempre me regresa 0. Alguien sabe algo al respecto?...pues he buscado por internet y no he encontrado ningún ejemplo...

De antemano gracias!
Responder Con Cita