Novell Home

TID100916 (NWCCDEMO) - nwccDemo

From Developer Community

nwcc.exe offers the user a GUI to execute most important NWCC api's

(connection services api's)

Goal:-get familiar with nwcc functions

-discover the difference between Connection States

(not logged in/authenticated to NDS/authenticated to nds + licensed)

Platform:Win95 or WINNT

To simulate nwcc functions , there are buttons:

  	ScannConnRefs	GetAllConnRefInfo

OpenConnByRef OpenConnByName

DSLogin AuthenticateConn

LicenseConn UnlicenseConn

SysCloseConnRef MakeConnPermanent

C++ source is included

TID100916 (NWCCDEMO) - nwccDemo

nwcc.exe offers the user a GUI to execute most important NWCC api's
(connection services api's)
Goal:-get familiar with nwcc functions
-discover the difference between Connection States
(not logged in/authenticated to NDS/authenticated to nds + licensed)

Platform:Win95 or WINNT

To simulate nwcc functions , there are buttons:
ScannConnRefs GetAllConnRefInfo
OpenConnByRef OpenConnByName
DSLogin AuthenticateConn
LicenseConn UnlicenseConn
SysCloseConnRef MakeConnPermanent
C++ source is included


DETAILED DESCRIPTION

nwcc.exe offers the user a GUI to execute most important 
NWCC api's (connection services api's)
and discover the difference between Connection States
(not logged in/authenticated to NDS/authenticated to nds + licensed)

Platform:Win95 or WINNT

To simulate nwcc functions , there are buttons:

ScannConnRefs GetAllConnRefInfo
OpenConnByRef OpenConnByName
DSLogin AuthenticateConn
LicenseConn UnlicenseConn
SysCloseConnRef MakeConnPermanent

To see how connection states unfluence what is possible ,
there are 2 additional buttons:
MapDrive, using NWSetDriveBase
ReadObject to read all attibutes of a NDS object.

(in the readme , a testscenario is found)
Included are 2 source files:
glnwcc.cpp
glnds.cpp

glnwcc.cpp

Following api's are used

NWCCScanConnRefs
NWCCGetConnRefInfo
NWCCOpenConnByName
NWCCOpenConnByRef
NWCCGetAllConnRefInfo
NWCCMakeConnPermanent;
NWCCUnlicenseConn
NWCCLicenseConn;
NWCCSysCloseConnRef


The main functionality of glnds.cpp is:
List a container.
Manipulate the context handle.
Read a NDS class.
Read a NDS attribute type.
Read a NDS object , where following syntax ID's are read:

SYN_BOOLEAN, SYN_COUNTER, SYN_INTEGER , SYN_TIME , 
SYN_INTERVAL:
SYN_CE_STRING, SYN_CI_STRING SYN_CLASS_NAME SYN_DIST_NAME 
SYN_NU_STRING:
SYN_PO_ADDRESS SYN_PR_STRING SYN_TEL_NUMBER 
SYN_OCTET_STRING
SYN_OBJECT_ACL SYN_FAX_NUMBER SYN_CI_LIST SYN_STREAM
SYN_BACK_LINK SYN_REPLICA_POINTER SYN_TYPED_NAME SYN_PATH

Following NDS functions are used:

NWDSAllocBuf
NWDSAuthenticateConn
NWDSComputeAttrValSize
NWDSCreateContextHandle
NWDSFreeBuf
NWDSGetAttrDef
NWDSGetAttrCount
NWDSGetAttrName
NWDSGetAttrVal
NWDSGetClassDefCount
NWDSGetClassDef
NWDSGetClassItemCount
NWDSGetClassItem
NWDSGetContext
NWDSGetObjectCount
NWDSGetObjectName
NWDSInitBuf
NWDSList
NWDSLogin
NWDSOpenStream
NWDSPutClassName
NWDSPutAttrName
NWDSRead
NWDSReadAttrDef
NWDSReadClassDef
NWDSSetContext

nwccdemo.exe

nwccdemo.exe318.6 K2005-04-06

--devsup

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.