Time after the last soft reset ? - Windows Mobile Development and Hacking General

hi,
is possible to know the time that has happened from last soft reset?
thank's

You want to query the uptime.
V

what ?
(i have a qtek s100 with w2003se not linux)
i have searched "update" program and don't have any result.
i have tried to execute a program called "update" but not exists...

If you mean the uptime, time since softreset, it is obtained using 'GetTickCount'.
An example of a program displaying this info is here:
V

ah!
uptime is an external application and is not in my pocket by default. !!
sorry, i didn't not undersatand that....
i find this application at google....
thank's !!

Not sure if it did, but I hope it helped!
V

I'm very agree to you !
please, give to me the fullname of the application what are you using
thank's

bartito, if you click on the picture it will take you there.
http://www.geocities.com/tomgigear77/Software.htmlhttp://www.geocities.com/tomgigear77/Software.html
BatMemTime
V

oks,
thank you very much !!

Another application able to count uptime/time from last reset/battery level log is here. It's Today plugin.

hello,
but i don't need / want / love a today plugin.
i need a user executable program (not memory resident).
regards

bartito: this is posted in the development section. Are you a programmer? It can be coded in about 4 lines (probably less) if all you want is time since you booted.
I can give it a go, but I'm incredibly and increasingly busy, so if you find another app, please let us know. If you're not a coder, it's probably a good excuse to start learning! It's nice to have a good reason and then give yourself this power...
V

hi vijay555,
i'm a pc programmer. i'm informatic enginneer; but i have programmed onyl in c, c++, pascal, perl, vbasic... and never applications for pocket.
i'm interested on that, but i don't have information about the language, compiler, etc....
send to me the title of a book and the name of a compiler, please.
other question: exists a development environment (type borland c++ builder)??
thank's

bartito, you're more than experienced! I've only just started learning c++, but for PPC, I wrote down some tools you might need etc:
http://forum.xda-developers.com/viewtopic.php?t=37884&highlight=vijay555
V

Uptime:
VJEschaton
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
V

Hi,
Finally I have programmed a small code with MortScript.
I send...
The file
\Windows\Startup\set-uptime.mscr contains the next code:
***************************
GetTime time
RegWriteDWord "HKLM", "System", "Uptime", %time%
***************************
the file
\ProgramFiles\Utilities\get-uptime.mscr contains the next code:
***************************
GetTime time
RegReadDWord "HKLM", "System", "Uptime", stime
Set stime, %time% - %stime%
Set days, ""
Set hours, ""
Set minutes, ""
If (%stime% / 86400 > 0)
Set days, %stime% / 86400 & " días"
Endif
Set stime, %stime% MOD 86400
If (%stime% / 3600 > 0)
Set hours, %stime% / 3600 & " horas"
Endif
Set stime, %stime% MOD 3600
If (%stime% / 60 > 0)
Set minutes, %stime% / 60 & " minutos"
Endif
Set message, %days%
If (%hours% ne "")
If (%message% ne "")
Set message, %message% & ", " & %hours%
Else
Set message, %hours%
Endif
Endif
If (%minutes% ne "")
If (%message% ne "")
Set message, %message% & ", " & %minutes%
Else
Set message, %minutes%
Endif
Endif
Message { "El tiempo transcurrido desde el último soft reset es de " & %message% }, "upTime"
***************************
The first source saves the time at the startup, and the second file shows the difference intra the startup time and the actually...
Regards

Good stuff!
V

Related

XDA and SMS programming

