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
Solved

How to call NWGetFileServerDateAndTime from nwcalls.dll

Posted on 1998-03-13
10
234 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
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
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

837 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