Reboot the CUWIN With Code

Applications, examples, and sample programs using products from Comfile Technology

Reboot the CUWIN With Code

Postby Mike » Sun Jul 17, 2011 4:35 pm

This sample program illustrates how to reboot the program using code.

* It works by calling the Windows API function - http://msdn.microsoft.com/en-us/library ... 60%29.aspx
Calling a Windows API function is done using a technique called "Platform Invoke" or "P/Invoke" for short - http://msdn.microsoft.com/en-us/library/aa446536.aspx
* C# and VB.Net projects are attached. These projects were built for the CUWIN 5000/6000 series, but I believe the same code can be used for the CUWIN 3000/4000 series.
Attachments
CUWINReboot_VB.zip
VB.Net Project
(41.24 KiB) Downloaded 724 times
CUWINReboot.zip
C# Project
(27.87 KiB) Downloaded 713 times
Mike
Mike
SuperDuperDuper
 
Posts: 551
Joined: Thu Mar 17, 2011 3:54 pm
Location: Seoul, South Korea

Return to Applications and Examples

Who is online

Users browsing this forum: No registered users and 2 guests

cron