Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: about hook some windows Pin
Naveen2-Mar-06 21:00
Naveen2-Mar-06 21:00 
GeneralRe: about hook some windows Pin
FlyWithYou2-Mar-06 21:14
FlyWithYou2-Mar-06 21:14 
GeneralRe: about hook some windows Pin
Naveen2-Mar-06 21:43
Naveen2-Mar-06 21:43 
GeneralRe: about hook some windows Pin
FlyWithYou3-Mar-06 0:02
FlyWithYou3-Mar-06 0:02 
QuestionSilent Code Signing? Pin
Peter Weyzen2-Mar-06 19:38
Peter Weyzen2-Mar-06 19:38 
AnswerRe: Silent Code Signing? Pin
Michael Dunn2-Mar-06 20:21
sitebuilderMichael Dunn2-Mar-06 20:21 
GeneralRe: Silent Code Signing? Pin
Peter Weyzen2-Mar-06 20:46
Peter Weyzen2-Mar-06 20:46 
GeneralRe: Silent Code Signing? Pin
Peter Weyzen2-Mar-06 21:52
Peter Weyzen2-Mar-06 21:52 
I found this handy program on the net....

int _tmain(int argc, _TCHAR* argv[])
{
  if ( argc != 2 )
  {
    printf( "SignHelper CommandLine: SIGNHELPER {private-key-password}\n");
    return -1;
  }

  char *pwd = argv[1];

  // Password for auto-filling Signcode.exe's password dlg
  #define SIGNCODE_DLG_TITLE "Enter Private Key Password"

  BOOL fPwdSet = FALSE;
  while(TRUE)
  {
    // Try to find Signcode's dialog
    HWND hDlg = ::FindWindow("#32770", SIGNCODE_DLG_TITLE);
    if(hDlg)
    {
      // Find the pwd edit box and the OK button
      HWND hEdit = ::GetDlgItem(hDlg, 0x1F5);
      HWND hOK = ::GetDlgItem(hDlg, IDOK);
      if(hEdit && hOK)
      {
        // In Win32 you can't do a WM_SETTEXT to a wnd in another process.
        // Instead, "type" the passwd, char by char, to the pwd edit box
        LPCSTR psPwChar = pwd;
        while(*psPwChar)
         {
           ::PostMessage(hEdit, WM_CHAR, *psPwChar, 0);
           psPwChar++;
         }

         // Now "click" the pwd dlg's OK button
         ::PostMessage(hOK, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(3,3));
         ::PostMessage(hOK, WM_LBUTTONUP, 0, MAKELPARAM(3,3));

        fPwdSet = TRUE;
      }
    }

    // Don't hog the CPU while we're waitingto find the dlg
    Sleep(100);
  }
}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>


-- modified at 3:52 Friday 3rd March, 2006
GeneralRe: Silent Code Signing? Pin
DoctorEd5-Mar-06 9:46
DoctorEd5-Mar-06 9:46 
QuestionFail to set profile on Windows Media Video Image Pin
Kin Tutnik2-Mar-06 19:33
Kin Tutnik2-Mar-06 19:33 
QuestionColor to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:30
RockyJames2-Mar-06 19:30 
AnswerRe: Color to Static Control (Urgent pls) Pin
Ryan Binns2-Mar-06 19:33
Ryan Binns2-Mar-06 19:33 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:38
RockyJames2-Mar-06 19:38 
GeneralRe: Color to Static Control (Urgent pls) Pin
Naveen2-Mar-06 19:48
Naveen2-Mar-06 19:48 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:53
RockyJames2-Mar-06 19:53 
GeneralRe: Color to Static Control (Urgent pls) Pin
Naveen2-Mar-06 20:34
Naveen2-Mar-06 20:34 
AnswerRe: Color to Static Control (Urgent pls) Pin
Malli_S2-Mar-06 19:56
Malli_S2-Mar-06 19:56 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 20:05
RockyJames2-Mar-06 20:05 
GeneralRe: Color to Static Control (Urgent pls) Pin
Malli_S2-Mar-06 20:18
Malli_S2-Mar-06 20:18 
AnswerRe: Color to Static Control (Urgent pls) Pin
Cool Ju2-Mar-06 20:21
Cool Ju2-Mar-06 20:21 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 20:53
RockyJames2-Mar-06 20:53 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 21:31
RockyJames2-Mar-06 21:31 
AnswerRe: Color to Static Control (Urgent pls) Pin
David Crow3-Mar-06 4:43
David Crow3-Mar-06 4:43 
AnswerRe: Color to Static Control (Urgent pls) Pin
DoctorEd5-Mar-06 10:12
DoctorEd5-Mar-06 10:12 
QuestionC2491 Error Pin
subramanyeswari2-Mar-06 19:04
subramanyeswari2-Mar-06 19:04 

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.