I have a service that needs to call a batch when a new file is copied to a directory. I tried using CreateProcess, ShellExecute, ShellExecuteEx>
CreateProcess
ShellExecute
ShellExecuteEx>
Go to run->services.msc->right click on the service ->properties-> logon->check enable service to interact with desktop-make it enable