locked
Custom GINA RRS feed

  • Question

  • Hi!

    i am creating custom gina (for touchscreens with on screen keyboard, company logo etc), based on the Gina hook example from platform SDK. All calls from Winlogon i pass to msgina.dll, and when msgina calls WlxDialogBoxParam, i display my own dialogs.

    I have a problem with logon dialog. It is displayed this way:

     

     

    switch ((DWORD) lpszTemplate)
       {
    	 case 1500:
         {
    			 LOG(L" IDD_WLXLOGGEDOUTSAS_DIALOG - ID: %d",(DWORD) lpszTemplate);
          pfWlxLoggedOutSASDlgProc = dlgprc;
    			int res = pfWlxDialogBoxParam(hWlx, GetMyInstance(), MAKEINTRESOURCE(IPTC_IDD_LOGON), hwndOwner, MyWlxLoggedOutSASDlgProc, dwInitParam);
    			LOG(L"pfWlxDialogBoxParam(101) returned %d",res);
    			if(res==-1)LOG(L"failed: %d", GetLastError());
    
    			return res;
    			break;
         }

    It displays, i am able to use on screen keyboard to enter name, password, domain, but when i press OK button, dialog is closed, but then nothin happens, even the log line LOG(L"pfWlxDialogBoxParam(101) returned %d",res); is not executed. If cancel is pressed, it is ok.

    MyWlxLoggedOutSASDlgProc contains this:

     

    switch (LOWORD(wParam)) {
    
    		case IDOK:
    			LOG(L"IDOK!!!");         
                res = EndDialog(hwndDlg, IDOK);
    			LOG(L"res: %d",res);
              break;
            case IDCANCEL:
    			LOG(L"IDCANCEL!!!");
    res = EndDialog(hwndDlg, IDCANCEL); LOG(L"res: %d",res);
    break;

     

    Another problem is - if username, password, domain are filled in my logon dialog, how pass i these values to msgina so user can be authenticated??

    Thanks a lot for help,

    Tomas

     

    • Moved by Yi Feng Li Friday, April 23, 2010 5:21 AM Security issue (From:Visual C++ General)
    Wednesday, April 21, 2010 10:37 AM

All replies

  •  try the Security for Applications in Microsoft Windows forum instead

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    Wednesday, April 21, 2010 5:08 PM
  • Hello,

    I am moving this thread from Base “Visual C++ General" forum to the “Security for Applications in Microsoft Windows” forum, since the issue is related to Security for Applications. There are more experts in the “Security for Applications in Microsoft Windows" forum.

    Cheers

    Yi Feng Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, April 23, 2010 5:18 AM