Solved

How to get Win2000 server time at the client ?

Posted on 2002-05-19
4
175 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 100 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

707 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