Solved

How to get Win2000 server time at the client ?

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 122
WinWaitActive parameters 12 31
Best tools for Backup and restore of Wordpress site 6 57
wordappend challenge 8 176
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 …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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