Hello,
I'm new in the wonderful world of XDA and Pocket PC 2002, and I would like to use SMS in a new application. Do you know how I could see example of source code using SMS API? Or do you have such example to help me?
Thanx
Gizmo
Precision
I forget something important : I'm using eMbedded Visual C++ 3.0!!
Thanx
Gizmo
All you have to do is include SMS.H in your code and linkt to SMS.LIB, see online documentation for more details. Below a simple function which takes a phone number in international format (+491715555555) and the message as parameters ...
Code:
BOOL SendSMS(LPCTSTR pszNumber, LPCTSTR pszMessage)
{
SMS_HANDLE hSMS;
HANDLE hGlobalReadSMSEvent;
HRESULT hResult;
hResult= SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_SEND, &hSMS, &hGlobalReadSMSEvent);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't open the SMS function"));
return FALSE;
}
SMS_ADDRESS smsaDestinationAddress;
smsaDestinationAddress.smsatAddressType= SMSAT_INTERNATIONAL;
wcscpy(smsaDestinationAddress.ptsAddress, pszNumber);
TEXT_PROVIDER_SPECIFIC_DATA tpsd;
tpsd.dwMessageOptions = PS_MESSAGE_OPTION_NONE;
tpsd.psMessageClass = PS_MESSAGE_CLASS3;
tpsd.psReplaceOption = PSRO_NONE;
hResult= SmsSendMessage(hSMS, NULL, &smsaDestinationAddress, NULL, (BYTE*)pszMessage,
wcslen(pszMessage)*sizeof(WCHAR), (BYTE*)(&tpsd), sizeof(tpsd), SMSDE_OPTIMAL, SMS_OPTION_DELIVERY_NONE, NULL);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't send the SMS"));
return FALSE;
}
hResult = SmsClose(hSMS);
if(hResult != S_OK)
{
AfxMessageBox(_T("Couldn't close the SMS function"));
return FALSE;
}
AfxMessageBox (_T("SMS has been send"));
return TRUE;
}
Thanx
Thanx! Thanx!
I made a big mistake : I forgot to link the SMS.LIB....
I'm a beginner!! (and I'm French : I'm sorry for the bad english language!)
Have a great week!
Gizmo
Hello,
Does anybody has a code example for receiving SMS messages?
I've trying to do so for two weeks, and I'm completely lost.
I've read in this site it can't be done with SmsReadMessage or SimReadMessage. Is it correct? What have I to do, using RIL? Or can I use POOM?
Any help would be very appreciated.
APallares
Have you seen tstril? It shows a good way of handling incoming SMSs.
It's here http://xda-developers.com/RIL/
Yes, I've took a look at tstrill. But this example only shows notifications on what's happening on the SMS channels. It has't any reference to the RIL_ReadMsg.
I've searched on the patent documentation, and I have found this help on the RIL_ReadMsg function:
HRESULT RIL_ReadMsg(HRIL hRil, DWORD dwIndex)
Reads a message from the current storage Location
Parameters:
hRil: handle to RIL instance returned by RIL_Initialize
dwIndex:
index of the message to be read
Comments:
Asynchronous. lpData points to an RILMESSAGEINFO structure
My question is: How do I access to lpData?
What I want to do is a function on a DLL like this (in pseudo-code):
BOOL WINAPI ReadSMSMessage(int numMens, LPTSTR Message){
RIL_Initialize
RIL_ReadMessage
RIL_DeInitialize
}
But, what I have to do to get access to "lpData"?
Thanks,
APallares
SMS.LIB
Have the sms.lib now. Normaly it's delivered with dthe EVC - but the 2 Versions I've got doesn't have it. Get them now by eMail
Maybee, this is the super-beginner-question - sorry
I'm searching for the SMS.lib and SMS.h . Working with MS EVC++ 3.0.
Every time, if I try to compile, I get the message, that the files couldn't been found.
Thougt to get them from the internet - but found them nowhere.
I'm happy about every tip (excluding "you're stupid" ;o)
Greetings from hannovre,
Andreas )
[/b]
Look in ProgramFiles / Windows CE Tools / WCE420 / PocketPC2002 / LIB / Armv4 / all your libraries should be stored there ... in ur code FILE VIEW , Source Files, right click and select add Files to Folder and add your lib
else just #inclde "<the full lib path>"
@nutitija
You are aware of the fact that this thread is more than two years old
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sascha
poor guy could still be waiting for an answer ....

[QUE]How to store Outlolk emails to MicroSD card ?

