CreateProcess () завершается с ошибкой доступа [duplicate]

This question already has an answer here:

Unhandled Error with CreateProcess [duplicate] 2 answers

Моя цель - выполнить внешний исполняемый файл в моей программе. Во-первых, я использовалsystem() функции, но я не хочу, чтобы консоль была видна пользователю. Итак, я немного искал и нашелCreateProcess() функция. Однако, когда я пытаюсь передать ему параметр, я не знаю, почему он не работает. Я взял этот код из MSDN и немного изменил:

#include <windows.h>
#include <stdio.h>
#include <tchar.h>

void _tmain( int argc, TCHAR *argv[] )
{
    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &pi, sizeof(pi) );
    /*
    if( argc != 2 )
    {
        printf("Usage: %s [cmdline]\n", argv[0]);
        return;
    }
    */
    // Start the child process. 
    if( !CreateProcess( NULL,   // No module name (use command line)
        L"c:\\users\\e\\desktop\\mspaint.exe",        // Command line
        NULL,           // Process handle not inheritable
        NULL,           // Thread handle not inheritable
        FALSE,          // Set handle inheritance to FALSE
        0,              // No creation flags
        NULL,           // Use parent's environment block
        NULL,           // Use parent's starting directory 
        &si,            // Pointer to STARTUPINFO structure
        &pi )           // Pointer to PROCESS_INFORMATION structure
    ) 
    {
        printf( "CreateProcess failed (%d).\n", GetLastError() );
        return;
    }

    // Wait until child process exits.
    WaitForSingleObject( pi.hProcess, INFINITE );

    // Close process and thread handles. 
    CloseHandle( pi.hProcess );
    CloseHandle( pi.hThread );
}

Тем не менее, этот код создал нарушение доступа как-то. Могу ли я выполнить mspaint, не показывая пользователю консоль?

Большое спасибо.