start MT4 with CreateProcess pops up login dialog

 

Hello,

i'd like to start MT4 from an application using CreateProcess.

If doing so, my MT4 always pops up with login dialog missing password.

When starting from desktop, all is ok.

When starting from command line, all is ok.

Setting working directory to MT4 folder or not makes no difference: login dialog pops up.

Always.

My application is started with admin privileges.

What can i do in order to start MT4 programmatically with CreateProcess without login trouble.

Thank you

Reason: