Click to See Complete Forum and Search --> : setting time


j_h_ramesh
May 5th, 1999, 12:02 AM
hi all,
i am having an function to be done in an dll called SetSysTime(char *hostname, LPSYSTEMTIME time).....
where hostname can be NT server name/computer name and time is time to set....if for example if this function is being called from an PC to set the time on NT server...what is the procedure i have to follow up....if u have source code please mail me to ramesh@india.yokogawa.co.jp

ur suggestions are welcome,
thanx,
ramesh

Rinks
May 5th, 1999, 01:38 AM
why don't u try the API SetSystemTime.

Jerry Coffin
May 5th, 1999, 08:13 PM
You need to use SetSystemTime to actually set the time. To call this sucessfully, you need to enable the SE_SYSTEMTIME_NAME privilege before calling SetSystemTime.


The universe is a figment of its own imagination.