Page 1 of 1

PostPosted: Mon Dec 30, 2002 4:15 pm
by Hark0
How I write a soft-reset command?

Is possible "kill" application in PPC2002 with PocketC?

Thx and greetings from Barcelona - Spain

PostPosted: Mon Dec 30, 2002 6:30 pm
by KOU
I dont know about soft reset.

To kill an app, just sendmsg WM_CLOSE (this might be wrong) to that window.

What type of app do you want to make?


PostPosted: Tue Dec 31, 2002 6:58 am
by Hark0
My app modifies the registry....

Please write small sample about VM_CLOSE....

I want "kill" shell32.exe to soft-reset my device.... It's correct?

Another idea?


PostPosted: Mon Jan 20, 2003 3:24 pm
by KOU
Sorry to bump up the old post.
I looked in to GSPocketMagic's source code. (by Y.Nagamidori)

Never kill Shell32 to reboot I dont know what will happen!!

The correct way is to call
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);

But somebody have to write wrapper for it.
(Or use guy's CEAPI stdcall)

here is his definition in c++... (NOT POCKETC)

#include <winioctl.h> // This doesnot exist in PocketC!
extern "C" BOOL KernelIoControl(DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned);

another way is to call an app like reset in...

But I think you have to contact the author.

PostPosted: Mon Jan 20, 2003 3:25 pm
by KOU
>>But I think you have to contact the author.
If you are distributing it.