1. C constants
- Posted by isaac <isaaca at MINDSPRING.COM>
Nov 15, 1998
-
Last edited Nov 16, 1998
Is there a function which would return the value of a C constant defined in
a .dll? When faced with:
dwAccessType=20
Type of access required. Can be one of the following values:=20
INTERNET_OPEN_TYPE_DIRECT=20
Resolves all host names locally.=20
INTERNET_OPEN_TYPE_PRECONFIG=20
Retrieves the proxy or direct configuration from the
registry.=20
INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY=20
Retrieves the proxy or direct configuration from the
registry and prevents the use of a startup JScript=AE
(compatible with ECMA 262 language specification) or
Internet Setup (INS) file.=20
INTERNET_OPEN_TYPE_PROXY=20
Passes 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 uses
INTERNET_OPEN_TYPE_DIRECT.=20
I don't know what to feed c_func(). Is there a way to pass C constants or
get their values?
TIA
Isaac
2. Re: C constants
- Posted by David Cuny <dcuny at LANSET.COM>
Nov 15, 1998
-
Last edited Nov 16, 1998
Isaac wondered:
> Is there a function which would return the value of a C
> constant defined in a .dll?
I'm under the impression that the *names* of the constants are not part of
the DLL, in the same way that the variable names are discarded from a
compiled program. I couldn't find the constants in the VB API help file.
Maybe they are out on the Internet somewhere?
-- David Cuny
3. Re: C constants
I've got some experience in programming .dll files and only what you declare
to be used outside the .dll can be accessed.
A. Weeden
4. Re: C constants
>Is there a function which would return the value of a C constant defined in
>a .dll? When faced with:
No. Dll can export functions/procedures.
The value of this constants are defined on thoe .h files you find everywhere
on a SDK.
Regards,
Daniel Berstein
daber at pair.com
5. Re: C constants
>The value of this constants are defined on thoe .h files you find everywhere
>on a SDK.
>
>Regards,
> Daniel Berstein
> daber at pair.com
Thanks, Daniel and others. I managed to find some of what I was looking
for, specifically a copy of winsock.h in win32.hlp.