EXE UID

Login to reply to this topic.
Thu, 2008-08-21 09:24
Joined: 2007-08-26
Forum posts: 59

EXE's UID
__WINS_UID(0x1000007a,0x00000000,0x00000000)

Why the last UID is 0x00000000.

This is my EXE's uid. I need to pass the exe uid to autostart.mdl (const TUid starter_uid= { 0x00000000 };) code so that the EXE runs on startup.

/* Autostart.mdl */

void CclAutostart::StartAppThreadFunctionL()
{
#ifdef __WINS__
const TUid starter_uid= { 0x00000000 };
RApaLsSession ls;
User::LeaveIfError(ls.Connect());
CleanupClosePushL(ls);
_LIT(filen, ""); // dummy
TThreadId dummy;
User::LeaveIfError( ls.StartDocument(filen, starter_uid, dummy) );
CleanupStack::PopAndDestroy();
#else
TFileName fnAppPath = _L("\\system\\apps\\readappt\\readappt.exe");
RProcess server;

CleanupClosePushL(server);
User::LeaveIfError(server.Create(fnAppPath, _L("")));
server.Resume();

CleanupStack::PopAndDestroy();
#endif

Can i pass the EXE UID like this to the MDL code
const TUid starter_uid= { 0x00000000 };


Thu, 2008-08-21 11:52
Joined: 2004-10-07
Forum posts: 47
Re: EXE UID

Hi Amit,
Why do you want to pass UID?


Thanks & Regards,
Symbi

Thu, 2008-08-21 11:59
Joined: 2007-08-26
Forum posts: 59
Re: EXE UID

Hi,

The MDL code needs the UID to be passed so that it can be registered for start on boot.

Can we do it without passing the UID .... ??

Regards,
Amit

Thu, 2008-08-21 13:07
Joined: 2004-10-07
Forum posts: 47
Re: EXE UID

Are you developing auto start application?... if so then which version are u using?


Thanks & Regards,
Symbi

Thu, 2008-08-21 13:18
Joined: 2007-08-26
Forum posts: 59
Re: EXE UID

ya, i want the EXE to start-on-boot.

I'm working on S602nd edition OS 8.1(a)FP3.

Thu, 2008-08-21 13:42
Joined: 2004-10-07
Forum posts: 47
Re: EXE UID

Have you try this on device... because in your code there are to section..
#ifdef __WINS__
// this for emulator
else
// this is for device
#endif
I don't have idea about WINS that is emulator... but UID not required for target devices.
Therefore please check on device..


Thanks & Regards,
Symbi

Thu, 2008-08-21 14:20
Joined: 2007-08-26
Forum posts: 59
Re: EXE UID

ya i am testing it on device itself (N70). You can not test it on emulator anyways.

Fri, 2008-08-22 05:08
Joined: 2004-10-07
Forum posts: 47
Re: EXE UID

Ok.. that is your problem.. You are not using UID of the application only specifying application path right in else block.
If you’re trying to make background services then create server exe and run server in background


Thanks & Regards,
Symbi

Fri, 2008-08-22 06:22
Joined: 2007-08-26
Forum posts: 59
Re: EXE UID

Ok.. that is your problem.. You are not using UID of the application only specifying application path right in else block.
If you’re trying to make background services then create server exe and run server in background

Can you explain on creating server exe a bit more.

  • Login to reply to this topic.