Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1169
  • Last Modified:

Help with wininet (INTERNET_OPTION_MAX_CONNS_PER_SERVER)

HI.
I use wininet library to set max connections per server.
I'm using InternetSetOption(nil,INTERNET_OPTION_MAX_CONNS_PER_SERVER,@ci, SizeOf(ci))
 function but delphi compliler give me this error: "Undeclared identirier INTERNET_OPTION_MAX_CONNS_PER_SERVER".
INTERNET_OPTION_MAX_CONNS_PER_SERVER doesn't exist in wininet.pas

How can i solve this problem.
Thank you . Nikola
0
nikola_mk
Asked:
nikola_mk
1 Solution
 
Lee_NoverCommented:
0
 
LRHGuyCommented:
Add to your code:

const
  INTERNET_OPTION_MAX_CONNS_PER_SERVER=73;
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now