Hi There, Does anyone know the code or have ideas on how to kick off an exe using visual c++ 2005.
The environment the dll is on if Windows Mobile. The c# to do this using P/Invoke is
[DllImport("coredll.Dll")] private static extern int CreateProcess(string strImageName, string strCmdLine, IntPtr pProcessAttributes, IntPtr pThreadAttributes , int bInheritsHandle, int dwCreationFlags, IntPtr pEnvironment, IntPtr pCurrentDir, Byte[] bArray, ProcessInfo oProc);
//c# Code to start .exe CreateProcess("\Program Files\myprogram\myprogram.exe.exe", "", IntPtr.Zero, IntPtr.Zero, 0, 0, IntPtr.Zero, IntPtr.Zero, new Byte[128], pi);
The reason I need it in C++ is because I am forced to use a native dll to carry out pre and post intit checks etc when running a custom cab installer.
Your thoughts are much appreciated. Tony