Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the header file WinINet.mqh in MT4 #3

Open
SakshamSolanki09 opened this issue Apr 17, 2024 · 1 comment
Open

Using the header file WinINet.mqh in MT4 #3

SakshamSolanki09 opened this issue Apr 17, 2024 · 1 comment

Comments

@SakshamSolanki09
Copy link

Hi Is there any way this would work if I just used "WinINet/1.6" for user agent as I am using this in mt4 and the only part not working is:

TerminalInfoString(TERMINAL_OS_VERSION)," TerminalInfoString(TERMINAL_CPU_NAME),
Since MQL4 does not support those constants.
I tried changing it to following but to no avail.

string GetUserAgent() { return StringFormat( "%s/%d (%s; %s; %s %d Cores; %dMB RAM) WinINet/1.6", TerminalInfoString(TERMINAL_NAME), TerminalInfoInteger(TERMINAL_BUILD), "Windows NT 10.0; Win64", TerminalInfoInteger(TERMINAL_X64) ? "x64" : "x32", "amd64", TerminalInfoInteger(TERMINAL_CPU_CORES), TerminalInfoInteger(TERMINAL_MEMORY_PHYSICAL) ); }

any help is highly appreciated thanks alot.

@DevLucem
Copy link

DevLucem commented Nov 7, 2024

Did you manage to solve this @SakshamSolanki09?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants