
Start Min not showing when running from Today Plugin
The problem turns out to be in the WaitForSingleObject(). If i added it the
title bar doesn't show up if i remove it the process runs perfectly. What
might the problem be?
if (!::CreateProcess(TEXT(\\Windows\\TestApp.exe),
NULL, NULL, NULL, FALSE, 0, NULL, NULL, NULL, &sProc))
{
return FALSE;
Quote:
}
if(WaitForSingleObject(sProc.hProcess, INFINITE) == WAIT_FAILED)
{
MessageBox(NULL, TEXT("Error"), TEXT("INFO"), MB_OK | MB_SETFOREGROUND);
}
else
{
CloseHandle(sProc.hProcess);
CloseHandle(sProc.hThread);
}
1) I need to wait on the application till it's done so that i can gather
info from it... so what can a work around be?
2) One more question, if i try to do any kind of processing, like getting
value from the registry while processing
WM_TODAYCUSTOM_QUERYREFRESHCACHE in the today dll it usually acts very
strange, y is that or i am not suppose to process anything here except the
resize of the window?
thx
Quote:
> How do you run your app? And is it possible that the app is not just run
but
> is just brought to foreground since it was run before?
> --
> Sincerely,
> Alexander
> http://www.RSDN.ru - Russian Software Developer Network
> > Hi All,
> > I wrote a today plug-in and everytime i run an application by clicking
on
> > the plug-in, it doesn't show the title or the smart min buton on top of
> the
> > screen, it keeps showing the start button.
> > anyone knows why is that?
> > Thanks
> > Mustafa