CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: setting time

  1. #1
    Join Date
    May 1999
    Posts
    9

    setting time

    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 [email protected]

    ur suggestions are welcome,
    thanx,
    ramesh


  2. #2
    Join Date
    Apr 1999
    Posts
    17

    Re: setting time


    why don't u try the API SetSystemTime.




  3. #3
    Join Date
    May 1999
    Posts
    123

    Re: setting time

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured