how to run rundll32 under WM6 - Windows Mobile Development and Hacking General

Dears,
I have 3 Blackberry services starting automatically. The security service locks the device completely after 60 min, which is not very helpful if you run a navigation program, because you're driving .
I know how to change the registry to stop these services, but later I would have to start them manually. The services are in 3 different .dll files.
How can I run rundll32 (the utiity exists in \windows) like I would do in Windows XP:
run rundll32 <filename.dll>
preferably I would like to write a small batch file, which would issue all the 3 necessary run commands.
Your help will be highly appreciated.
Searched the forum, but rundll32 returns no results.
Best Regards

What are you doing, registering the dll or trying to execute a function within the dll?
V

Autostart starts Services automatically during the boot process.
I want to start 3 of these services manually.
These 3 services are contained in 3 .dll files.
I was assuming, that rundll32 would load these dlls into the memory and make them available for applications.
On the bottom line, I want to start services manually as they would normally be started automatically by the OS.
Best Regards

I'm not really sure about the service you mentioned. . but if you download the 'TaskManager' (freeware), there is a section of it that controls services, which you can disable/enable and set it manual/automatic.

Thank you,
you were right, TaskManager can do, Memmaid cannot :-( Like that I can start/stop the service.
However,
I would still like to know, how services contined in a dll file are started by the OS.
I downloaded also MortScript, which can execute batch files. But the rundll32 <filename.dll> does not start the service.

Try looking for regsvr (google, not on your device).
eg http://www.pocketpcdn.com/articles/regsvr.html
(but there's a better version somewhere IIRC)
V

Related

Get Google Local (GLM) Satellite Images on Cingular 8125

EDIT 11/1/06 Satellite images don't work on the new version of IBM and GMM. However, using IBM version ibm-weme-wm50-arm-midp20_6.1.0.20060727-102926 and GMM 1.3.2 it works really well. Quick, no freezing like with the default midlet manager. The 20060727 version of the IBM manager adds the softkey buttons, so it's way better.
EDIT: 8/18/06, process works with IBM Software 6.1 and GMM version 1.3.0!
Been looking for a while and haven't seen a step by step, so here goes:
- Basically you need to install a second Midlet Manager onto you 8125. It's made by IBM and can be downloaded here.
http://www14.software.ibm.com/webap...04-06+13:40:42.143397R&S_TACT=104CBW71&S_CMP=
You'll have to sign up for an account. Then download this exe: CLDC 1.1/MIDP 2.0 for Windows Mobile 5.0/ARM
- Once you've installed the exe on your computer, browse to:
C:\Program Files\IBM\WEME\runtimes\61\wm50-arm-midp20\
There is a cab file there-> weme-wm50-arm-midp20_6.1.0.20060317-111429
- Extract the cab file and transfer its contents to your device. I suggest either: a) \Storage Card\Program Files\J9\MIDP20\ or b) \Program Files\J9\MIDP20\
- After copying the cab files contents to your device, run the "emulator" file in the bin folder.
- While it's running, use your web brower and navigate to www.google.com/glm. Pick Generic -> Advanced MIDP2. it should ask you where you want to save the ".jad" file. Save it to "My Device" NOT "My Documents" on your device. Name it something simple, like "glm".
- Go back to Midlet HQ and choose "install". Type in the file name like shown here http://www.winmobiletech.com/032006Midlets/J9InstallLocal.bmp.png
but replace "a" with glm if you named the file that.
- It will connect to the internet and install the Google GLM midlet. Tada!
To get sat images, you'll just have to run GLM through this new midlet manager, and not the one that comes with the device. no bigy. Enjoy.
thanks for the links... But could you clarify some things. What are you talking about replacing "a" replace what "a" where?
Also I get an error when I try to Save to My device from explorer. Don't know if that is normal or not. Could you explain this a little better?
Why do you need the second midlet manager? Java installs fine on my KJam
-Mc
For some reason, the default midlet manager of the wizard (8125) will not allow you to view the satellite images from GLM, hence this big ordeal.
hbkdinobot: Replace "a" with "x" just refers to renaming the file so it's easy to find it later. When you download the file it wants to name it something extremely large. I'm just suggesting you rename the file to something simple and easy to type in and remember.
I'm not sure why you're not able to save the file. keep trying!
McHale said:
Why do you need the second midlet manager? Java installs fine on my KJam
-Mc
Click to expand...
Click to collapse
Why not just use "Virtual Earth Mobile"? One install for SP and PPC and has Sat and Maps. http://www.viavirtualearth.com/vve/Gallery/VEMobile.ashx
juiceppc said:
Why not just use "Virtual Earth Mobile"? One install for SP and PPC and has Sat and Maps. http://www.viavirtualearth.com/vve/Gallery/VEMobile.ashx
Click to expand...
Click to collapse
The fact that it's neither very stable (had it lock up several times) nor as usable as GLM may have something to do with it. I tried VEM, hoping that it would be a good substitute on my Javaless T-Mobile USA MDA, but promptly uninstalled it after much frustration. Instead, I flashed the MDA with the new Imate ROM that has Java in it, and Google Local Mobile now runs on my MDA just fine. It may not display the satellite images with the Intent JVM, but it's perfectly stable and usability is much better.
I installed the VEM on juiceppc's recommendation, we'll see how it works out.
VEM seems to have very old image data compared to GLM...
try this http://www.mgmaps.com/
On my t-mobile MDA (with the 2.17 custom ROM) the IBM midlet manager doesn't seem to work with glm (asks me if permission to use airtime but then gives me a blank screen).
The midlet manager that comes with the custom ROM can run both glm and mgmaps, but neither show satellite imagery.
I'm having the same problem as Sorcerer and I am running the 2.17.7.2 WWE ROM..anyone know what the issue is?
Works perfectly on my 8125. Thanks Jizzay1!

Bluetooth File Receive to Storage Card?

I did some searching for this, but couldn't find an answer...
Are there any tweeks, reg hacks or applications that I can use to enable files received via Bluetooth (or irda) to automatically get stored to my Storage Card?
Thanks!
Reg Change with consequences
There is one way that I know of to change the location of the Bluetooth/IRDA storage location. However, on my Universal when I made this change, there were significant delays in opening certain applications and other processes. Therefore I wrote a small app to change the location as and when I needed it, so by default it is the location on the phone.
As background, the default location is stored on the phone under Application data\volatile
This is set in the registry under HKEY_LOCAL_MACHINE\System\FileSys\TempPath
Attached is the program, it was only written for myself to use so not very fancy at all, but does work. Unfortunately as my PPC programming experience is so minimal, I had to use the only tools I know which was VB.Net 2005 and therefore you will need the Compact .Net Framework 2 installed on your device.
Hi
Thanks for that...
I just downloaded and installed the .cab, but I can't see it in my Programs or in Program Files...
Where does this cab install it's stuff?
If I wanted to manually change the location in:
Code:
HKEY_LOCAL_MACHINE\System\FileSys\TempPath
... Would I just change
Code:
Application data\volatile
To
Code:
Storage Card\BT Receive
?
Thanks
D'oh!
I was looking for it in programs, not settings>system!
Hehe
Thanks a lot for this

HKEY_LOCAL_MACHINE\init - App does not start

Hi,
I've programmed a small MFC-based Visual c++ application which I want to start automatically on boot on an ARTEMIS device. The earlier the app starts, the better. Thus, rather than creating a shortcut in windows\Start up, I decided to add a registry entry into HKLM/init as "Launch90" "myApp.exe" The executable is placed in the /Windows directory.
But it does not start as expected, just occasionally. I got the impression that the application comes up only the second or third reboot (soft reset) after installing the CAB file. After other reboots, no indication why the application fails.
I have already tried to vary the number right to "launch" in the key, tried to set a dependency, set the MFC to static and to dynamic, but the application does not start. (by the way, it works well when adding a shortcut to the start up directory). I have no idea why it does not work with the registry approach. Do I have to consider something special for such kind of applications?
thanks in advance for any idea...
Gunther
Is it signed or authorized?
When you run your application your device asks you if it is OK to run because it is not signed (unless you disabled that in security settings).
If you answered yes once, it won't ask again.
However if you try to launch unsigned and unauthorized app from init it will just ignore it.
Another possibility is that your app is trying to access an unavailable resource (maybe something on storage card?) and crashes. Make sure everything it needs is available during init stage.
I guess the signing issue is one of the reason for the problems. I've in the meantime created an individual certificate, installed it on the device, and signed my application with that cert.
The behaviour improved: At most reboots, my application comes up as expected. But sometimes it does not. I just rebooted my device 5 times, 4 times it worked and once, launching the app failed. Another reboot again succeeded.
Do you think when launching the application with the reg setting "Launch95", it sometimes happen that the MFC DLL can not be accessed (it is linked during runtime)?
Create somewhere shortcut to execute your exe with one and only one parameter: "90"
Something like this:
Code:
0#\windows\myApp.exe 90
If app doesn't start - read this thread:
http://forum.xda-developers.com/showthread.php?t=302013
initlauncher may be method for vjtoggletoday missing tray..hmmm.
thx for that topic.
Thanks for the hints, but I'm still not satisfied with the outcomes. I've implemented the InitLauncher.exe (with slight modifications) and it works also with multiple reboots. But then I did a "hardcore test": I rebooted the device, InitLauncher.exe was executed and the second application came up. Then I've removed the battery. Since then it does not anymore work.
The certificate is still listed in the device, but could it be that something happened to the cert by killing the system? (For installing the cert, I simply copied the myCert.cer to the root directory and executed the cert installer by tapping the cer file.)
Or could the signature of the executable have been damaged? Any idea how to avoid such problems?
Addendum to my last post: I've now tried to re-install the Certificate on the device by again clicking the *.cer file - autostart worked again. Thus, I assume that something happened to the certificate on the mobile device. But the question is: WHAT happened...?
I recommend to you test all in emulator at first.
Or make hard reset and test on clear system.
I did a hard reset, re-installed the application and tested again. On warmstarts, it mostly works, but not everytime.
And there's another thing that puzzles me: When I create the CAB-Installer, all modules get signed using the signtool. If one of the modules is replaced (e.g. the replacement .exe is just copied to the device and overwrites the existing one), on first start the device always pops up a security warning as it does with unsigned apps, although the new exe has been signed as well.
Could this be caused by using a proprietary signature rather than one of the commercial pre-installed ones?
I furthermore used the signtool to sign the CAB file (I also tried to include the certificate through a pre-XML file when creating the CAB file) - however, this has no effect: Anytime the CAB is being executed on the device, the security warning pops up...
Possible you use wrong sertificate?
please show name of it.
Also don't forget to install certificate on device!
Basically, its a self-created certificate. The certificate is acutally installed on the device (copied the .cer file to the device and clicked it - it then shows up in the device's certificate list)
When signed applications are manually started on the device there is no security warning. Thus, I assume that the signature of the executables and the installed cert match.
Again back to the start-up problem: When using user-created certificates and when autostarting apps through HKLM/init: Do these apps have to wait for another module to be loaded first?
Không vào được màn hình Home của DVD trên xe hơi chạy winCe 6.0. Xin giúp đỡ.
Hello friends !
I'm living in Vietnam
I recently accidentally reinstalled the system of the DVD in the car.
Run operating system win CE 6.0
Now it's time to start it straight into win without going to the default home screen of your head. I've been able to understand but can not do anything else to make the situation better. Currently the new room is not possible.
Can you just help yourself to boot it (the app home line is: \ Residentflash2 \ app \ home.exe).
I hope you help me. You can instruct yourself how and if any editing software. I would like to thank !
Email: [email protected]
---------- Post added at 07:59 PM ---------- Previous post was at 07:56 PM ----------
Hello friends !
I'm living in Vietnam
I recently accidentally reinstalled the system of the DVD in the car.
Run operating system win CE 6.0
Now it's time to start it straight into win without going to the default home screen of your head. I've been able to understand but can not do anything else to make the situation better. Currently the new room is not possible.
Can you just help yourself to boot it (the app home line is: \ Residentflash2 \ app \ home.exe).
I hope you help me. You can instruct yourself how and if any editing software. I would like to thank !
Email: [email protected]
Hello friends ...I accidentally deleted the file \ Residentflash2 \ app \ home.exe . Any one can send me this file ? My double din not work any more .

Self deleting executable

Hello all,
I am trying to write an application in Visual Basic.NET 2008 for the Windows Mobile 5.0 platform. One of the features of the application is that it needs to have a "panic" button. The idea is that a user can run the application and press the panic button. The application should then terminate immediately and remove itself (the physical executable). A sort of self destructing program
The problem is that an executable cannot be deleted if it is running because the file is locked. It can only be deleted after the program has terminated, but after the program has terminated it is not possible to fire a delete command anymore.
I have done some investigation on the web and I found this article: http://www.catch22.net/tuts/selfdel
The article explains the problem and it also provides a few solutions. Unfortunately I am not familiar with writing C++ or assembler (too stupid ) ) so I have not been able to use "the ultimate self deleting executable code".
Is there anybody here that can help me a bit to get this working ? Any help is appreciated
There are two ways:
1. Use something else to delete you app.
2. Figure out the ASM root.
By your own admission, 2 isn't viable, so that leaves us with 1.
I can think of 2 ways to do it, a seperate App to delete yours, all the other app does is way 2 seconds and run, and keep running and retrying until the File is Deleted. Your app then calls it and quits.
The other way is to do the above process but use MortScript to delete and wait instead of an app. There's loads of Mort examples on xda.
Dave

[Q] RAPICONFIG (0x80042008) error

Hi guys,
I'm trying to provision a HTC Touch 2 with RAPI. After I run this:
Code:
rapiconfig /p config.xml
I get this:
Code:
Config failed (0x80042008): A fatal transaction failure has occurred. The device may be in an unknown state.
I'm clueless in what I can do to fix this, since the .xml holds the security policy settings for the device...
Ultimately, I need to install a few cabs through a script, with no UI during install. Which i'm running with rapistart by the way.
Some help would be greatly appreciated!
I don't know about this Rapi Neo, but you can use Dotfred's Taskmanager to import a xml.
Edit; no UI ok, so no way you can install Dotfred LoL, sorry.
Thanks Laurentius, I'll still have a look at that.
I'll explain my scenario a bit more.
I have to run a script which installs a few cabs (so no cab security etc) and then modify the start menu, so users are only able to run forementioned apps and a few standard things like contacts, sms, that sort of thing. Settings should be blocked or removed, so they won't be able to change any settings made before running the script.
The first problem arises with getting rid of the security. RAPIconfig usually was able to send a provisioning xml to the device (on wm6.1) and change the security policy keys in the registry. This time, i'm running it on a wm6.5 device. So i'm doing something wrong there.
And last but not least: I used to be able to run CeRun.exe in the script on wm6.1 (does almost the same as RAPIstart.exe, but is able to do multiple cab installs at the same time, without showing the installation on the device) and i'm wondering why it doesn't work in 6.5 anymore.
I guess no one ever used RAPI tools?

Categories

Resources