Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetLocalTime" in [All]

kernel32

.

static extern bool SetLocalTime([In] ref SYSTEMTIME lpLocalTime);

.

Shared Function SetLocalTime(ByRef time As SYSTEMTIME) As Boolean

.

SetLocalTime only succeeds if the application is running as an administrator.

.

    //Sample code for SetLocalTime and SYSTEMTIME structure

.

        //SetLocalTime C# Signature

.

        public static extern bool SetLocalTime( ref SYSTEMTIME Time );

.

            SetLocalTime(ref st);

.

   Private Shared Function SetLocalTime(ByRef time As SYSTEMTIME) As Boolean

.

     SetLocalTime(currentTime)

.
Documentation
[SetLocalTime] on MSDN

coredll

.

   static extern bool SetLocalTime(ref SYSTEMTIME lpSystemTime);

.

   Private Shared Function SetLocalTime(ByRef time As SYSTEMTIME) As Boolean

.

     SetLocalTime(ref time2);

.
Documentation
[SetLocalTime] on MSDN
.

To set the date and time with consideration to the locale settings use SetLocalTime.


 
Access PInvoke.net directly from VS: