Subversion Repositories WoWGM

Rev

Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 32
Line 9... Line 9...
9
    EnableSeDebugPrivilege();
9
    EnableSeDebugPrivilege();
10
 
10
 
11
    ExtractResource(hInstance, DLL_RESOURCEID, DLL_FILENAME);
11
    ExtractResource(hInstance, DLL_RESOURCEID, DLL_FILENAME);
12
 
12
 
13
    PROCESS_INFORMATION processInformation = CreateWowProcess(GetCommandLine());
13
    PROCESS_INFORMATION processInformation = CreateWowProcess(GetCommandLine());
14
	Sleep(2000);
14
	  //Sleep(10000);
15
    InjectDLL(processInformation.dwProcessId);
15
    InjectDLL(processInformation.dwProcessId);
16
 
16
 
17
    // Wait for the client to exit and clean up...
17
    // Wait for the client to exit and clean up...
18
    WaitForSingleObject(processInformation.hProcess, INFINITE);
18
    WaitForSingleObject(processInformation.hProcess, INFINITE);
19
    DeleteFile(DLL_FILENAME);
19
    DeleteFile(DLL_FILENAME);