Keeping The OS From Killing My Application - Windows Mobile Development and Hacking General

Hi,
to access the camera I thought of the following:
1. CreateProcess("Camera.exe")
2. Wait for the process to exit
3. Get the new image vom "My Pictures"
The problem is that my program is closed by the system:
When I close camera.exe, my program (or Internet Explorer, if I run it as an ActiveX control) is closed.
Not only minimized, but *closed*.
Any idea?
Regards,
Marvin

Related

ActiveSync via Bluetooth link [solution]

I find this solution for running ActiveSync connected thru BT via one click. I tried it on my MDA Compact and it works.
Hope it helps.
http://www.mtekk.com.au/Forums/tabid/56/postid/14926/view/topic/Default.aspx
On the Pocket PC...
1. ActiveSync / Tools / Options... / Options... (yes options twice)
2. "When cradled Enable PC sync using this connection" 'Bluetooth
3. Startup an ActiveSync connection as you normally would...
4. Now setup a shortcut to the program "windows\repllog.exe" into the Start menu. To do this
a. open up Explore in ActiveSync
b. Go into My Pocket PC
c. Go into Windows folder
d. Find repllog.exe and right click and select copy
e. Go into the Start Menu folder (within Windows folder)
f. Right click, paste shortcut - rename to something like ActiveSync Direct
Back on the Pocket PC
5. Gracefully disconnect ActiveSync.
6. Start / Settings / Buttons
7. Choose Button 4
8. Set the button assignment as ActiveSync Direct (or whatever you called it above) and click OK
9. Reset your Pocket PC and wait about 15 seconds for everything to get loaded (esp. Bluetooth which takes a little while).
10. Press the top left side button. Voila! Easy!
If you get the ActiveSync - "Port Not Available" message, it just means that Bluetooth hasn't loaded yet. Tap OK, check that Bluetooth is activated and if so, try again.
Thanks for the post. Ive been having trouble getting this to work however.
1. ActiveSync / Tools / Options... / Options... (yes options twice)
2. "When cradled Enable PC sync using this connection" 'Bluetooth
3. Startup an ActiveSync connection as you normally would...
4. Now setup a shortcut to the program "windows\repllog.exe" into the Start menu. To do this
a. open up Explore in ActiveSync
b. Go into My Pocket PC
c. Go into Windows folder
d. Find repllog.exe and right click and select copy
Click to expand...
Click to collapse
Im using WM5, and firstly i dont have the option..option menu and secondly when i try to paste repllog it tells me that the file is copy protected or something like that.
Any ideas???
Help appreciated.....
Try to use Resco File Explorer instead of M$ Explorer. When you 'right click' on Windows/repllog.exe, there is 'Send To...' -> 'Start Menu as Shortcut' option in menu.
activesync has only com1!!!!!
hello pda masters!.i try to activesync my ipaq-2490, with usb,can sync.when i try to change com to sync by bluetooth, activesync has only com1, to choose.i have soft reset, my ipaq, (Xmany times), uninstall reinstall activesync 4.01, 4.02 (Xmany times).i eraze registry anfd reinstall, nothing.have you any idea? in the past i could sync by bluetooth, because activesync had com1,com2,com......., now has only com1.please help
sorry if i post in wrong thread, but i am new, and forgive my poor english, (i am from greece)
The best
http://forum.xda-developers.com/viewtopic.php?t=49136
IMHO
help with activesync only com1
every time i install bluetooth usb stack, it uses new com79, com80, now and i cannot sync over bt like i did before.
How can i delete those comports?in device manager under advanced in com1, tells me that from com2-com80 are in used.?????
Any idea, thanks
remove your stack from PC, then delete all com ports except 1 & 2 , use buttons windows + break & install stack again!
in properties of each ports set different com for example com1 , ignore errors , delete free changed one! do so with each wrong port
THANKS A LOT! PROBLEM WITH COM79,COM80,COM81......FIXED
thanx rustoss, you are BIG! i dont unplug usb stack even.....i just ignore all notifications and change my only COM1, to com5, and thats it!.i can activesync by bt again.thanks again :lol: :lol:

Program is not a valid Pocket PC application 'Help'

Hey everyone I got this 8525 from a friend he switched over to the Iphone for whatever reason anyways I work on an application that is java based. I have Pimp my Black v0.1 and HTweakc 2.1 on this phone. I went and download to my phone our application its a normal install wizard but when i try to run it I get that error "is not a valid Pocket PC application" I have turned on the Security Tweaks to allow non-certified applications. is there another application I can install to the phone that will allow me to run this java program?
if you make it jad extention i guess you can run it in a midlet manager

Application fails to re-activate

