How to make a mobile app stay on top?

I am developing a mobile application for Windows Mobile. I would like the application to be launched by default by the system at startup and so that users cannot minimize it.

Thus, only this application is available, all other functions are disabled.

I am sure I can determine the launcher that runs at startup. But some problems come to my mind: can there be some memory optimizations? I mean, only one application is available and in use, maybe some other programs may be disabled, which may allow less memory to be used?

Do you have any links for this purpose?

EDIT : Thanks for your answers. I read your links about kiosk mode and found another very interesting post about this topic: this blog

It says that for kiosk applications, in the long run, it is better to use Windows CE instead of Windows Mobile, because the former is easier to adapt to these needs.

+3
source share
3 answers

You may be able to post more useful materials later, but now I can tell you that the term you want to find on Google is: β€œkiosk mode”.

Update - useful stuff (hopefully)

, , . Windows Mobile , , , , :


1. , :

WindowState Maximumized FormBorderStyle None. . PInvoking:

FindWindow "HHTaskBar" ( , HHTaskbar Pocket PC 2003) String.Empty

[DllImport("coredll.dll", EntryPoint="FindWindowW", SetLastError=true)]
private static extern IntPtr FindWindowCE(string lpClassName, string lpWindowName);

EnableWindow IntPtr FindWindow false

[DllImport("coredll.dll", SetLastError=true)]
public static extern bool EnableWindow(IntPtr hWnd, bool bEnable);

ShowWindow IntPtr FindWindow 0 (SW_HIDE)

[DllImport("coredll.dll")]
public static extern bool ShowWindow( IntPtr hwnd, int nCmdShow);

2. .

, , Pocket Outlook. , , , , API Win32. , , , . - . , , , .

PInvoke:

[DllImport("coredll.dll")]
private static extern IntPtr SetWindowsHookEx(int idHook, HookHandlerDelegate lpfn, IntPtr hMod, uint dwThreadId);

, , , , . , " ", (.. ).

CF, OpenNETCF, , KeyHook.

, , IIRC , , , , ( :)).

, , .


3. .

, . , , NETCF . , ( , ) .NETCF, , . , , . .

+7

"". Windows Mobile . , , Windows CE, . Windows CE . , Platform Builder , .

Windows Mobile "" . , :

  • .
  • . .
  • , .
  • , . , .

. , . .

+3

CodeProject, .

, , , , , , !

+1

Source: https://habr.com/ru/post/1706389/


All Articles