Click here to Skip to main content
15,917,795 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Problem with SELECT DISTINCT Queries Pin
João Paulo Figueira21-Apr-03 1:07
professionalJoão Paulo Figueira21-Apr-03 1:07 
GeneralDDI Hooking Pin
vikramlinux15-Apr-03 20:16
vikramlinux15-Apr-03 20:16 
GeneralCCeCommandBar isn't shown Pin
Niko Tanghe15-Apr-03 10:18
Niko Tanghe15-Apr-03 10:18 
GeneralRe: CCeCommandBar isn't shown Pin
João Paulo Figueira15-Apr-03 13:06
professionalJoão Paulo Figueira15-Apr-03 13:06 
GeneralCaptureing CFormView Pin
schmallaria15-Apr-03 2:31
schmallaria15-Apr-03 2:31 
GeneralRe: Captureing CFormView Pin
Daniel Strigl15-Apr-03 19:54
Daniel Strigl15-Apr-03 19:54 
GeneralSet theme / wallpaper Pin
João Paulo Figueira14-Apr-03 6:35
professionalJoão Paulo Figueira14-Apr-03 6:35 
GeneralAnd the answer is... Pin
João Paulo Figueira16-Apr-03 3:30
professionalJoão Paulo Figueira16-Apr-03 3:30 
Sorry for replying to my own post, but I found an answer for this. Here is the code:
PROCESS_INFORMATION pi;
CString         strCmdLine(_T("/safe /noui /nouninstall /delete 0 ")),
            strFile;
HKEY    hKey;
LONG    lRet;

m_edtFile.GetWindowText(strFile);
strCmdLine += strFile;

if(::CreateProcess(_T("\\Windows\\wceload.exe"),
            strCmdLine, NULL, NULL, FALSE, 0, NULL, NULL, NULL, &pi))
{
    ::WaitForSingleObject(pi.hProcess, INFINITE);

    lRet = RegOpenKeyEx(HKEY_CURRENT_USER, _T("\\Software\\Microsoft\\Today"), 0, 0,
                        &hKey);
    if(ERROR_SUCCESS == lRet)
    {
        RegSetValueEx(hKey, _T("Skin"), 0, REG_SZ, (BYTE*)(LPCTSTR)strFile,
                sizeof(TCHAR) * (strFile.GetLength() + 1));

        RegCloseKey(hKey);

        ::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
    }
}

Note: strFile contains the full path name of the .tsk file. No reset is needed.
GeneralRe: And the answer is... Pin
J. Dunlap16-Apr-03 8:52
J. Dunlap16-Apr-03 8:52 
GeneralRe: And the answer is... Pin
Daniel Strigl18-Apr-03 0:16
Daniel Strigl18-Apr-03 0:16 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 1:25
professionalJoão Paulo Figueira19-Apr-03 1:25 
GeneralRe: And the answer is... Pin
Daniel Strigl19-Apr-03 6:36
Daniel Strigl19-Apr-03 6:36 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 6:49
professionalJoão Paulo Figueira19-Apr-03 6:49 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 12:55
professionalJoão Paulo Figueira19-Apr-03 12:55 
GeneralBug Correction Pin
João Paulo Figueira19-Apr-03 12:54
professionalJoão Paulo Figueira19-Apr-03 12:54 
GeneralRe: Bug Correction Pin
Daniel Strigl20-Apr-03 2:54
Daniel Strigl20-Apr-03 2:54 
QuestionHow to make an Automation Server in Embedded Visual C++ Pin
frankwer11-Apr-03 6:19
frankwer11-Apr-03 6:19 
GeneralSaving all the content of PPC2002 emulator's memory Pin
Jose M Castellanos11-Apr-03 4:34
Jose M Castellanos11-Apr-03 4:34 
GeneralRe: Saving all the content of PPC2002 emulator's memory Pin
João Paulo Figueira11-Apr-03 5:11
professionalJoão Paulo Figueira11-Apr-03 5:11 
Generalsharing code between a WinCE and windows application Pin
majoob7-Apr-03 5:13
majoob7-Apr-03 5:13 
GeneralRe: sharing code between a WinCE and windows application Pin
Anonymous11-Apr-03 19:11
Anonymous11-Apr-03 19:11 
GeneralMultiple property sheet with a global toolbar Pin
mengi7-Apr-03 0:01
mengi7-Apr-03 0:01 
Question How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 4:32
Daniel Strigl5-Apr-03 4:32 
AnswerRe: How to show the SIP automaticly at startup? Pin
João Paulo Figueira5-Apr-03 6:10
professionalJoão Paulo Figueira5-Apr-03 6:10 
GeneralRe: How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 23:00
Daniel Strigl5-Apr-03 23:00 

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.