Solved

How to call NWGetFileServerDateAndTime from nwcalls.dll

Posted on 1998-03-13
10
224 Views
Last Modified: 2010-04-04
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 http://doc1.provo.novell.com:80/current_sdk.htm 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 ???
0
Comment
Question by:egono
  • 5
  • 4
10 Comments
 
LVL 2

Expert Comment

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


0
 
LVL 2

Author Comment

by:egono
ID: 1360462
Hi Waldek,

I'd like to have the time from the server, not from the WS.
0
 
LVL 2

Author Comment

by:egono
ID: 1360463
Adjusted points to 200
0
 
LVL 4

Expert Comment

by:d003303
ID: 1360464
Do you have a C-header file for that library ? We could translate the function call from C to Delphi.
0
 
LVL 2

Author Comment

by:egono
ID: 1360465
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.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 4

Expert Comment

by:d003303
ID: 1360466
OK, I take a look at it.
Are you using Delphi 1 (because of the unit CALSRV16.PAS) ?
0
 
LVL 4

Accepted Solution

by:
d003303 earned 200 total points
ID: 1360467
Yo,
here is the correct declaration for 16 and 32 bit.

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

Function NWGetFileServerDateAndTime
(
   conn : NWCONN_HANDLE;
   dateTimeBuffer : pnuint8
) : NWCCODE;
{$IFDEF WIN32}
StdCall;
{$ENDIF}

{$IFNDEF WIN32}
function NWGetFileServerDateAndTime; external 'CALWIN16.DLL' index 116;
{$ELSE}
function NWGetFileServerDateAndTime; StdCall; external 'CALWIN32.DLL' index 116;
{$ENDIF}

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

Slash/d003303
0
 
LVL 2

Author Comment

by:egono
ID: 1360468
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
katrin.wetzke@mdr.de

many thx ...


0
 
LVL 2

Author Comment

by:egono
ID: 1360469
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 ???

0
 
LVL 4

Expert Comment

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

Slash/d003303
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

19 Experts available now in Live!

Get 1:1 Help Now