I have tried the following way, but it dosn't work!
for mails:
\HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = PropertyPath
Value Data = \SD Card\outlook Mail
for attachments:
Key Name = \HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = AttachPath
Value Data = \SD Card\Outlook Mail\Attachments
So how to do in WM6? Thanks!
---SoftBank X01HT with WM6 for Hermes LVSW Edition (2007-03-25)
joef said:
I have tried the following way, but it dosn't work!
for mails:
\HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = PropertyPath
Value Data = \SD Card\outlook Mail
for attachments:
Key Name = \HKEY_CURRENT_USER\Software\Microsoft\MAPI
add Value Name = AttachPath
Value Data = \SD Card\Outlook Mail\Attachments
So how to do in WM6? Thanks!
---SoftBank X01HT with WM6 for Hermes LVSW Edition (2007-03-25)
Click to expand...
Click to collapse
What I do is:
In messaging select your email account.
then 'Menu', 'Tools', 'Options'
In the new window select 'Storage' (bottom right tab)
Select storage card tick box.
This works for me with AOL (IMAP4) and POP3 accounts but haven't tried for Outlook directly.
Here's a copy of what i posted in the wm6 subforum quite some time ago.
Thanks to all the great people who made this possible No problems so far.
A little note. For those who want to move the Mail Folders and Relative Attachments to the Storage Card, the Reg Key has changed (no... really ).
it is now to be found in HKLM\System\Inbox\Settings.
Example screen here (this settings works for me).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More "Tweaks" as soon as i find them
to ach2:
I know this option,it can only stoe to Ex_ROM.
to Cmdkewin:
It is working!!! Thank you very much!!!!!
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
joef said:
to ach2:
I know this option,it can only stoe to Ex_ROM.
to Cmdkewin:
It is working!!! Thank you very much!!!!!
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
Click to expand...
Click to collapse
Ok, I thought my solution might have been a bit obvious - at least you got your prob fixed and I learned something new also
joef said:
to ach2:
BTW: how to backup the files(or still have some reg key) in the Main memory if my system bacame unstable and i must to restore it to the previous backup(SPB Backup). I means how to backup the link(i don't know how to call this) files if i restore to previous backup,so i can see all the messages. TKS!
Click to expand...
Click to collapse
Up! Thanks!!

[UPDATED] [Open Source] HTCustom Tweak Application [Reg & XML Loader]

HTCustom v1.0 CUSTEL & Shadowmite Collaboration
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Whats Good?
- Thin Scroll Bars
- Short Scroll Arrows
- Live Searches Via Google
- Remove battery/comm manager from tray
- Clock Display (clock, date, nothing, both, battery)
- Enable Time Zones
- 3g video dialer
- enable dtmf support
- disable in call volume beep
- gprs/3g disconnect/timer
- connection always on
- disable sms sent notifier
- change bt name
- transfer files via bt/irda
- improve a2dp sound
- Disable menu animations
- modify glyphcache
- enable file system cache
- modify FATFS & file system filter cache
- pie card cache device/sd
- navigate pie w/ dpad
- Hermes Keypad Layout
- Show/Hide Sim contacts
- Disable Security warning
- Mount Ext Rom
- enable/disable hsdpa
- xml/provxml loader
Keyboard tab is HTC Hermes Specific
As stated the application is open source so anyone can contribute to it. If you find any bugs please report here.
Can't install it...need a newer version of .NET Compact Framework...I'll download v2.0 and give it another try.
Great app
Can you please add the functionality of being able to specify a directory and install all of the CABs contained within it?
Code:
public void ProcessCABsDir(string sourcedir)
{
// Install CAB's
try
{
DirectoryInfo dir = new DirectoryInfo(sourcedir);
foreach (FileInfo files in dir.GetFiles("*.CAB"))
{
Process inst = Process.Start(sourcedir + "\\" + files.Name, "");
inst.WaitForExit();
}
}
catch
{
MessageBox.Show(
"Some files were not installed",
"Error:",
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button1
);
}
//End of CAB's
}
You could then place this in the ExtROM and get to execute on hardreset.
Happy to work with you on this one.
That is an excellent idea and I'm certainly planning to implement that in the near future!
Shadowmite said:
Sorry, you're gonna have to provide a link, this noob can't find anything in the wiki about a 802.11g router anything for the Hermes, there is ONE link to wifi from the hermes wiki and it talks about what it is... Nothing more.
In the meantime, release HTCustom 1.1...
Code:
New: Now contains mass cab installer (select the folder and let it run)
End of call beep edit...
Click to expand...
Click to collapse
updated...
Good work
Now how about making it part of the ExtROM of a ROM the the app get launched follwoing a hardreset?
The same idea as the autorun.exe HTC provide in all operator devices?
May I know whether this application requires .Net CF 2 to run? Don't wish to install it on my precious main memory..
It does...
doedoe said:
Good work
Now how about making it part of the ExtROM of a ROM the the app get launched follwoing a hardreset?
The same idea as the autorun.exe HTC provide in all operator devices?
Click to expand...
Click to collapse
I could, but don't most users like to customize when they are ready? Maybe just a popup that explains how it works so they know and can launch it when ready?
Good Works
Why not to integrate into this tweaker, the possibility of closing definitively the programs with the touch OK? It allows among others to use a TyTN with only touches and keyboard. Today, the touch OK reduces them
At the moment I found only another tweaker which makes it (PQzII), but that would be practical to use only one

Home screen direct link (TaskMgr) unremovable

My current problem is that the TaskMgr.exe disappears from the start menu, after a soft reset. Is there a reason/fix for this?
The other problem caused by this is, that my shortcut in the home screen becomes a dead link and is not removable. If I go to "menu->remove direct link->mark the task manager shortcut->finish" it simply stays there.
Even if I copy the taskmgr.exe to the start menu and the link is working again it wont be removable.
Is this a known issue and what can I do? Any help is much appreciated.
The whole thing looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks in advance,
eivissa
Try
Go to:
Registry Key:
HKLM/Software/Htc/Manila/Home/11
(If I counted correctly, this is the 12th item, and numbering begins with 0)
There should be some Values specifying the IconPath
and ProgramPath
They usually point to some *.lnk file
See if this file exists,
and if the Lnk file exists, see if the program it points to also exists.
(I dont remember how to check where a .LNK file point too,
maybe Edit would do)
Edit:
Oh, Yes, see if the Value
IsSet (under the same key) is set to 1.
Thanks very much,
editing programm path and link path did the trick that now the Icon is back there and the link works even after a soft reset.
Though I still cant delete the link from the home screeen. There is no error message or anything. The Icon just stays there after clicking "Finish" to delete it.
EDIT: IsSet is set to 1.
Well . . .
eivissa said:
Thanks very much,
editing programm path and link path did the trick that now the Icon is back there and the link works even after a soft reset.
Though I still cant delete the link from the home screeen. There is no error message or anything. The Icon just stays there after clicking "Finish" to delete it.
EDIT: IsSet is set to 1.
Click to expand...
Click to collapse
I had a problem deleting element after playing a bit with the registry, and leaving an item all set, but with "IsSet" set to 0.
In that case - everything showed, but I could not delete the element.
(There is another value there - I think "IsExist"
maybe that has something to do with it as well,
or maybe - just play a bit with the other values in theis key, and compare them to values in keys (like 0,1,2 . . .), and see if something changed
Or -
As some say
If it works (for your needs) - dont touch it)

Samsung Focus as USB drive + custom icon

This mini guide is to show you how to get your Focus as a USB drive and with a properly icon. The default Windows icon for a mobile player was very childish (like from xp), mine looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Based on: http://www.mobiletechworld.com/2010/11/18/use-your-windows-phone-7-device-as-a-portable-usb-drive/
http://forum.xda-developers.com/showthread.php?t=901306
http://www.winhelponline.com/blog/how-to-rebuild-the-icon-cache-in-windows-vista/
Close Zune, disconnect your phone
Open regedit from Start/Run, then browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\
Search for "ZuneDriver"
Select "WUDF" and set this keys:
Code:
Exclusive = 0
Select "ZuneDriver" and set this keys:
Code:
UseWpdPrivateInterface = 0
Copy the attached i917.ico to some folder (for example Program Files\Zune)
Select "Device Parameters" (parent of ZuneDriver key), and set this keys:
Code:
ShowInShell = 1
PortableDeviceNameSpaceExcludeFromShell = 0
EnableLegacySupport = 1
Icons = %ProgramFiles%\Zune\i917.ico (or your own path to the custom icon)
Press Ctrl+Shift+Esc, task manager will open, under processes kill Explorer.exe
Goto File/New Task and type cmd.exe
Execute the following command in the command prompt
Code:
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
Go back to task manager, File/New Task and type explorer.exe
Connect your phone and close Zune (if you want to access the phone as usb drive)
Done
What files can be transferred?
In addition to the files supported by ZUNE, what other file types can be transferred from PC to WP7 device?
JamesAllen said:
In addition to the files supported by ZUNE, what other file types can be transferred from PC to WP7 device?
Click to expand...
Click to collapse
None because those files are not exposed (other partition?)
Error creating New Folder
I keep getting:
The device has either stopped responding or has been disconnected.
Zune is closed.
Cables are tight.
Lemontongs said:
I keep getting:
The device has either stopped responding or has been disconnected.
Zune is closed.
Cables are tight.
Click to expand...
Click to collapse
OK, I am not sure if you can create folders everywhere. I am not in my PC now, but I will try tonight. Where are you creating your folder?
having this done .. can one access the files and things stored on the phone . like maybe a new way to unlock the device ?
d0ugi3 said:
having this done .. can one access the files and things stored on the phone . like maybe a new way to unlock the device ?
Click to expand...
Click to collapse
No, only things exposed by the phone like photos and videos.

Categories

Resources