Novell is now a part of Micro Focus

Developer Pointers

Articles and Tips: article

01 May 1999


Novell Technical Information Documents

All of the Technical Information Documents (TIDs) discussed below are available at the following locations:

  • The Novell Technical Solutions Database on CompuServe (GO NTID)

  • The DeveloperNet Support World Wide Web site (http://devsup.novell.com)

  • The DeveloperNet Support Bulletin Board (801-861-5836)

DELPHI SAMPLE: ADD TRUSTEES ON LONG FILE NAMES


Author:

WSC

Document ID:

TID102071

Date:

1999/02/6 2:39 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

D3ADDTRS.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

none

Compiler:

Delphi 3.0

Target OS:

Windows 95

Abstract

This sample program allows you to experiment with different file formats (long names & DOS names) when assigning trustee rights to files or directories. It uses the Windows APIs to retrieve the long and short names of paths and files.

The program comes in two variants:

AddTrust.* as a GUI interface application for experimentation with path formats, LRights.* as a Win32 command line tool that emulates the functionality of the RIGHTS.EXE command to grant trustee rights, but adds the feature of allowing long file/path names.

General information on how to use Delphi with the NetWare SDK can be found in the HOW-TO.DOC file.

To run the application, you should have the NetWare client software installed and need access to the 16 bit or 32 bit NetWare DLLs as provided in the NetWare Client software:

CALWINxx.DLL
NETWINxx.DLL
CLXWINxx.DLL
LOCWINxx.DLL

where xx stands for `16' or `32'


NetWare SDK used:

NDK Nov 1998

Platform:

Windows 95/98/NT

Compilers:

Borland Delphi 2.x/3.x/4.x

Though it was not written for Delphi v1.x (16bit), it could be converted with only minor modifications.

APIs Used

NWAddTrustee
NWCCGetConnInfo
NWParsePath
NWDSGetContext
NWDSSetContext
NWDSMapNameToID
NWGetObjectID

File Information

Self-Extracting File Name: D3ADDTRS.EXE


Files Included:

Size

Date

Time

D3ADDTRS.TXT

(this file)

NWADMIN.ICO

766

2-6-99

2:39 PM

RIGHTSP.RES

876

2-6-99

2:39 PM

HOW-TO.DOC

9767

2-6-99

2:39 PM

ADDTRUST.RES

876

2-6-99

2:39 PM

MAIN.DFM

2928

2-6-99

2:39 PM

ADDTRUST.DPR

226

2-6-99

2:39 PM

ADDTRUST.DOF

1053

2-6-99

2:39 PM

LRIGHTS.RES

876

2-6-99

2:39 PM

UNIT1.PAS

2036

2-6-99

2:39 PM

ADDTRUST.DSK

3148

2-6-99

2:39 PM

LRIGHTS.EXE

43520

2-6-99

2:39 PM

LRIGHTS.DPR

7512

2-6-99

2:39 PM

LRIGHTS.DOF

1090

2-6-99

2:39 PM

LRIGHTS.DSK

3212

2-6-99

2:39 PM

MAIN.PAS

9537

2-6-99

2:39 PM

MAIN.DCU

15512

2-6-99

2:39 PM

ADDTRUST.EXE

267776

2-6-99

2:39 PM

READ.ME

1352

2-6-99

2:39 PM

UNIT1.DCU

1613

2-6-99

2:39 PM

D3ADDTRS.MSG

1337

2-6-99

2:39 PM

SAMPLE CODE ON NWSCANNSENTRYINFO() USING C++BUILDER


Author:

CMI

Document ID:

TID102072

Date:

1999/02/9 3:33 PM

Alert status:

Yellow

Information Type:

Issue

Readme for:

XNS01.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

none

Compiler:

C++ Builder 3.0

Target OS:

Windows 95

Abstract

Windows application which initializes a library, opens a connection, allocates a temporary buffer, and scans a server for all directories within a specific volume. Results given are volume numbers, entry name, and the original name space of the given entry.

File Information

Self-Extracting File Name: XNS01.EXE


Files Included:

Size

Date

Time

xns01.txt

(this file)

nwscannsentryinfo.tds

1179648

2-9-99

3:33 PM

nwscannsentryinfo.res

876

2-9-99

3:33 PM

nwscannsentryinfo.obj

20891

2-9-99

3:33 PM

main.cpp

5142

2-9-99

3:33 PM

nwscannsentryinfo.cpp

772

2-9-99

3:33 PM

nwscannsentryinfo.bpr

5414

2-9-99

3:33 PM

main.obj

47027

2-9-99

3:33 PM

main.h

1287

2-9-99

3:33 PM

main.dfm

1590

2-9-99

3:33 PM

nwscannsentryinfo.exe

27648

2-9-99

3:33 PM

xns01.msg

260

2-9-99

3:33 PM

DELPHI SAMPLE: SCAN DIRECTORY WITH LDAP ActiveX


Author:

WSC

Document ID:

TID102073

Date:

1999/02/12 10:31 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

D3LDAP1.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

None

Compiler:

Delphi 4.0

Target OS:

Windows 95

Abstract

D3XLDAP1 is a Delphi 3.x/4.x application that illustrates the use of Delphi with NetWare ActiveX controls. It will access the selected LDAP directory and allow you to browse and retrieve object and schema information using the ActiveX LDAP interface. By default it will try to connect to the Novell LDAP test directory at http://ldap.novell.com

This sample is based on the NW Internet Directory control v1.0

Prerequisites: NetWare Client 32

Installation of the NetWare ActiveX controls

You can download the latest controls from the DeveloperNet Web pages at http://developer.novell.com


Platform:

Windows 95/98/NT

Compilers:

Borland Delphi 3.x or 4.x

File Information

Self-Extracting File Name: D3LDAP1.EXE


Files Included:

Size

Date

Time

D3LDAP1.TXT

(this file)

D3LDAP1.DOF

1008

2-12-99

10:31 AM

UNIT1.DFM

1890

2-12-99

10:31 AM

UNIT1.DCU

12141

2-12-99

10:31 AM

READ.ME

709

2-12-99

10:31 AM

NWADMIN.ICO

766

2-12-99

10:31 AM

D3LDAP1.RES

876

2-12-99

10:31 AM

D3LDAP1.EXE

310784

2-12-99

10:31 AM

D3LDAP1.DSK

2304

2-12-99

10:31 AM

D3LDAP1.DPR

187

2-12-99

10:31 AM

UNIT1.PAS

9772

2-12-99

10:31 AM

D3LDAP1.MSG

694

2-12-99

10:31 AM

VB SAMPLE CODE FOR DRIVE MAPPING USING NWSESSION AX


Author:

RLE

Document ID:

TID102076

Date:

1999/02/22 5:45 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

VBMAP.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Visual Basic 5.0

Target OS:

Windows NT 4.0 WKS SP1

Abstract

VB sample code which demonstrates how to use NWSession ActiveX component to retrieve, create and delete drive mapping.

This sample requires existing connection(s) to the server(s).

Self-Extracting File Name: VBMAP.EXE


Files Included:

Size

Date

Time

VBMAP.TXT

(this file)

PROJECT1.VBW

51

2-22-99

5:44 AM

FORM1.FRM

7378

2-22-99

5:44 AM

PROJECT1.VBP

645

2-22-99

5:44 AM

VBMAP.MSG

184

2-22-99

5:44 AM

VB SAMPLE CODE WHICH DEMONSTRATES HOW TO GET SERVER'S UPTIME


Author:
RLE

Document ID:

TID102077

Date:

1999/02/22 6:14 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

VBUPTIME.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Visual Basic 5.0

Target OS:

Default

Abstract

VB sample code which demonstrates how to retrieve server's uptime and several other CPU related information using DLL calls.

Detailed Description

VB sample code which demonstrates how to retrieve server's uptime and several other CPU related information using DLL calls.

This code uses NWGetCPUInfo() function call which is available on 4.x and 5.x servers only! User should be already authenticated on given server before running this program.

Used DLL calls:

NWCallsInit(), NWCCOpenConnByName(), NWGetCPUInfo(), NWCCCloseConn()

File Information

Self-Extracting File Name: VBUPTIME.EXE


Files Included:

Size

Date

Time

VBUPTIME.TXT

(this file)

PROJECT1.VBW

50

2-22-99

6:14 AM

PROJECT1.VBP

624

2-22-99

6:14 AM

FORM1.FRM

7873

2-22-99

6:14 AM

FORM1.FRX

4

2-22-99

6:14 AM

VBUPTIME.MSG

127

2-22-99

6:14 AM

SAMPLE CODE WHICH DEMONSTRATES USAGE OF NWCLISKT AND NWSRVSKT ACTIVE X COMPONENTS


Author:

RLE

Document ID:

TID102078

Date:

1999/02/22 9:24 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

VBCHAT.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Visual Basic 5.0

Target OS:

Windows NT 4.0 WKS SP1

Abstract

VB sample code which demonstrates how to use NWCliSkt and NWSrvSkt ActiveX components. This sample is a simple peer-to-peer chat over TCP connection. For testing purpose you don't need two PCs to run this app. Just start it twice on the only PC and it will also work.

Detailed Description

VB sample code which demonstrates how to use NWCliSkt and NWSrvSkt ActiveX components. This sample is a simple peer-to-peer chat over TCP connection. You should run this application on two computers, once as a listening server and once as a connecting client. For testing purpose you can also run this application having the only PC.

Just run two instances of this program, as a listening server and as a client. It will also work and communicate (tested on WinNT only). Don't forget to switch focus to your LOCAL window (using mouse) if you want to see and send your text.

Entered text is char by char sent to the remote peer. Character is evaluated and used for very simple text edition. Only basic error handling is implemented to keep the code simple.

File Information

Self-Extracting File Name: VBCHAT.EXE


Files Included:

Size

Date

Time

VBCHAT.TXT

(this file)

PROJECT1.VBW

50

2-22-99

9:23 AM

FORM1.FRM

12257

2-22-99

9:23 AM

PROJECT1.VBP

758

2-22-99

9:23 AM

VBCHAT.MSG

271

2-22-99

9:23 AM

SAMPLE CODE USING NWSESS ActiveX COMPONENT IN HTML PAGE


Author:

RLE

Document ID:

TID102079

Date:

1999/02/25 5:43 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

AXNWSES1.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

Sample code which demonstrates how to use Novell`s ActiveX control NWSess in HTML page for getting info about current NetWare userID and DS tree name.

Detailed Description

Sample code which demonstrates how to use Novell`s ActiveX control NWSess in HTML document. This simple code shows how using NWSess ActiveX control current NetWare userID and DS tree name can be retrieved for identification purpose. Either local or remotely downloaded version of NWSess control can be utilized. In case of later possibility please make sure that:

  • you have entered valid path in tag section

  • your IE security option is appropriately set to allow remote components to be downloaded.

You need to use Microsoft`s Internet Explorer 4.x in order to run this demo because other browsers do not support Microsoft's AX object components and VBScripts.

File Information

Self-Extracting File Name: AXNWSES1.EXE


Files Included:

Size

Date

Time

AXNWSES1.TXT

(this file)

AXNWSES1.HTM

3935

2-25-99

5:43 AM

AXNWSES1.MSG

153

2-25-99

5:43 AM

SAMPLE CODE DEMONSTRATING HOW TO USE NWSESS CONTROL IN HTML


Author:

RLE

Document ID:

TID102080

Date:

1999/02/26 6:05 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

AXNWSES2.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

Sample code which demonstrates how to use Novell's ActiveX control NWSess in HTML document. This code shows how using NWSess ActiveX control various NetWare resources can be retrieved.

You need to use Microsoft`s Internet Explorer 4.x in order to run this demo because other browsers do not support Microsoft`s AX object components and VBScripts.

Detailed Description

Sample code which demonstrates how to use Novell's ActiveX control NWSess in HTML document. This code shows how using NWSess ActiveX control various NetWare resources can be retrieved.

You need to use Microsoft`s Internet Explorer 4.x in order to run this demo because other browsers do not support Microsoft`s AX object components and VBScripts.

Local version of NWSess control is used in this sample. It means that only PCs with locally installed NWSess AX control and NW client can run this sample code. You can allow your IE browser to download NWSess AX component from remote server using CODEBASE=... argument in OBJECT tag for NWSess AX component.

Some more OBJECT tags are used in this sample for inserting Microsoft Windows Forms ListBox, CommandButton and OptionButton.

File Information

Self-Extracting File Name: AXNWSES2.EXE


Files Included:

Size

Date

Time

AXNWSES2.TXT

(this file)

AXNWSES2.HTM

7060

2-26-99

6:04 AM

AXNWSES2.MSG

356

2-26-99

6:04 AM

REGISTERING A SERVICE TO MULTIPLE NAME SPACES USING WINSOCK 2 API


Author:

EEK

Document ID:

TID102082

Document revision:

B

Date:

1999/03/2 2:48 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E009.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

This program is intended to show how to register a service and also obtain name space independence with WinSock 2. It is intended to create a service named "DevNet" and add it to the SAP and SLP name spaces.

The service is deleted from the name spaces when the NLM is unloaded.

Detailed Description

To see that the service is registered to SLP name space, type "Display SLP Services" at the console. To see the instance of the SAP service, type Display Servers or load IPXCON.NLM and select Services.

Note: There may be intermittent problem with seeing the registered service on a NetWare 5 server without Support Pack 1 installed. You can download Support Pack 1 from http://support.novell.com/, click on "MINIMUM PATCH LIST".

File Information

Self-Extracting File Name: XWS2E009.EXE


Files Included:

Size

Date

Time

XWS2E009.TXT

(this file)

XWS2E009.MSG

282

3-2-99

2:48 PM

XWS2E009.TXT

2292

3-2-99

2:48 PM

SVCREG.NLM

9245

3-2-99

2:48 PM

SVCREG.C

7335

3-2-99

2:48 PM

RNRS.H

368

3-2-99

2:48 PM

SAMPLE CODE WHICH DEMONSTRATES HOW TO USE NWDIR CONTROL IN HTML DOCUMENT


Author:

RLE

Document ID:

TID102081

Date:

1999/03/2 5:01 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

AXNWDIR.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

None

Compiler:

Default

Target OS:

Windows 95

Abstract

Sample code which demonstrates how to use Novell's ActiveX control NWDir in HTML document.

This code shows how using NWDir ActiveX control objects and their attributes can be retrieved from the DS tree. Microsoft's Internet Explorer 4.x must be used in order to run this demo because other browsers do not support Microsoft's ActiveX object components and VBScript.

Detailed Description

Sample code which demonstrates how to use Novell's ActiveX control NWDir in HTML document. This code shows how using NWDir ActiveX control objects and their attributes can be retrieved from the DS tree. Microsoft's Internet Explorer 4.x must be used in order to run this demo because other browsers do not support Microsoft's ActiveX object components and VBScript.

Local versions of NWDir and NWSess controls is used in this sample. It means that only PCs with locally installed NWDir and NWSess controls (and also NW client) can run this sample code.

IExplorer browser is capable to download required AX component from the remote source when CODEBASE=... argument is used in tag for given ActiveX component.

Some more tags are used in this sample for inserting Microsoft Windows Forms components ListBox, ComboBox and CommandButton. In general there should not be problems in getting these objects from the local PC, these objects should be already installed and registered there (at least by IE).

Known problems and limitations:

  1. Only connected DS trees are shown and accessible. User must be logged-in prior to run this sample code.

  2. For DS tree listing CommandButon "List Container" must be used. This is not very common and comfortable way. The original idea was to use List1.DblClick event but as I found there is no way how to catch this event in IExplorer. If you know how to do it, please let me know.

  3. I did not find solution how to change mouse cursor in IE whenewer time consuming operation takes place in the HTML page. This might be rather confusing, especially if DS tree is quite a big one and any DS related operation takes its time. Again let me know, if you have solution for this.

  4. On PCs with only 32MBytes RAM IExplorer might complain that it is out of memory. This seems to be Microsoft's issue since there is usually lot of free resources on the PC.

File Information

Self-Extracting File Name: AXNWDIR.EXE


Files Included:

Size

Date

Time

AXNWDIR.TXT

(this file)

AXNWDIR.HTM

10615

3-2-99

5:00 AM

AXNWDIR.MSG

374

3-2-99

5:00 AM

RETRIEVING IP INTERFACE INFORMATION USING WINSOCK 2 API


Author:

EEK

Document ID:

TID102083

Date:

1999/03/3 4:01 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E012.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

None

Compiler:

MS Visual Studio 5.0

Target OS:

Windows 95

Abstract

WSAIoctl() with SIO_GET_INTERFACE_LIST to obtain interface information such as IP address, Network Mask, etc.

File Information

Self-Extracting File Name: XWS2E012.EXE


Files Included:

Size

Date

Time

XWS2E012.TXT

(this file)

GETIFLST.C

4216

3-3-99

4:01 PM

GETIFLST.EXE

81920

3-3-99

4:01 PM

XWS2E012.MSG

112

3-3-99

4:01 PM

NWCCSCANCONNINFO SAMPLE CODE.


Author:

CMI

Document ID:

TID102084

Date:

1999/03/4 4:43 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XDCONN1.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

None

Compiler:

Delphi 4.0

Target OS:

Windows 98

Abstract

Lists all current servers that the user is connected to by calling NWCCScanConnInfo(). NWCCScanConnInfo is an iterative function and the call is made initially by setting the iterator to 0.

File Information

Self-Extracting File Name: XDCONN1.EXE


Files Included:

Size

Date

Time

XDCONN1.TXT

(this file)

SCANCONN.RES

876

3-4-99

4:42 PM

SCANCONN.EXE

300032

3-4-99

4:42 PM

MAIN.DCU

4144

3-4-99

4:42 PM

SCANCONN.DOF

1490

3-4-99

4:42 PM

SCANCONN.CFG

607

3-4-99

4:42 PM

MAIN.PAS

4044

3-4-99

4:42 PM

MAIN.DFM

636

3-4-99

4:42 PM

SCANCONN.DPR

186

3-4-99

4:42 PM

XDCONN1.MSG

192

3-4-99

4:42 PM

NAME SPACE INDEPENDENCE SEARCH WITH WINSOCK 2


Author:

EEK

Document ID:

TID102086

Document Revision:

N

Date:

1999/03/4 5:34 PM

Alert status:

Yellow

Information Type:

Issue

Readme for:

XWS2E002.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

The sample program fssrch.c does a lookup for NetWare file servers in SAP and SLP. The NLM program will work on NetWare 4.11 with support pack 6 and NetWare 5.

Detailed Description

This program is intended to show how to obtain name space independence with WinSock.

The example is intended to find NetWare file servers in either IPX or IP Networks. The name spaces NetWare uses are SAP for IPX and SLP for IP. However, as this program will show, it is not necessary to know before hand which name space is loaded in order to find file server names and addresses.

File Information

Self-Extracting File Name: XWS2E002.EXE


Files Included:

Size

Date

Time

XWS2E002.TXT

(this file)

XWS2E002.MSG

161

3-4-99

5:33 PM

XWS2E002.TXT

2268

3-4-99

5:33 PM

RNRTUTORIAL.HTM

20270

3-4-99

5:33 PM

FSSRCH.C

11653

3-4-99

5:33 PM

FSSRCH.NLM

10669

3-4-99

5:33 PM

MAKEFILE

3278

3-4-99

5:33 PM

RNRC.H

1071

3-4-99

5:33 PM

NDS TREE SEARCH USING WINSOCK 2 API


Author:

EEK

Document ID:

TID102087

Document revision:

D

Date:

1999/03/4 5:35 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E003.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

This sample program is intended for NLM platform.

Detailed Description

This program is intended to show how to obtain name space independence with WinSock 2. The name space independence is accomplished with WinSock 2 Service Class. This example is intended to find NDS tree services using SLP and SAP.

File Information

Self-Extracting File Name: XWS2E003.EXE


Files Included:

Size

Date

Time

XWS2E003.TXT

(this file)

XWS2E003.MSG

51

3-4-99

5:35 PM

XWS2E003.TXT

1899

3-4-99

5:35 PM

RNRC.H

1071

3-4-99

5:35 PM

TREESRCH.C

11354

3-4-99

5:35 PM

TREESRCH.NLM

10554

3-4-99

5:35 PM

ENUMERATING WINSOCK NAME SPACE SERVICE PROVIDERS


Author:

EEK

Document ID:

TID102089

Date:

1999/03/4 6:13 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E006.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

Enumerate WinSock Name Space Service Providers with WSAEnumNameSpaceProviders().

File Information

Self-Extracting File Name: XWS2E006.EXE


Files Included:

Size

Date

Time

XWS2E006.TXT

(this file)

XWS2E006.MSG

82

3-4-99

6:13 PM

XWS2E006.TXT

1705

3-4-99

6:13 PM

ENUMNS.C

3146

3-4-99

6:13 PM

ENUMNS.NLM

3852

3-4-99

6:13 PM

ENUMERATING TRANSPORT SERVICE PROVIDERS


Author:

EEK

Document ID:

TID102090

Document revision:

C

Date:

1999/03/4 6:16 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E005.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

Enumerate transport service providers with WinSock API WSAEnumProtocols().

File Information

Self-Extracting File Name: XWS2E005.EXE


Files Included:

Size

Date

Time

XWS2E005.TXT

(this file)

XWS2E005.MSG

76

3-4-99

6:16 PM

XWS2E005.TXT

1690

3-4-99

6:16 PM

ENUMPROT.C

3310

3-4-99

6:16 PM

ENUMPROT.NLM

6179

3-4-99

6:16 PM

WINSOCK SPX SAMPLE PROGRAMS


Author:

EEK

Document ID:

TID102091

Document revision:

B

Date:

1999/03/6 1:27 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

XWS2E001.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Detailed Description

WinSock SPX sample programs:

WSECHO program:

This program first receives certain data size from the sending workstation. If the data size is less than 255 bytes, it sends OK. The sending workstation upon receiving OK will then send the real data.

This program receives it and then sends the same data back.

WSSEND program:

This program sends certain data size to the receiving workstation. If the receiving workstation sends back OK, this program then sends the real data. It then does another receive and displays the data it receives back.

File Information

Self-Extracting File Name: XWS2E001.EXE


Files Included:

Size

Date

Time

XWS2E001.TXT

this file)

XWS2E001.MSG

2

3-6-99

1:26 PM

XWS2E001.TXT

2261

3-6-99

1:26 PM

WSECHO.C

5139

3-6-99

1:26 PM

WSSEND.C

5704

3-6-99

1:26 PM

WSECHO.EXE

86016

3-6-99

1:26 PM

WSSEND.EXE

85504

3-6-99

1:26 PM

DELPHI SAMPLE: EXPERIMENT WITH CONTEXT FLAGS


Author:

WSC

Document ID:

TID102092

Date:

1999/03/7 12:07 PM

Alert status:

Yellow

Information type:

Issue

Readme for:

D3WHOAMI.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare NDK 1.0

Category:

None

Compiler:

Delphi 3.0

Target OS:

Windows 95

Abstract

D3WhoAmI shows how to ...

  • Get and Set a DS Context and Context Flags

  • Get and display the current DS user ID

  • Change the current server

  • Get and set connection handles

  • Get and evaluate the results of an NWDSWhoAmi API

It allows to experiment with different Context flags and check the results. General information on how to use Delphi with the NetWare SDK can be found in the HOW-TO.DOC file.

To run the application, you need have the NetWare client software installed.

This release is a minor update to the initial version (98/07) to reflect changes in the NDK units

NetWare SDK used: Vol 14 or higher (tested up to NDK edition 99/02)


Platform:

Windows/Win95/WinNT

Compilers:

Borland Delphi 3.x/4.x

Though it was not written for Delphi v1.x (16bit) it could be converted with only minor modifications.

Functions Used:

  • D3WhoAmI demonstrates the following NetWare API functions:

NWCallsInit
NWCCGetConnRef
NWCCGetConnRefInfo
NWCCGetPrimConnRef
NWCCOpenConnByRef
NWCCScanConnRefs
NWDSCreateContextHandle
NWDSGetBinderyContext
NWDSGetContext
NWDSGetServerDN
NWDSSetContext
NWDSWhoAmI
NWGetFileServerInformation
NWGetUnicodeToLocalHandle
NWUnicodeToLocal

File Information

Self-Extracting File Name: D3WHOAMI.EXE


Files Included:

Size

Date

Time

D3WHOAMI.TXT

(this file)

DELPHI_U.DCU

67003

3-7-99

12:06 PM

WHOAMI.EXE

394752

3-7-99

12:06 PM

WHOAMI.DPR

250

3-7-99

12:06 PM

WHOAMI.DOF

855

3-7-99

12:06 PM

READ.ME

1264

3-7-99

12:06 PM

MAIN.PAS

13706

3-7-99

12:06 PM

MAIN.DFM

4515

3-7-99

12:06 PM

MAIN.DCU

30572

3-7-99

12:06 PM

HOW-TO.DOC

9767

3-7-99

12:06 PM

DELPHI_U.PAS

86955

3-7-99

12:06 PM

WHOAMI.RES

876

3-7-99

12:06 PM

D3WHOAMI.MSG

1247

3-7-99

12:06 PM

DELPHI SAMPLE: CREATE CUSTOM NDS REPORTS


Author:
WSC

Document ID:

TID102093

Document revision:

B

Date:

1999/03/8 4:34 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

D3NDSRPT.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Detailed Description

DSReport is a Delphi 2.x/3.x/4.x application that illustrates the use of Delphi with NetWare APIs. It will allow you to run reports on any objects in an NDS tree. The resulting data can be exported into text, Excel, or QuattroPro files.

General information on how to use Delphi with the NetWare SDK can be found in the HOW-TO.DOC file.

To run the application, you should have the NetWare Client32 software installed.


NetWare SDK used:

NDK (Jan 99)

Platform:

Windows/95/98/NT

Compilers:

Borland Delphi 2.x/3.x/4.x

Though it was not written for Delphi v1.x (16bit), it could be converted with only minor modifications.

Functions Used:

  • D3NDSRpt demonstrates the following high-level functions:

DoSomethingForEachObject2
ReadSelectedProperties
DSFindFirstObject
DSFindNextObject
DSReadAvailableClasses
DSReadAvailableAttributes

These in term call the APIs

NWDSAllocBuf
NWDSComputeAttrValSize
NWDSCreateContextHandle
NWDSFreeBuf
NWDSFreeContext
NWDSGetAttrCount
NWDSGetAttrName
NWDSGetAttrVal
NWDSGetClassDefCount
NWDSGetClassDef
NWDSGetClassItemCount
NWDSGetClassItem
NWDSGetContext
NWDSGetObjectCount
NWDSGetObjectName
NWDSInitBuf
NWDSList
NWDSPutAttrName
NWDSPutClassItem
NWDSRead
NWDSReadClassDef
NWDSSetContext

Comment:

The unit MAIN.PAS mainly contains display formatting, defualt readings, etc. The key functions are a bit hidden in DELPHI_U.PAS DoSomethingForEachObject2 calls a 2nd function (ReadSelectedProperties) recursively for each matching object ReadSelectedProperties reads the selected property for the selected object.

DSFindFirstObject allows you to scan the NDS objects.

DSFindNextObject

DSReadAvailableClasses reads all NDS classes for a tree DSReadAvailableAttributes reads all NDS attributes for an object type.

These functions are so generic, they can serve many purposes. They encapsulate the low level NDS APIS and allow rapid application development with low level APIs.

File Information

Self-Extracting File Name: D3NDSRPT.EXE


Files Included:

Size

Date

Time

D3NDSRPT.TXT

(this file)

D3NDSRPT.MSG

2268

3-8-99

4:33 AM

D3NDSRPT.TXT

3767

3-8-99

4:33 AM

READ.ME

2274

3-8-9

4:33 AM

MAIN.PAS

19186

3-8-99

4:33 AM

MAIN.DFM

4929

3-8-99

4:33 AM

MAIN.DCU

15524

3-8-99

4:33 AM

HOW-TO.DOC

9767

3-8-99

4:33 AM

DELPHI_U.DCU

70741

3-8-99

4:33 AM

DSREPORT.INI

6419

3-8-99

4:33 AM

DSREPORT.EXE

546816

3-8-99

4:33 AM

DSREPORT.DSK

5008

3-8-99

4:33 AM

DSREPORT.DPR

199

3-8-99

4:33 AM

DSREPORT.DOF

1053

3-8-99

4:33 AM

DELPHI_U.PAS

91614

3-8-99

4:33 AM

DSREPORT.RES

876

3-8-99

4:33 AM

HOW TO EXPAND NDS OBJECTS TO UNC PATHS


Author:

HWI

Document ID:

TID102094

Date:

1999/03/9 8:19 AM

Alert status:

Yellow

Information type:

Issue

Readme for:

VBDSPATH.EXE

Novell product class:

NetWare API

Novell product and version:

NetWare default

Category:

None

Compiler:

Default

Target OS:

Default

Abstract

This TID shows how to extract UNC path information from NDS Volume and Directory Map objects.

It does this by implementing a DS browser dialog that lets you select files by double clicking and expanding objects in a treeview, much as you would in NWAdmin.

Sources are in Visual Basic 4.

Detailed Description

The sample uses the DeveloperNet 2000 ActiveX controls to build an NDS tree view that displays volume and directory map objects. Expanding these objects will allow the user to browse subdirectories and files. The dialog can be used as a lookup when entering UNC path information, such as for Application objects.

File Information

Self-Extracting File Name: VBDSPATH.EXE


Files Included:

Size

Date

Time

VBDSPATH.TXT

(this file)

VBPATH.VBW

153

3-9-99

8:18 AM

VBPATH.VBP

863

3-9-99

8:18 AM

TREE.ICO

1078

3-9-99

8:18 AM

RESOLVER.CLS

3483

3-9-99

8:18 AM

PATH.FRX

3176

3-9-99

8:18 AM

PATH.FRM

19742

3-9-99

8:18 AM

OPEN.ICO

1078

3-9-99

8:18 AM

FILE.ICO

1078

3-9-99

8:18 AM

CLOSED.ICO

1078

3-9-99

8:18 AM

DECLARE.BAS

2720

3-9-99

8:18 AM

DRIVER.BAS

1963

3-9-99

8:18 AM

VBDSPATH.MSG

290

3-9-99

8:18 AM


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates