Solved

How to get Win2000 server time at the client ?

Posted on 2002-05-19
4
172 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
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

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

Author Comment

by:Nok
Comment Utility
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 100 total points
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now