?
Solved

How to get Win2000 server time at the client ?

Posted on 2002-05-19
4
Medium Priority
?
178 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

839 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