elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Simpre curiosidad sobre manejo de API's
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Simpre curiosidad sobre manejo de API's  (Leído 1,433 veces)
Webagent007

Desconectado Desconectado

Mensajes: 61


La vida son dos dias...Carpe Diem!!!


Ver Perfil
Simpre curiosidad sobre manejo de API's
« en: 1 Junio 2006, 23:28 pm »

Public Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal lpszAgent As String, ByVal dwAccessType As Long, ByVal lpszProxyName As String, ByVal lpszProxyBypass As String, ByVal dwFlags As Long) As Long

Pues eso, cuando me pongo a programar usualmente "googleo" para buscar el api, y de ser posible algunos ejemplos....pero alguien sabe asi, al dedo qué significaría "lpszAgent" o "dwAccessType" para con solo ver la api poder declarar las variables? (y por ende usar la api)

no se.....seria interesante no depender del  google xDD


En línea

<--v1c1ous-->


Desconectado Desconectado

Mensajes: 776


¡Operadora! ¡Deme el número para el 911! - Homero


Ver Perfil WWW
Re: Simpre curiosidad sobre manejo de API's
« Respuesta #1 en: 2 Junio 2006, 06:12 am »

¿No depender de Google pero si de las personas de un Foro?

lpszAgent:
Pasa seleccionar la cadena a pasar durante la llamada.

dwAccessType:
Para determinar si vas a usar conexión directa o por proxy.


En línea


scod

Desconectado Desconectado

Mensajes: 14



Ver Perfil
Re: Simpre curiosidad sobre manejo de API's
« Respuesta #2 en: 5 Junio 2006, 02:00 am »

bajate el apiguide de allapi.net ;)

y aqui un poco mas de info
Citar
· lpszAgent
Address of a string that contains the name of the application or entity calling the Internet functions (for example, Microsoft Internet Explorer). This name is used as the user agent in the HTTP protocol.

· dwAccessType
Type of access required. Can be one of these values:
INTERNET_OPEN_TYPE_DIRECT
Resolve all host names locally.
INTERNET_OPEN_TYPE_PROXY
Pass requests to the proxy unless a proxy bypass list is supplied and the name to be resolved bypasses the proxy. In this case, the function proceeds as for INTERNET_OPEN_TYPE_DIRECT.
INTERNET_OPEN_TYPE_PRECONFIG
Retrieve the proxy or direct configuration from the registry.

· lpszProxyName
Address of a string that contains the name of the proxy server (or servers) to use if proxy access was specified. If this parameter is NULL, the function reads proxy information from the registry. For more information about this parameter, see the comments below.

· lpszProxyBypass
Address of an optional list of host names or IP addresses, or both, that are known locally. Requests to these names are not routed through the proxy. The list can contain wildcards, such as "157.55.* *int*", meaning any IP address starting with 157.55, or any name containing the substring "int", will bypass the proxy.
If this parameter specifies the "<local>" macro as the only entry, the function bypasses any host name that does not contain a period. For example, "www.microsoft.com" would be routed to the proxy, whereas "internet" would not.
If this parameter is NULL, the function reads the bypass list from the registry.

· dwFlags
Flag that indicates various options affecting the behavior of the function. Can be a combination of these values:
INTERNET_FLAG_OFFLINE
Satisfy download operations on this handle through the persistent cache only. If the item does not exist in the cache, the function returns an appropriate error code.
INTERNET_FLAG_ASYNC
Future operations on this handle may fail with ERROR_IO_PENDING. A status callback will be made with INTERNET_STATUS_REQUEST_COMPLETE. This callback will be on a thread other than the one for the original request. A status callback routine must be registered or the functions will be completed synchronously.

salutes :D
En línea

yeah,.. weeeell,...

not now,... u_u,... soon my webpage,... just dont know how soon xD
Webagent007

Desconectado Desconectado

Mensajes: 61


La vida son dos dias...Carpe Diem!!!


Ver Perfil
Re: Simpre curiosidad sobre manejo de API's
« Respuesta #3 en: 8 Junio 2006, 02:09 am »

coñio, el ejemplo era para hacerlo mas ilustrativo..... :P

si sé lo que significan, solamente me preguntaba si alguno de ustedes en vez de "lpValueName" supiera que se va a introducir un  "valor Numerico" o algo asi
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
consulta sobre Funciones de manejo de errores [c++] « 1 2 »
Programación C/C++
xkiz ™ 10 6,682 Último mensaje 11 Octubre 2011, 06:24 am
por Karman
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines