Unable to execute C#.net exe in c++ code

Hi,

I kept one button on XP Gina logon screen and am trying to execute an c#.net windows Form exe using that button,when i pressed this button it should show one window form on screen
i used this code

ShellExecute(NULL, NULL, L"C:\\WINDOWS\\system32\\ReadFile.exe", NULL, NULL, SW_SHOWNORMAL);

where ReadFile.exe is made in c#.net , when i pressed that button then it unable to show that windows form

i tried to execute cmd.exe also but its not showing that cmd windows also

i used system("start C:\\WINDOWS\\system32\\cmd.exe"); also but unable to show command window.
i also used CreateProcess() to execute this exe this,
in this exe i write one code to delete one off registry is able to delete that registry but its unable to show that windows form on login screen after pressing that button .

please tell me how can i execute an external exe in XP gina code that code for Gina i download from http://msdn.microsoft.com/en-us/magazine/cc163786.aspx here.

please tell me ...... if there are any solution to execute an external exe
You probably need CreateProcessAsUser() function, but I don't think the external process will be created in interactive desktop (winsta0\default).
Topic archived. No new replies allowed.