?
Solved

How to get Win2000 server time at the client ?

Posted on 2002-05-19
4
Medium Priority
?
176 Views
Last Modified: 2013-11-20
Hi Everyone,

    Can anyone has this solution to me?

 How to get Windows2000 server time showed at the client machines when they connected ?

   Thanks in advance.
   Bermusa  
0
Comment
Question by:Nok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 7019916
Use "NetRemoteTOD()". See the sample at http://www.mvps.org/win32/network/nrt.c
0
 

Author Comment

by:Nok
ID: 7021854
All right,jkr it's work fine when compile the code on NT or 2000 but not work when compile on Win9x or ME - I want to resolve this problem at client machine - I need to show a date/time from a server that when they connect to the server then the server must send a current date/time to the PC of client that it's running a get date/time application on itself.
   How do you have any way or suggestion for me for this question?

   Thanks, in advance.
   Bermusa
0
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 7022133
You will have to load this API dynamically, as the Win9x support here is "sparse" at best. See http://www.mvps.org/win32/network/net_win9x.html and http://www.mvps.org/win32/network/nt95.html on how to do this.
0
 

Author Comment

by:Nok
ID: 7023460
Thank you so much jkr, for your help.
That mean I have to change from lm.h include file to svrapi.h file and change netapi32.lib link to svrapi.lib in the code,haven't I?
  Then when compile it with 9x or ME,it can run this program from clients with specify server name on LAN and then the server send be back a date/time on its to the clients that connecting with it,can't it?

    Please inform me again.
    Bermusa
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question