Doc of the function : BrowserWindow's doc
After reading the doc a question remain: "WTF are the callback parameters !?" To answer the question we need to dig into Electron source code and we found that: Native call to callback function
hell yeah the function signature is :
hookWindowMessage(Buffer, Buffer)