Click here to Skip to main content
15,884,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can i get text color of title bar? Pin
VCProgrammer10-Feb-13 22:42
VCProgrammer10-Feb-13 22:42 
GeneralRe: Can i get text color of title bar? Pin
Richard MacCutchan10-Feb-13 23:01
mveRichard MacCutchan10-Feb-13 23:01 
GeneralRe: Can i get text color of title bar? Pin
VCProgrammer10-Feb-13 23:07
VCProgrammer10-Feb-13 23:07 
QuestionVisual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 14:55
ForNow10-Feb-13 14:55 
AnswerRe: Visual Studio 2010 optimized code bug Pin
«_Superman_»10-Feb-13 18:02
professional«_Superman_»10-Feb-13 18:02 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 19:03
ForNow10-Feb-13 19:03 
QuestionRe: Visual Studio 2010 optimized code bug Pin
bob1697210-Feb-13 19:32
bob1697210-Feb-13 19:32 
AnswerRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 19:49
ForNow10-Feb-13 19:49 
This is the next statement
strncpy(&herc_parm[0],&hercgui_addr,8);

I am running X64

I send thid address to child process

C++
return_code = CreateProcess((LPCSTR) &herc_command[0],    // command
                  (LPCSTR) &herc_parm[0],         // paramter
                              (LPCSTR) &sa,
                              NULL,
                              TRUE,
                              (DWORD) NULL,
                              NULL,
                              NULL,
                              &si,
                              &pi);



Later in the child process I Create a Remote thread with the parent

C++
   snap_shot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);

   process32.dwSize = sizeof(PROCESSENTRY32);

  return_cde =     Process32First(snap_shot,&process32);

   pid = GetCurrentProcessId();       // Get Current process id

      while(pid != process32.th32ProcessID)
 {
       return_cde = Process32Next(snap_shot,&process32);
 }

   herc_process = process32.th32ParentProcessID;


 my_herc  =  OpenProcess(PROCESS_ALL_ACCESS,FALSE,herc_process); // Get a Handle to
             if (my_herc == NULL)
                   errcd= GetLastError();

SECURITY_ATTRIBUTES sa;
LPVOID lparam; 
DWORD threadid;

        
               sa.nLength =  sizeof(sa);
               sa.lpSecurityDescriptor = NULL;
               sa.bInheritHandle = TRUE;

    lparam = NULL;

            CreateRemoteThread(my_herc,
                               &sa,
                               NULL,
                               (LPTHREAD_START_ROUTINE) hercgui,
                               lparam,
                               NULL,
                               &threadid);

AnswerRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan10-Feb-13 21:49
mveRichard MacCutchan10-Feb-13 21:49 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow11-Feb-13 17:17
ForNow11-Feb-13 17:17 
GeneralRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan11-Feb-13 22:10
mveRichard MacCutchan11-Feb-13 22:10 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow12-Feb-13 2:25
ForNow12-Feb-13 2:25 
Question__interface implies the novtable __declspec modifier Pin
bob169729-Feb-13 11:30
bob169729-Feb-13 11:30 
AnswerRe: __interface implies the novtable __declspec modifier Pin
H.Brydon9-Feb-13 18:35
professionalH.Brydon9-Feb-13 18:35 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 5:20
bob1697210-Feb-13 5:20 
AnswerRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti9-Feb-13 23:32
pasztorpisti9-Feb-13 23:32 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 6:03
bob1697210-Feb-13 6:03 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti10-Feb-13 10:45
pasztorpisti10-Feb-13 10:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 19:22
bob1697210-Feb-13 19:22 
GeneralRe: __interface implies the novtable __declspec modifier Pin
H.Brydon11-Feb-13 15:45
professionalH.Brydon11-Feb-13 15:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti12-Feb-13 4:53
pasztorpisti12-Feb-13 4:53 
QuestionAES Encryption Help Pin
vishalgpt7-Feb-13 23:21
vishalgpt7-Feb-13 23:21 
AnswerRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 0:34
mveRichard MacCutchan8-Feb-13 0:34 
GeneralRe: AES Encryption Help Pin
vishalgpt8-Feb-13 2:55
vishalgpt8-Feb-13 2:55 
GeneralRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 5:22
mveRichard MacCutchan8-Feb-13 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.