Hi
I'm executing my app on the device (WM5) . It runs ok, but when I'm trying to re-activate it after switching to other application - gives me this error:
"The application failed to load required components. If the .NET Compact Framework installed on a storage card........ Support Info: -2147479552 (80001000).
re-activate means that I use the "task manager" and select my app.
My application is placed under "My Documents" (does it matters?)
Any idea?
Thanks.
No Idea on how to solve it?
Solved
Kind'f solved - This is a bug between Samsung blackjzk and CF Freawaork 2.0,
Installing the Compact FW 3.5 on the device solved it.
http://forum.xda-developers.com/showthread.php?t=398571

Close all open programs

Hi All,
I have been looking for a tool that closes all open programs. I do not want a new task maneger but just an exe file that does the job.
I want to map this exe file in winsbar desktop to close all open programs. It should be just one press, no multiple actions.
Can anyone help me out?
Thanx Robert
After searching I have found:
Tascal Close All.
But it leaves Activisync running. Any other suggestions??
You could probably do this with Mortscript.
activesync cannot be closed while your device is connected via usb to your desktop.
you can try this prog. it works perfectly.
run the tool with the following parameter:
Code:
RegistrySetString.exe 4
egoist6 said:
activesync cannot be closed while your device is connected via usb to your desktop.
you can try this prog. it works perfectly.
run the tool with the following parameter:
Code:
RegistrySetString.exe 4
Click to expand...
Click to collapse
Hi,
Thanx for the advise, but when I try to run it, I get an error message saying that it is not comeplet. How do you run it?
Did you create a shortcut or did you do it in another way??
RobertdeHoop said:
Hi,
Thanx for the advise, but when I try to run it, I get an error message saying that it is not comeplet. How do you run it?
Did you create a shortcut or did you do it in another way??
Click to expand...
Click to collapse
you need to put that into a shortcut.
..#"\path\registrysetstring.exe" 4
replace .. by amount of letters incl. quotes (just in caser you're not familiar).
I am pretty sure Oxios Closeapps will do what you want, free download from here http://www.oxios.com/memory/
Thanks, but this shows the dialog box, which is an extra action. I am looking for a non visible application.

How to "attach" USB Tool and activate "Internet Sharing" automatically at startup ?

How to "attach" USB Tool and activate "Internet Sharing" automatically at startup ?
I "liberated" my XP downgraded HTC Shift and succesfully tested 3G connectivity.
The problem is that every time I restart the device, I have to:
1) enter WM
2) Attach device via USB Tool
3) Enable Internet sharing
As WM is an operating system, I guess how to do this automatically. Can I write a "bat" file to do these steps or do you have any advice to achieve this ?
Any help MUCh appreciated.
Regards.
joker197cinque said:
I "liberated" my XP downgraded HTC Shift and succesfully tested 3G connectivity.
The problem is that every time I restart the device, I have to:
1) enter WM
2) Attach device via USB Tool
3) Enable Internet sharing
As WM is an operating system, I guess how to do this automatically. Can I write a "bat" file to do these steps or do you have any advice to achieve this ?
Any help MUCh appreciated.
Regards.
Click to expand...
Click to collapse
go to wm -win start menu --settings--connection--ub to pc--enable advance network connectivity.
this should fix the problem, cheers
Unfortunately, it does not solve the problem.
I noticed that the only thing I have to do is to activate Internet Sharing.
How to do this at startup, automatically ? Has WinMo some autoexec file or startup folder ?
Thanks.
Up, please. I'm so near to surf only starting up my shift
Up. Up. Up. Up.
Yes I'm sure you can do all of that with Mort Script,
Good luck!
And don't forget to post your final results so other users would enjoy of that!
unapproachable2kx,
can you support me ?
Maybe you can just drop the shortcut for the application on the startup folder or maybe DotFred's TaskManager can help(http://www.dotfred.net/TaskMgr.htm).
wovens said:
Maybe you can just drop the shortcut for the application on the startup folder or maybe DotFred's TaskManager can help(http://www.dotfred.net/TaskMgr.htm).
Click to expand...
Click to collapse
WinMo has a startup folder (\windows\startup\) that you can create a shortcut for "Internet Sharing" inside, the problem is that you need a parameter with the shortcut to run the "Activate" conmmand in "Internet Sharing"; 'cause a normal shortcut will just run the app, then you'll have to press Activate manually (we want to automate that too); same thing for "USBTool". Unfortunaltely, I don't know the set of parameters for the shortcuts.
Or try looking for some advanced shortcut creation tools for WinMo, like in this list
http://en.handybyte.com/search/shortcut-mode/

Categories

Resources