How to call NWGetFileServerDateAndTime from nwcalls.dll

I know how to call a function from a DLL, what I dont know
are the parameters for this call

function NWGetFileServerDateAndTime(var ???): ???;
           far; external 'NWCALLS';

I think the unit CALSRV16.PAS should have a complete
declaration, but I didnt find this file (it must be in
the Netware SDK - 37 MB thats a little bit too much for me).

At is the
documentation for the sdk (if I try to get some info about
the function, I receive a "500 Server Error" :-( )

anyone with more luck ???
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try This GetDateTime (year,month,day,hour,minute,second,day_of_week:integer);

egonoAuthor Commented:
Hi Waldek,

I'd like to have the time from the server, not from the WS.
egonoAuthor Commented:
Adjusted points to 200
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Do you have a C-header file for that library ? We could translate the function call from C to Delphi.
egonoAuthor Commented:
Hi d003303

no I have nothing, just the DLL. But there must be some
header files in the Netware SDK (and some Delphi units too)
If you have a fast connection you can download 37 MB from
the novell server.
OK, I take a look at it.
Are you using Delphi 1 (because of the unit CALSRV16.PAS) ?
here is the correct declaration for 16 and 32 bit.

  nuint         = Cardinal;
  nuint8        = Byte;
  pnuint8       = ^nuint8;
  NWCONN_HANDLE = nuint;
  NWCCODE       = nuint;

Function NWGetFileServerDateAndTime
   conn : NWCONN_HANDLE;
   dateTimeBuffer : pnuint8

function NWGetFileServerDateAndTime; external 'CALWIN16.DLL' index 116;
function NWGetFileServerDateAndTime; StdCall; external 'CALWIN32.DLL' index 116;

if you want the Delphi-Includes of the SDK, I can mail them to you.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
egonoAuthor Commented:
Hi Slash,

I'm using Delphi 3. If you mail me the Delphi includes I
would be very happy (and you will get a A Grade).

Please mail not to my home adress, mail to

many thx ...

egonoAuthor Commented:
OK ! thx again ...

it seems to me that I need also the dll's cause I have only
the nwcalls.dll. Do you think it's possible that you mail me
these files also ???

I've sent them to you. Please review the license agreement on the novell site for redistribution of binaries from the SDK.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.