Description: Make the RDP can save the password after system reboots.

STEP:

Add Password Checkbox.

1. Copy res file from C:\WINCE420\PUBLIC\RDP\OAK\UIT\CETSC\RES into C:\WINCE420\PUBLIC\RDP\OAK\UIT\CETSC\UI
2. Open tscui.res with Platform Builder
3. Remove Logon Settings Group Box. If you do not do that, the following check box will be hiding below Group Box.
4. Add one Check Box into IDD_PROPPAGE_GENERAL as showed below.

  

5. Re-add the Group Box.

 

6. Save the modifications.
7. Open the C:\WINCE420\PUBLIC\RDP\OAK\UIT\CETSC\BASE\mainwnd.cpp file. And go to line 948 for removing the operation of deleting password.

                DWORD dwType, dwVal, dwDefVal=0, dwSize = sizeof(DWORD);

                if ( (!_pSettings->Read(PROP_SAVEPASSWORD, &dwType, (PBYTE)&dwDefVal, (PBYTE)&dwVal, &dwSize)) ||

                        (dwType != REG_DWORD) || (dwSize != sizeof(DWORD)) || (dwVal != 1)  )

                {

                        _pSettings->Delete(PROP_CLEARTEXTPASSWORD);

                }

                _pSettings->Delete(PROP_SAVEPASSWORD);

8. Open one project, and compile the CETSC code in C:\WINCE420\PUBLIC\RDP\OAK\UIT\CETSC\.
9. Sysgen the CETSC by following instruction.

Sysgen –p RDP cetsc

10. You will get one cetsc.exe that can save password with xxx.rdp file.

 

Build an Image that supports saving password function of RDP.

  1. New a Platform with RDP features
  2. Add Hive-base Registry
  3. Add MFC feature into your Image
  4. Build the OS Image
  5. Make the OS Image again

Setup RDP Autologon at startup.

  1. Double Click the Remote Desktop Connection and Click Options
  2. Fill out the General tab with correct information for RDP server. Make sure you check the “Save my password” checkout

 

        

   3. Click the “Save As…” and save this .rdp file in your disk. 

 

文章標籤
全站熱搜
創作者介紹
創作者 ethanchen1108 的頭像
ethanchen1108

Windows Embedded

ethanchen1108 發表在 痞客邦 留言(0) 人氣(855)