Archive for the ‘Programming’ Category.

Blacklist Applications to disable use

Disable some applications like games, from being started by a user

REGEDIT4

;Enable blacklist of applications that should not run
[HKEY_LOCAL_MACHINE\Security\Policies\Shell]
"DisallowRun"=dword:1

;Add entries to blacklist of applications that should not run
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"1"="fexplore.exe"
"2"="iexplore.exe"

Did you know you can also ‘disable’ use of apps by just overwriting them?

Although most WM files are in ROM and so you can normally not overwrite them. You can still copy a file with the same namen on top of the existing file. You have to use Total Command CE or another non-MS tool to be able to do so.

Internet Explorer Mobile – enable Javascript error reporting

During HTML developing you should enable Javascript Error Warnings:

REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"ShowScriptErrors"=dword:00000001

With this setting you will get message boxes if something is wrong with your JavaScript code or the way IEM handles Javascript.

Without this setting IEM will not display any script error and you just get a page that does not work as programmed.

Full Screen Engine to make Compact Framework applications fullscreen

Here is my approach to make a compact framework form fullscreen:

A class that enables you to

  • lock/unlock the taskbar
  • hide/show the taskbar and resize form to occupy the whole screen
  • hide the menu bar but show/hide SIP
  • disables OS to capture Function keys like F6/F7 for Volume Up/Down etc and makes these keys available to be used in your app. Also the use of the WinKey does not open the Start Menu

(You are right, you dont see ‘fullscreen’ in the screen shot, BUT the taskbar is locked!)

Continue reading ‘Full Screen Engine to make Compact Framework applications fullscreen’ »

iLock: a tool to lock the startup process of a windows mobile device

In commercial environments, we are often asked about KioskMode support for Windows Mobile device. Unfortunately the consumer OS Windows Mobile does not support a Kiosk Mode.
To workaround this, a programmer has to use several techniques to prevent the user from changing settings or playing games on a Windows Mobile device that is running for example a Direct Delivery Store application. But this blog entry is not about what the programmer can do to lock the user in his/her application.

The iLock tool is a fast starting locking application that will lock the user from changing settings or starting unwanted applications until the productive application has been started. Why do you possibly need such a tool? It is because your application may need some more time to startup than this simple and native iLock Windows C application.

Continue reading ‘iLock: a tool to lock the startup process of a windows mobile device’ »