'WindowHandle' - undeclared identifier

 
Hey

This is my MQL5 code which I have this strange error when using WindowHandle

#include <WinUser32.mqh>
#import "wininet.dll"

#import "user32.dll"
int GetAncestor(int,int);
int GetLastActivePopup(int);
int GetDlgItem(int,int);
int GetParent(int hWnd);
#import

#include <WinUser32.mqh>
#import "kernel32.dll"
   int CreateFileW(string, uint, int, int, int, int, int);
   int GetFileSize(int, int);
   int ReadFile(int, uchar&[], int, int&[], int);
   int CloseHandle(int);
#import

void OnStart(){
      int hWnd = WindowHandle(Symbol(), Period());

}


this code works fine in mql4
but I am getting this error in mql5 and I have no idea why?

 
albert1990_Za: but I am getting this error in mql5 and I have no idea why?

Because there is no such function in MT5.

Stop trying to write outside the sandbox and use the provided file functions.

Reason: