|
Please use FireFox to view this page
This website has been designed for use with the FireFox browser. Please use FireFox to view this page.
These functions are actually implemented in DLLs contained
within the windows operating system, namely user32.dll, kernel32.dll and
advapi32.dll.
Finally, a reference to the interoperation services
namespace is required
C#
using System.Runtime.InteropServices;
VB.NET
imports System.Runtime.InteropServices
If you are using VB.NET you will need to add a reference
(project > Add reference) to Microsoft Visual Basic .NET compatibility
runtime. This allows for the more friendly API declarations, which account for
much of the structure changes between the C# and VB.NET versions of this application.
To test this application, run it from Visual Studio .NET.
Use the field provided to change the reboot time to some time in the future.
Ensure that all your work is saved, then check ‘Enable automatic reboot’. Then
sit back and watch your computer switch itself off when the timer reaches the
designated time.
Page 3
Copyright 2012 Open Merchant Account Ltd.
|