Notification when CommManager run

G

Guest

Hello, i need to secure the CommManager.exe on my WM5 mobile. I need to write
in unmanaged code VC++ an application that receive a callback event from an
CommManager start-process notification and manage process (run or kill it)
with a password request.

Is possible?

Thanks in advance.
 
P

Paul G. Tobey [eMVP]

Unless you are the device OEM, there's not really any way to be in the call
stack when a new process is started. You could, I suppose, use the ToolHelp
functions to poll for the creation of a process with the EXE name of the
manager program and, when you detect that, pop up a full-screen, top-most
dialog and ask for the password. You're going to be using a lot of cycles
polling, though. You might be better off to build your own shell
application that would prevent any undesirable processes from being started
at all by the user (go into "kiosk mode").

Paul T.
 
G

Guest

Ok, so if i write my shell application..like wince service...how i can
prevent that CommManager.exe application run?
 
P

Paul G. Tobey [eMVP]

Think of yourself as the *only* program that the user can see. You show the
only user interface visible on the device. It's just your window, no start
menu, no desktop, no task bar, no system tray. Normally, you set your
window to run front-most and you disable and hide the task bar, preventing
Ctrl+Alt+Del and Alt+Tab sorts of things from doing anything and, since
you're in front, even the buttons on the outside of the device, though they
may launch programs, will not allow those programs to be seen, because your
window will be in front of them.

One of your program's features, then, will be some means of entering
Administrator Mode. When the user does that (you decide how that happens,
whether with a password, or a fingerprint scan or whatever), you change your
window's settings so that it's no longer forced to the front, and you
reenable and show the task bar. Now, the guy can do anything that he could
do normally on a Pocket PC device. When he's done with administrator mode,
he switches back to user mode and you hide and disable the task bar, again,
and make your window front-most, again.

Paul T.
 

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