Custom shell - shortcut?

F

frednorge

Greetings,

Im about to create a custom shell including Mediaportal. My question is:
Is it possible to run the Mediaportal setup from FBA and then just have a
custom shell to start the Mediaportal - or do i have to create a complete
component of Mediaportal with all files, registry settings etc.?

Thanks for any help.
 
S

Sean Liming \(MVP\)

You can have a shell launch an application. This can be a good thing since
you can include a signal to the kernel the shell is launch, which gets
around a long timeout.

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
F

frednorge

Thanks Sean,

i have done this sucessfully (i went ahead and tried it), but im also
curious about what you mean by "signal to the kernel"

Regards
 
S

Sean Liming \(MVP\)

Hopefully the code will be posted correctly. Basically it is the
ShellReadyEvent


if( !SetShellReadyEvent("msgina: ShellReadyEvent") )
SetShellReadyEvent("Global\\msgina: ShellReadyEvent");

bool SetShellReadyEvent(const char *eventName)
{
HANDLE hEvent = OpenEvent(EVENT_MODIFY_STATE, FALSE, eventName);

if( !hEvent )
return false;

SetEvent(hEvent);
CloseHandle(hEvent);
return true;
}


--
Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
 
F

frednorge

Dear Sean,

That was a bit over my head :). I have googled "ShellReadyEvent", but could
you be so kind to point me in the right direction? Where exactly do i
find/put this code?

Im using minlogon in my runtime.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top