Is there a mean to reboot WinCE 5.0 programmatically? - windows-ce

I am very new to WinCE, sorry if the question is stupid.
Is there something for rebooting a WinCE 5 system by executing a command ( like "shutdown -r now" on Linux) or by calling an API-Function?
Thank you very much!

KernelIoControl with IOCTL_HAL_REBOOT is the API way (if the OS supports it). There is no standard command-line app that does it.

Use API SetSystemPowerState(NULL, POWER_STATE_RESET, 0);

Related

Can anyone explain how to shutdown the Linux system using system command?

I stuck in a problem, I want to shutdown the Linux PC using system command but my machine is asking to enter the password.
here is the scenario: I'm using 2 systems one is windows and another one is Linux. I'll send the command to Linux for shutdown, this Linux PC application made it as Service file, once I receive the command for shutdown, My Linux PC run the system function which is written like this system("shutdown -P now"); if I run this command my machine won't execute the command.
Kindly help me out in this!
Thanks & Regards
thank you Some programmer dude for your valuable feedback. Posting your suggestion as answer to help other community members.
The shutdown command needs super-user privileges. You can use some
additional commands to elevate the privileges along with the command
you are currently using.

How do I create a Linux bootup USB stick that only runs my one program automatically?

I want to create a USB stick that has the smallest version of Linux possible that only runs my one program automatically when booted from.
Do I have to write my program in a special way to do this?
Do I have to build the Linux kernel myself in order to be able to distribute the software without having to pay anyone else?
Thanks!
Universal USB Installer does it for you.
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
You can install archlinux on it which is very light. And then you can write a script to execute your program on start up.
It will all be free, but for commercial use, read the GNU license that comes with the linux distributions.
May be you are looking for this
http://www.damnsmalllinux.org/wiki/installing_to_a_usb_flash_drive.html

Where are the device file kept for each keyboard console shell on a Linux machine?

I am trying to find where the keyboard is kept on a linux system?
Is it under /dev/input?
Thank you!
You are probably working with terminal in Linux, so that's why you are looking for terminal device driver. I think these two links are a good answer for you... explaining the difference between TTY, PTY & PTS.
https://unix.stackexchange.com/questions/21280/difference-between-pts-and-tty
http://tldp.org/HOWTO/Text-Terminal-HOWTO-7.html
But to add, deciding which one is you choice depends on the way you are connected to Linux machine ... this link helps on this issue:
what is the difference between tty and vty in linux
Cheers

How can I port a closed-source application based on OS X to Linux?

How can I port an application based on OS X to Linux? It is closed source and working in Windows either. It is not wrriten in Objective C and doesn't use Cocoa.
Thank you.
If you saying that application working in Windows, so the easiest way is to use Wine to get start it on Linux.
I don't think it being closed source has any effect on porting it to Linux - it's the same anyway.
Just find alternatives to any win32-specific libraries or use a compatibility layer as necessary. Your team may however need to think very carefully about which distros they choose to support.
There is no easy path if you don't gave the source code as there are few Mac emulators. You might have some luck get OSX to run under a VM but Apple frowns upon that.
In the end it sounds like a ground up rebuild.

which linux to use for embedded-linux-qt 4 development?

I want to start development using qt-embedded on my embedded device project. Can you tell me which linux should I use on my computer for development. Well, It should have VMWARE-tools support ( Fedora Core 11 does not have it ).
Thanks, Sunny.
I got a whole dedicated website for this issue (crosscompile.org) ;-)
Anyway, we use ubuntu and at http://www.crosscompile.org/static/pages/crosstool.html you can see the toolchain building process
Hope it helps you.

Resources