Question about kernel32.dll and MT5...

 
Hello, reading this article:
https://www.mql5.com/en/articles/115
on how to use named pipes, I noticed that on the file attached at the end of the article: cnamedpipes.mqh
direct link: http://p.mql5.com/data/2/115/cnamedpipes.mqh
there is an import of the library: kernel32.dll
and bellow of that there is one definition of the function: "WriteFile" as follows:
int WriteFile(int fileHandle, MqlTick & outgoing, int bytes, int &numOfBytes, int overlapped);

but, on the following page:
http://msdn.microsoft.com/en-us/library/aa365747%28v=vs.85%29.aspx

the "WriteFile" function doesn't have this signature, also, I think the type: "MqlTick" is MT5 specific,

so, I would like to know where the type MqlTick cames from, and by the way, that WriteFile function?

Thanks in advance, Cyberglassed.
A DLL-free solution to communicate between MetaTrader 5 terminals using Named Pipes
A DLL-free solution to communicate between MetaTrader 5 terminals using Named Pipes
  • 2010.07.01
  • investeo
  • www.mql5.com
The article describes how to implement Interprocess Communication between MetaTrader 5 client terminals using named pipes. For the use of the named pipes, the CNamedPipes class is developed. For the test of its use and to measure the connection throughput, the tick indicator, the server and client scripts are presented. The use of named pipes is sufficient for real-time quotes.
 
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices - Documentation on MQL5
 
thank you luenbo, but i would like to know where is defined the function:

int WriteFile(int fileHandle, MqlTick & outgoing, int bytes, int &numOfBytes, int overlapped);

with the MqlTick parameter inside?

kernel32.dll?, or somewhere?


thanks, Cyberglassed.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices
Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Structure for Current Prices - Documentation on MQL5