Copyright: Copyright 1993, Novell, Inc.


NetWare API

Copyright Notice

Accounting Services	Apple Filing Protocol Services

Bindery Services	Connection Services

Diagnostics Services	Directory Services

Error Code Global Constants	File Services

File Server Environment Services	Message Services

Miscellaneous Services	Name Space Services

Print Services	Print Server Services

Print Queue Services	Service Advertising Protocol

Synchronization Services	Transaction Tracking Services

Workstation Environment Services


Accounting Services

Accounting Services Global Constants

AccountingInstalled	GetAccountStatus

SubmitAccountCharge	SubmitAccountHold

SubmitAccountNote


Apple Filing Protocol Services

AFPS Structures

AFPAllocTemporaryDirHandle	AFPCreateDirectory

AFPCreateFile	AFPDelete

AFPDirectoryEntry	AFPGetEntryIDFromName

AFPGetEntryIDFromNetWareHandle	AFPGetEntryIDFromPathName

AFPGetFileInformation	AFPOpenFileFork

AFPRename	AFPScanFileInformation

AFPSetFileInformation	AFPSupported


Bindery Services

Bindary Services Global Constants	Bindary Services Structures

AddBinderyObjectToSet	ChangeBinderyObjectPassword

ChangeBinderyObjectSecurity	ChangePropertySecurity

CloseBindery	CreateBinderyObject

CreateProperty	DeleteBinderyObject

DeleteBinderyObjectFromSet	DeleteProperty

GetBinderyAccessLevel	GetBinderyObjectDiskSpaceLeft

GetBinderyObjectID	GetBinderyObjectName

IsBinderyObjectInSet	OpenBindery

ReadPropertyValue	RenameBinderyObject

ScanBinderyObject	ScanBinderyObjectTrusteePaths

ScanProperty	VerifyBinderyObjectPassword

WritePropertyValue


Connection Services

Connection Services Structures

AttachToFileServer	AttachToFileServerWithAddress

DetachFromFileServer	EnterLoginArea

GetConnectionInformation	GetConnectionNumber

GetInternetAddress	GetObjectConnectionNumbers

GetStationAddress	LoginToFileServer

Logout	LogoutFromFileServer


Diagnostics Services

Diagnostic Services Global Constants	Diagnostic Services Structures

AbortSendingPackets	GetIPXSPXVersion

GetIPXStatistics	GetSPXStatistics

ReturnReceivedPacketCount	StartCountingPkts

StartSendingPkts

GetBridgeDriverConfiguration	GetBridgeDriverStatistics

GetBridgeDriverStatus	GetShellDriverConfiguration

GetShellDriverStatistics

BeginDiagnostics	EndDiagnostics

FindComponentOffset	GetOSVersionInfo

GetPrimaryServerNumber	GetServerAddressTable

GetServerNameTable	GetShellAddress

GetShellStatistics	GetShellVersionInfo

GetAllKnownNetWorks	GetAllKnownServers

GetBridgeStatistics	GetLocalTables

GetSpecificNetworkInfo	GetSpecificServerInfo


Directory Services

Directory Services Global Constants	Directory Services Structures

AddTrusteeToDirectory	AllocPermanentDirectoryHandle

AllocTemporaryDirectoryHandle	ClearVolRestrictions

CreateDirectory	DeallocateDirectoryHandle

DeleteDirectory	DeleteTrustee

DeleteTrusteeFromDirectory	GetCurrentDirectory

GetDirectoryHandle	GetDirectoryPath

GetDirEntry	GetDirInfo

GetDriveInformation	GetEffectiveDirectoryRights

GetEffectiveRights	GetObjectDiskRestrictions

GetSearchDriveVector	GetVolumeInformation

GetVolumeInfoWithHandle	GetVolumeInfoWithNumber

GetVolumeName	GetVolumeNumber

GetVolUsage	IsSearchDrive

MapDrive	MapDriveUsingString

MapV2TrusteeRightsToV3	MapV3TrusteeRightsToV2

ModifyMaximumRightsMask	MoveEntry

RenameDirectory	RestoreDirectoryHandle

SaveDirectoryHandle	ScanDirectoryForTrustees

ScanDirectoryInformation	ScanDirEntry

ScanDirRestrictions	ScanEntryForTrustees

ScanVolForRestrictions	SetDirectoryHandle

SetDirectoryInformation	SetDirRestriction

SetDrivePath	SetEntry

SetSearchDriveVector	SetTrustee

SetVolRestriction


Error Code Global Constants

uint SERVER_NOT_IN_USE	= 0

uint SHELL_VERSION_TOO_OLD	= 0

uint SUCCESSFUL	= 0

uint TTS_NOT_AVAILABLE	= 0

uint SEMAPHORE_OVERFLOW	= 1

uint SERVER_IN_USE	= 1

uint TTS_AVAILABLE	= 1

uint INVALID_MODE	= 125

uint FILE_IN_USE_ERROR	= 128

uint NO_MORE_FILE_HANDLES	= 129

uint NO_OPEN_PRIVILEGES	= 130

uint IO_ERROR_NETWORK_DISK	= 131

uint NO_CREATE_PRIVILEGES	= 132

uint NO_CREATE_DELETE_PRIVILEGES	= 133

uint CREATE_FILE_EXISTS_READ_ONLY	= 134

uint WILD_CARDS_IN_CREATE_FILE_NAME	= 135

uint INVALID_FILE_HANDLE	= 136

uint NO_SEARCH_PRIVILEGES	= 137

uint NO_DELETE_PRIVILEGES	= 138

uint NO_RENAME_PRIVILEGES	= 139

uint NO_MODIFY_PRIVILEGES	= 140

uint SOME_FILES_AFFECTED_IN_USE	= 141

uint NO_FILES_AFFECTED_IN_USE	= 142

uint SOME_FILES_AFFECTED_READ_ONLY	= 143

uint NO_FILES_AFFECTED_READ_ONLY	= 144

uint SOME_FILES_RENAMED_NAME_EXISTS	= 145

uint NO_FILES_RENAMED_NAME_EXISTS	= 146

uint NO_READ_PRIVILEGES	= 147

uint NO_WRITE_PRIVILEGES_OR_READONLY	= 148

uint FILE_DETACHED	= 149

uint SERVER_OUT_OF_MEMORY	= 150

uint NO_DISK_SPACE_FOR_SPOOL_FILE	= 151

uint VOLUME_DOES_NOT_EXIST	= 152

uint DIRECTORY_FULL	= 153

uint ERR_DIRECTORY_FULL	= 153

uint RENAMING_ACROSS_VOLUMES	= 154

uint BAD_DIRECTORY_HANDLE	= 155

uint INVALID_PATH	= 156

uint NO_MORE_TRUSTEES	= 156

uint NO_MORE_DIRECTORY_HANDLES	= 157

uint INVALID_FILENAME	= 158

uint DIRECTORY_ACTIVE	= 159

uint DIRECTORY_NOT_EMPTY	= 160

uint DIRECTORY_IO_ERROR	= 161

uint READ_FILE_WITH_RECORD_LOCKED	= 162

uint NW_BAD_DISK_NUMBER	= 163

uint NW_UNUSED_DISK_NUMBER	= 164

uint SEARCH_DRIVE_VECTOR_FULL	= 176

uint DRIVE_IS_NOT_MAPPED	= 177

uint CANT_MAP_LOCAL_DRIVE	= 178

uint INVALID_MAP_TYPE	= 179

uint INVALID_DRIVE_LETTER	= 180

uint NO_DRIVE_AVAILABLE	= 181

uint WORKSTATION_OUT_OF_MEMORY	= 182

uint NO_SUCH_SEARCH_DRIVE	= 183

uint PATH_ENVIRON_VARIABLE_INVALID	= 184

uint NO_ACCT_PRIVLEGES	= 192

uint LOGIN_DENIED_NO_ACCOUNT_BALANCE	= 193

uint NO_ACCT_BALANCE	= 193

uint ACCT_CREDIT_LIMIT_EXCEEDED	= 194

uint LOGIN_DENIED_NO_CREDIT	= 194

uint ACCT_TOO_MANY_HOLDS	= 195

uint INTRUDER_DETECTION_LOCK	= 197

uint NO_CONSOLE_OPERATOR	= 198

uint PASSWORD_NOT_UNIQUE	= 215

uint PASSWORD_TOO_SHORT	= 216

uint LOGIN_DENIED_NO_CONNECTION	= 217

uint UNAUTHORIZED_LOGIN_TIME	= 218

uint UNAUTHORIZED_LOGIN_STATION	= 219

uint ACCOUNT_DISABLED	= 220

uint PASSWORD_HAS_EXPIRED_NO_GRACE	= 222

uint PASSWORD_HAS_EXPIRED	= 223

uint NOT_ITEM_PROPERTY	= 232

uint WRITE_PROPERTY_TO_GROUP	= 232

uint MEMBER_ALREADY_EXISTS	= 233

uint NO_SUCH_MEMBER	= 234

uint NOT_GROUP_PROPERTY	= 235

uint NO_SUCH_SEGMENT	= 236

uint PROPERTY_ALREADY_EXISTS	= 237

uint OBJECT_ALREADY_EXISTS	= 238

uint INVALID_NAME	= 239

uint WILD_CARD_NOT_ALLOWED	= 240

uint IPX_NOT_INSTALLED	= 240

uint INVALID_BINDERY_SECURITY	= 241

uint NO_OBJECT_READ_PRIVILEGE	= 242

uint NO_OBJECT_RENAME_PRIVILEGE	= 243

uint NO_OBJECT_DELETE_PRIVILEGE	= 244

uint NO_OBJECT_CREATE_PRIVILEGE	= 245

uint NO_PROPERTY_DELETE_PRIVILEGE	= 246

uint NOT_SAME_LOCAL_DRIVE	= 246

uint NO_PROPERTY_CREATE_PRIVILEGE	= 247

uint TARGET_DRIVE_NOT_LOCAL	= 247

uint ALREADY_ATTACHED_TO_SERVER	= 248

uint NO_PROPERTY_WRITE_PRIVILEGE	= 248

uint NOT_ATTACHED_TO_SERVER	= 248

uint NO_FREE_CONNECTION_SLOTS	= 249

uint NO_PROPERTY_READ_PRIVILEGE	= 249

uint NO_MORE_SERVER_SLOTS	= 250

uint TEMP_REMAP_ERROR	= 250

uint INVALID_PARAMETERS	= 251

uint NO_SUCH_PROPERTY	= 251

uint UNKNOWN_REQUEST_	= 251

uint INTERNET_PACKET_REQT_CANCELED	= 252

uint UNKNOWN_FILE_SERVER	= 252

uint MESSAGE_QUEUE_FULL	= 252

uint NO_SUCH_OBJECT	= 252

uint BAD_STATION_NUMBER	= 253

uint INVALID_PACKET_LENGTH	= 253

uint UNKNOWN_REQUEST	= 253

uint FIELD_ALREADY_LOCKED	= 253

uint TTS_DISABLED	= 253

uint FSCOPY_DIFFERENT_NETWORKS	= 253

uint BINDERY_LOCKED	= 254

uint DIRECTORY_LOCKED	= 254

uint INVALID_SEMAPHORE_NAME_LENGTH	= 254

uint IMPLICIT_TRANSACTION_ACTIVE	= 254

uint PACKET_NOT_DELIVERABLE	= 254

uint SERVER_BINDERY_LOCKED	= 254

uint SOCKET_TABLE_FULL	= 254

uint SPOOL_DIRECTORY_ERROR	= 254

uint SUPERVISOR_HAS_DISABLED_LOGIN	= 254

uint TIMEOUT_FAILURE	= 254

uint TRANSACTION_ENDS_RECORDS_LOCKED	= 254

uint BAD_PRINTER_ERROR	= 255

uint BAD_RECORD_OFFSET	= 255

uint BINDERY_FAILURE	= 255

uint CLOSE_FCB_ERROR	= 255

uint EXPLICIT_TRANSACTION_ACTIVE	= 255

uint EXPLICIT_TRANSACTION_NOT_ACTIVE	= 255

uint FILE_EXTENSION_ERROR	= 255

uint FILE_NAME_ERROR	= 255

uint HARDWARE_FAILURE	= 255

uint INVALID_DIRECTORY_HANDLE	= 255

uint INVALID_DRIVE_NUMBER	= 255

uint INVALID_INITIAL_SEMAPHORE_VALUE	= 255

uint INVALID_SEMAPHORE_HANDLE	= 255

uint IO_BOUND_ERROR	= 255

uint NO_FILES_FOUND_ERROR	= 255

uint NO_RECORD_FOUND	= 255

uint NO_RESPONSE_FROM_SERVER	= 255

uint NO_SUCH_OBJECT_OR_BAD_PASSWORD	= 255

uint OLD_BETA_OR_BAD_DLL_PATH	= 255

uint PATH_ALREADY_EXISTS	= 255

uint PATH_NOT_LOCATABLE	= 255

uint QUEUE_FULL_ERROR	= 255

uint REQUEST_NOT_OUTSTANDING	= 255

uint SOCKET_ALREADY_OPEN	= 255

uint SOCKET_CLOSED	= 255

uint TRANSACTION_NOT_YET_WRITTEN	= 255

uint INVALID_CONNECTION_ID	= 257

//errors numbers 512 through 1023 are reserved for user interface

uint UNEXPECTED_INTERNAL_CONDITION	= 2989

uint ENVIRONMENT_OVERFLOW	= 65535

uint NO_SUCH_ENVIRON_VARIABLE	= 65535


File Services

File Services Global Contants	File Services Structures

EraseFiles	FileServerFileCopy

GetExtendedFileAttributes	PurgeAllErasedFiles

PurgeErasedFiles	PurgeSalvagableFile

RecoverSalvagableFile	RestoreErasedFile

ScanFileEntry	ScanFileInformation

ScanFilePhysical	ScanSalvagableFiles

SetExtendedFileAttributes	SetFileInformation


File Server Environment Services

File Server Environment Services Structures

CheckConsolePrivileges	CheckNetWareVersion

ClearConnectionNumber	DisableFileServerLogin

DisableTransactionTracking	DownFileServer

EnableFileServerLogin	EnableTransactionTracking

GetConnectionsOpenFiles	GetConnectionsSemaphores

GetConnectionsTaskInformation	GetConnectionsUsageStats

GetConnectionsUsingFile	GetDiskCacheStats

GetDiskChannelStats	GetDiskUtilization

GetDriveMappingTable	GetFileServerDateAndTime

GetFileServerDescriptionStrings	GetFileServerLANIOStats

GetFileServerLoginStatus	GetFileServerMiscInformation

GetFileServerName	GetFileSystemStats

GetLANDriverConfigInfo	GetLogicalRecordInformation

GetLogicalRecordByConnection	GetPathFromDirectoryEntry

GetPhysicalDiskStats	GetPhysicalRecordLocksByFile

GetPhysRecLockByConnectAndFile	GetSemaphoreInformation

GetServerInformation	SendConsoleBroadcast

SetFileServerDateAndTime


Message Services

BroadcastToConsole	CheckPipeStatus

CloseMessagePipe	DisableBroadcasts

EnableBroadcasts	GetBroadcastMessage

GetBroadcastMode	GetPersonalMessage

LogNetWorkMessage	OpenMessagePipe

SendBroadcastMessage	SendPersonalMessage

SetBroadcastMode


Miscellaneous Services

ASCIIZToLenStr	ConvertNameToFullPath

ConvertNameToVolumePath	GetFullPath

GetNetworkSerialNumber	IntSwap

IsV3Supported	LenToASCIIZStr

LongSwap	ParsePath

StripFileServerFromPath	VerifyNetworkSerialNumber


Name Space Services

//All Name Space functions apply to NetWare 3.x/4.x only

Name Space Services Global Constants

FillNameSpaceBuffer	GetDataStreamInfo

GetNameSpaceEntry	GetNameSpaceInfo

GetNumNameSpaceAndDataStreams


Print Services

Print Services Global Constants	Print Services Structures

CancelLPTCapture	CancelSpecificLPTCapture

EndLPTCapture	EndSpecificLPTCapture

FlushLPTCapture	FlushSpecificLPTCapture

GetBannerUserName	GetDefaultCaptureFlags

GetDefaultLocalPrinter	GetLPTCaptureStatus

GetPrinterQueue	GetPrinterStatus

GetSpecificCaptureFlags	SetBannerUserName

SetCapturePrintJob	SetCapturePrintQueue

SetDefaultCaptureFlags	SetDefaultLocalPrinter

SetSpecificCaptureFlags	SetSpoolFlags

SpecifyCaptureFile	StartLPTCapture

StartSpecificLPTCapture


Print Server Services

Print Server Services Global Constants	Print Server Services Structures

PSAbortPrintJob	PSAddNotifyObject

PSAddQueueToPrinter	PSAttachPrintServerToFileServer

PSAttachToPrintServer	PSCancelDownRequest

PSChangeNotifyInterval	PSChangeQueuePriority

PSChangeServiceMode	PSDeleteNotifyObject

PSDeleteQueueFromPrinter	PSDetachFromPrintServer

PSDetachPrtServerFromFileServer	PSDownPrintServer

PSEjectForm	PSGetAttachedServers

PSGetNextRemotePrinter	PSGetNotifyObject

PSGetPrintersServicingQueue	PSGetPrinterStatus

PSGetPrintJobStatus	PSGetPrintServerInfo

PSGetQueuesServiced	PSLoginToPrintServer

PSMarkTopOfForm	PSRequestRemotePrinter

PSRewindPrintJob	PSSetMountedForm

PSSetRemoteMode	PSStartPrinter

PSStopPrinter


Print Queue Services

Print Queue Services Global Constants	Print Queue Services Structures

AbortServicingQueueJobAndFile	AttachQueueServerToQueue

ChangeQueueJobEntry	ChangeQueueJobPosition

ChangeToClientRights	CloseFileAndAbortQueueJob

CloseFileAndStartQueueJob	CreateQueue

CreateQueueJobAndFile	DestroyQueue

DetachQueueServerFromQueue	FinishServicingQueueJobAndFile

GetQueueJobList	GetQueueJobsFileSize

ReadQueueCurrentStatus	ReadQueueJobEntry

ReadQueueServerCurrentStatus	RemoveJobFromQueue

RestoreQueueServerRights	ServiceQueueJobAndOpenFile

SetQueueCurrentStatus	SetQueueServerCurrentStatus


Service Advertising Protocol

Service Advertising Protocol Structures

AdvertiseService	QueryServices

ShutdownSAP


Synchronization Services

ClearFile	ClearFileSet

ClearLogicalRecord	ClearLogicalRecordSet

ClearPhysicalRecord	ClearPhysicalRecordSet

CloseSemaphore	ExamineSemaphore

GetLockMode	LockFileSet

LockLogicalRecordSet	LockPhysicalRecordSet

LogFile	LogLogicalRecord

LogPhysicalRecord	OpenSemaphore

ReleaseFile	ReleaseFileSet

ReleaseLogicalRecord	ReleaseLogicalRecordSet

ReleasePhysicalRecord	ReleasePhysicalRecordSet

SetLockMode	SignalSemaphore

WaitOnSemaphore


Transaction Tracking Services

Transaction Tracking Services Structures

TTSAbortTransaction	TTSBeginTransaction

TTSEndTransaction	TTSGetApplicationThresholds

TTSGetStats	TTSGetWorkstationThresholds

TTSIsAvailable	TTSSetApplicationThresholds

TTSSetWorkstationThresholds	TTSTransactionStatus


Workstation Environment Services

EndOfJob	GetConnectionID

GetDefaultConnectionID	GetNetWareShellVersion

GetNumberOfLocalDrives	GetPreferredConnectionID

GetPrimaryConnectionID	GetWorkstationEnvironment

IsConnectionIDInUse	SetEndOfJobStatus

SetNetWareErrorMode	SetPreferredConnectionID

SetPrimaryConnectionID


AccountingInstalled

Function Integer AccountingInstalled ( int ConnectionID ) Library "NWNETAPI.DLL"


GetAccountStatus

Function Integer GetAccountStatus ( int BinderyObjectType, string BinderyObjectName, ref int Balance, ref int Limit, ref int Holds ) Library "NWNETAPI.DLL"


SubmitAccountCharge

Function Integer SubmitAccountCharge  ( int BinderyObjectType, string

BinderyObjectName, int ServiceType, int ChargeAmount, int CancelHoldAmount, int CommentType, string Comment ) Library "NWNETAPI.DLL"


SubmitAccountHold

Function Integer SubmitAccountHold ( int BinderyObjectType, string

BinderyObjectName, int ReserveAmount ) Library "NWNETAPI.DLL"


SubmitAccountNote

Function Integer SubmitAccountNote ( int BinderyObjectType, string

BinderyObjectName, int ServiceType, int CommentType, int CommentLen, string

Comment ) Library "NWNETAPI.DLL"


Accounting Services Global Constants

int CHARGE_RECORD	= 1

int NOTE_RECORD	= 2

int CONNECT_TIME_CHARGE_NOTE	= 1

int DISK_STORAGE_CHARGE_NOTE	= 2

int LOGIN_NOTE	= 3

int LOGOUT_NOTE	= 4

int ACCOUNT_LOCKED_NOTE	= 5

int SERVER_TIME_MODIFIED_NOTE	= 6


AFPAllocTemporaryDirHandle

Function Integer AFPAllocTemporaryDirHandle ( int ConnectionID, int VolumeNum, int AFPEntryID, string AFPPathString, int NetWareDirectoryHandle, int AccessRights ) LIBRARY "NWNETAPI.DLL"


AFPCreateDirectory

Function Integer AFPCreateDirectory ( int ConnectionID, int VolumeNum, long AFPEntryID, AFP_FINDER_INFO FinderInfo, ref string AFPPathString, ref int NewAFPEntryID ) Library "NWNETAPI.DLL"


AFPCreateFile

Function Integer AFPCreateFile ( int ConnectionID, int VolumeNum, long AFPEntryID, int DeleteExistingFile, long FinderInfo, string AFPPathString, long NewAFPEntryID ) Library "NWNETAPI.DLL"


AFPDelete

Function Integer AFPDelete ( int ConnectionID, int VolumeNum, long AFPEntryID, string AFPPathString ) Library "NWNETAPI.DLL"


AFPDirectoryEntry

Function Integer AFPDirectoryEntry ( int ConnectionID, int DirectoryHandle, string PathName ) Library "NWNETAPI.DLL"


AFPGetEntryIDFromName

Function Integer AFPGetEntryIDFromName ( int ConnectionID, int VolumeNum, long AFPEntryID, string AFPPathString, ref long NewAFPEntryID ) Library "NWNETAPI.DLL"


AFPGetEntryIDFromNetWareHandle

Function Integer AFPGetEntryIDFromNetWareHandle ( FILE_HANDLE NetWareHandle, ref int VolumeNum, ref long AFPEntryID, ref int ForkIndicator ) Library "NWNETAPI.DLL"


AFPGetEntryIDFromPathName

Function Integer AFPGetEntryIDFromPathName ( int ConnectionID, long DirectoryHandle, string PathName, ref long AFPEntryID ) Library "NWNETAPI.DLL"


AFPGetFileInformation

Integer Function AFPGetFileInformation ( int ConnectionID, int VolumeNum, long AFPEntryID, int RequestBitMap, string AFPPathString, int StructSize, AFP_FILE_INFO AFPFileInfo ) Library "NWNETAPI.DLL"


AFPOpenFileFork

Function Integer AFPOpenFileFork ( int ConnectionID, int VolumeNum, long AFPEntryID, int ForkIndicator, int AccessMode, string AFPPathString, ref long FileID, ref long ForkLength, ref int NetWareHandle, ref int FileHandle ) Library "NWNETAPI.DLL"


AFPRename

Function Integer AFPRename ( int ConnectionID, int VolumeNum, long AFPSourceEntryID, long AFPDestEntryID, string AFPSourcePath, string AFPDestPath) Library "NWNETAPI.DLL"


AFPScanFileInformation

Function Integer AFPScanFileInformation ( int ConnectionID, int VolumeNum, long AFPEntryID, ref long AFPLastSeenID, int SearchBitMap, int RequestBitMap, string AFPPath, int StructSize, AFP_FILE_INFO AFPFileInfo ) Library "NWNETAPI.DLL"


AFPSetFileInformation

Function Integer AFPSetFileInformation ( int ConnectionID, int VolumeNum, long AFPEntryID, int RequestBitMap, string AFPPathString, int StructSize, AFP_SET_INFO AFPSetInfo ) Library "NWNETAPI.DLL"


AFPSupported

Function Integer AFPSupported ( int ConnectionID ) Library "NWNETAPI.DLL"


AFPS Structures

FILE_HANDLE

AFP_FINDER_INFO

AFP_FILE_INFO

AFP_SET_INFO


FILE_HANDLE

Handle	string


AFP_FINDER_INFO

Info	string


AFP_FILE_INFO

EntryID	long

ParentID	long

Attributes	integer

DataForkLength	long

ResourceForkLength	long

NumOffspring	integer

CreationDate	integer

AccessDate	integer

ModifyDate	integer

ModifyTime	integer

BackupDate	integer

BackupTime	integer

FinderInfo	AFP_FINDER_INFO

Longname	string

Pad1	string

OwnerID	long

ShortName	string

Pad2	string

AccessPrivileges	integer


AFP_SET_INFO

Attributes	integer

CreationDate	integer

AccessDate	integer

ModifyDate	integer

ModifyTime	integer

BackupDate	integer

BackupTime	integer

FinderInfo	AFP_FINDER_INFO


AddBinderyObjectToSet

Function Integer AddBinderyObjectToSet ( string ObjectName, int ObjectType, string PropertyName, string MemberName, int MemberType ) Library "NWNETAPI.DLL"


ChangeBinderyObjectPassword

Function Integer ChangeBinderyObjectPassword ( string ObjectName, int ObjectType, string OldPassword, string NewPassword ) Library "NWNETAPI.DLL"


ChangeBinderyObjectSecurity

Function Integer ChangeBinderyObjectSecurity ( string ObjectName, int ObjectType, int NewObjectSecurity ) Library "NWNETAPI.DLL"


ChangePropertySecurity

Function Integer ChangePropertySecurity ( string ObjectName, int ObjectType, string PropertyName, int NewPropertySecurity ) Library "NWNETAPI.DLL"


CloseBindery

Function Integer CloseBindery ( ) Library "NWNETAPI.DLL"


CreateBinderyObject

Function Integer CreateBinderyObject ( string ObjectName, int ObjectType, int ObjectFlag, int ObjectSecurity ) Library "NWNETAPI.DLL"


CreateProperty

Function Integer CreateProperty ( string ObjectName, int ObjectType, string PropertyName, int PropertyFlags, int PropertySecurity ) Library "NWNETAPI.DLL"


DeleteBinderyObject

Function Integer DeleteBinderyObject ( string ObjectName, int ObjectType ) Library "NWNETAPI.DLL"


DeleteBinderyObjectFromSet

Function Integer DeleteBinderyObjectFromSet ( string ObjectName, int ObjectType, string PropertyName, string MemberName, int MemberType ) Library "NWNETAPI.DLL"


DeleteProperty

Function Integer DeleteProperty ( string ObjectName, int ObjectType, string PropertyName ) Library "NWNETAPI.DLL"


GetBinderyAccessLevel

Function Integer GetBinderyAccessLevel  ( ref int SecurityAccessLevel, ref long ObjectID ) Library "NWNETAPI.DLL"


GetBinderyObjectDiskSpaceLeft

Function Integer GetBinderyObjectDiskSpaceLeft ( int ConnectionID, int BinderyObjectID, long SystemElapsedTime, ref long UnusedDiskBlocks, ref int RestrictionEnforced ) Library "NWNETAPI.DLL"


GetBinderyObjectID

Function Integer GetBinderyObjectID ( string ObjectName, int ObjectType, ref long ObjectID ) Library "NWNETAPI.DLL"


GetBinderyObjectName

Function Integer GetBinderyObjectName ( long ObjectID, string ObjectName, ref int ObjectType ) Library "NWNETAPI.DLL"


IsBinderyObjectInSet

Function Integer IsBinderyObjectInSet ( string ObjectName, int ObjectType, string PropertyName, string MemberName, int MemberType ) Library "NWNETAPI.DLL"


OpenBindery

Function Integer OpenBindery ( ) Library "NWNETAPI.DLL"


ReadPropertyValue

Function Integer ReadPropertyValue ( string ObjectName, int ObjectType, string PropertyName, int SegmentNumber, PROPERTY_VALUE PropertyValue, ref int MoreSegments, ref int PropertyFlags ) Library "NWNETAPI.DLL"


RenameBinderyObject

Function Integer RenameBinderyObject ( string ObjectName, string NewObjectName, int ObjectType ) Library "NWNETAPI.DLL"


ScanBinderyObject

Function Integer ScanBinderyObject ( string SearchObjectName, int SearchObjectType, ref long ObjectID, string ObjectName, int ObjectType, ref int ObjectHasProperties, ref int ObjectFlag, ref int ObjectSecurity ) Library "NWNETAPI.DLL"


ScanBinderyObjectTrusteePaths

Function Integer ScanBinderyObjectTrusteePaths ( long ObjectID, int VolumeNumber, ref int SequenceNumber, ref int TrusteeAccessMask, string TrusteePathName ) Library "NWNETAPI.DLL"

//TrusteePathName must be initialized to 255 characters


ScanProperty

Function Integer ScanProperty ( string ObjectName, int ObjectType, string SearchPropertyName, ref long SequenceNumber, string PropertyName, ref int PropertyFlags, ref int PropertySecurity, ref int PropertyHasValue, ref int MoreProperties ) Library "NWNETAPI.DLL"


VerifyBinderyObjectPassword

Function Integer VerifyBinderyObjectPassword ( string ObjectName, int ObjectType, string Password ) Library "NWNETAPI.DLL"


WritePropertyValue

Function Integer WritePropertyValue ( string objectName, int ObjectType, string PropertyName, int SegmentNumber,  PROPERTY_VALUE PropertyValue, int MoreSegments ) Library "NWNETAPI.DLL"


Bindary Services Global Constants

ObjectType

ObjectSecurity

PropertyHasValue


ObjectType

int OT_WILD	= -1 // Matches any type

int OT_UNKNOWN	= 0  // Unknown object type

int OT_USER	= 1  // The object is a "user"

int OT_USER_GROUP	= 2  // A group of users

int OT_PRINT_QUEUE	= 3  // Services print queues

int OT_FILE_SERVER	= 4  // The object serves files

int OT_JOB_SERVER	= 5

int OT_GATEWAY	= 6

int OT_PRINT_SERVER	= 7

int OT_ARCHIVE_QUEUE	= 8

int OT_ARCHIVE_SERVER	= 9  // Services backup jobs

int OT_JOB_QUEUE	= 10

int OT_ADMINISTRATION	= 11

int OT_NAS_SNA_GATEWAY	= 33

int OT_NACS	= 35

int OT_REMOTE_BRIDGE_SERVER	= 36

int OT_BRIDGE_SERVER	= 38

int OT_TCPIP_GATEWAY	= 39

int OT_GATE	= 41

int OT_TIME_SYNCHRONIZATION_SERVER	= 45

int OT_ARCHIVE_SRV	= 46

int OT_ADVERTISING_PRINT_SERVER	= 71

int OT_BTRIEVE_VAP_NLM_5XX	= 75

int OT_SQL_VAP_NLM	= 76

int OT_XTREE_NETWORK	= 77

int OT_BTRIEVE_VAP_NLM_4XX	= 80

int OT_APPLETALK_GATEWAY	= 83

int OT_X25_GATEWAY	= 88

int OT_WAN_COPY	= 114

int OT_TES_NETWARE_VMS	= 122

int OT_NETWARE_ACCESS_SERVER	= 152

int OT_PORTABLE_NETWARE	= 158

int OT_COMPAQ_IDA_STATUS_MONITOR	= 172

int OT_NETWARE_386_SERVER	= 263

int OT_CSA_MUX	= 276

int OT_CSA_LCA	= 277

int OT_CSA_CM	= 278

int OT_CSA_SMA	= 279

int OT_CSA_DBA	= 280

int OT_CSA_NMA	= 281

int OT_CSA_SSA	= 282

int OT_CSA_STATUS	= 283

int OT_CSA_APPC	= 286

int OT_SNA_TEST	= 294

int OT_CSA_TRACE	= 298

int OT_COMMUNICATIONS_EXECUTIVE	= 304

int OT_NNS_DOMAIN	= 307

int OT_NNS_PROFILE	= 309

int OT_NNS_QUEUE	= 311

int OT_WORDPERFECT_NETWORK	= -2184


ObjectSecurity

int BS_ANY_READ	= 0 // Readable by anyone

int BS_LOGGED_READ	= 1 // Must be logged in to read

int BS_OBJECT_READ	= 2 // Readable by same object or super

int BS_SUPER_READ	= 3 // Readable by supervisor only

int BS_BINDERY_READ	= 4 // Readable only by the bindery

int BS_ANY_WRITE	= 0 // Writeable by anyone

int BS_LOGGED_WRITE	= 16 // Must be logged in to write

int BS_OBJECT_WRITE	= 32 // Writeable by same object or super

int BS_SUPER_WRITE	= 48 // Writeable only by the supervisor

int BS_BINDERY_WRITE	= 64 // Writeable by the bindery only


PropertyHasValue

int BF_STATIC	= 0

int BF_DYNAMIC	= 1

int BF_ITEM	= 0

int BF_SET	= 2


Bindary Services Structures

PROPERTY_VALUE


PROPERTY_VALUE

PropertyValue[ ]	string


AttachToFileServer

Function Integer AttachToFileServer ( string ServerName, ref int ConnectionID ) Library "NWNETAPI.DLL"


AttachToFileServerWithAddress

Function Integer AttachToFileServerWithAddress ( string ServerName, ref int ConnectionID, int NetAddress ) Library "NWNETAPI.DLL"


DetachFromFileServer

Function Integer DetachFromFileServer ( int ConnectionID ) Library "NWNETAPI.DLL"


EnterLoginArea

Function Integer EnterLoginArea ( string LoginSubdirectoryName, int NumberOfLocalDrives ) Library "NWNETAPI.DLL"


GetConnectionInformation

Function Integer GetConnectionInformation ( long ConnectionNumber, string ObjectName, ref int ObjectType, ref int ObjectID, ref DATE_AND_TIME loginTime ) Library "NWNETAPI.DLL"


GetConnectionNumber

Function Long GetConnectionNumber ( ) Library "NWNETAPI.DLL"


GetInternetAddress

Function Integer GetInternetAddress ( long ConnectionNumber, ref long NetworkNumber, ref NodeAddress PhysicalNodeAddress, ref int SocketNumber ) Library "NWNETAPI.DLL"


GetObjectConnectionNumbers

Function Integer GetObjectConnectionNumbers ( string ObjectName, int ObjectType, ref long NumberOfConnections, ref long ConnectionList, long MaxConnections ) Library "NWNETAPI.DLL"


GetStationAddress

Function Integer GetStationAddress ( ref NodeAddress PhysicalNodeAddress ) Library "NWNETAPI.DLL"


LoginToFileServer

Function Integer LoginToFileServer ( string ObjectName, int ObjectType, string ObjectPassword ) Library "NWNETAPI.DLL"


Logout

Function Integer Logout ( ) Library "NWNETAPI.DLL"


LogoutFromFileServer

Function Integer LogoutFromFileServer ( int ConnectionID ) Library "NWNETAPI.DLL"


Connection Services Structures

DATE_AND_TIME


DATE_AND_TIME

Year	string

Month	string

Date	string

Hour	string

Minute	string

Second	string

Day	string


AbortSendingPackets

Function Integer AbortSendingPackets ( int ConnectionID, int ComponentNumber ) Library "NWIPXSPX.DLL"


GetIPXSPXVersion

Function Integer GetIPXSPXVersion ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref ReturnReceivedPacketStruct ResponseData ) Library "NWIPXSPX.DLL"


GetIPXStatistics

Function Integer GetIPXStatistics ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref IPXStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


GetSPXStatistics

Function Integer GetSPXStatistics ( int ConnectionID, int

ComponentNumber, ref AllResponseData Response, ref SPXStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


StartCountingPkts

Function Integer StartCountingPkts ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref StartCountingPacketsStruct ResponseData ) Library "NWIPXSPX.DLL"


StartSendingPkts

Function Integer StartSendingPktsTimed ( int ConnectionID, int ComponentNumber, ref SendPacketsRequestStruct RequestData, ref AllResponseData Response, ref SendPacketsResponseStruct ResponseData, int Ticks ) Library "NWIPXSPX.DLL"


GetBridgeDriverConfiguration

Function Integer GetBridgeDriverConfiguration ( int ConnectionID, int ComponentNumber, int LANBoardNumber, ref AllResponseData Response, ref DriverConfigurationStruct ResponseData ) Library "NWIPXSPX.DLL"


GetBridgeDriverStatistics

Function Integer GetBridgeDriverStatistics ( int ConnectionID, int ComponentNumber, int LANBoardNumber, ref AllResponseData Response, ref DriverStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


GetBridgeDriverStatus

Function Integer GetBridgeDriverStatus ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref BridgeDriverStatusStruct ResponseData ) Library "NWIPXSPX.DLL"


GetShellDriverConfiguration

Function Integer GetShellDriverConfiguration ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref DriverConfigurationStruct ResponseData ) Library "NWIPXSPX.DLL"


GetShellDriverStatistics

Function Integer GetShellDriverStatistics ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref DriverStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


BeginDiagnostics

Function Integer BeginDiagnostics ( ref BeginDiagnosticStruct Destination, ref int ConnectionID, ref ComponentList CompList ) Library "NWIPXSPX.DLL"


EndDiagnostics

Function Integer EndDiagnostics ( int ConnectionID ) Library "NWIPXSPX.DLL"


FindComponentOffset

Function Integer FindComponentOffset ( ref ComponentList CompList, int ComponentID ) Library "NWIPXSPX.DLL"


GetOSVersionInfo

Function Integer GetOSVersionInfo ( int ConnectionID, int ComponentNumber, ref AllResponseData response, ref OSVersionStruct ResponseData ) Library "NWIPXSPX.DLL"


GetServerAddressTable

Function Integer GetServerAddressTable ( int ConnectionID, int ComponentNumber,  ref AllResponseData Response, ref ServerAddressTableStruct ResponseData ) Library "NWIPXSPX.DLL"


GetServerNameTable

Function Integer GetServerNameTable ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref ServerNameTableStruct ResponseData ) Library "NWIPXSPX.DLL"


GetShellAddress

Function Integer GetShellAddress ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref IPXAddress ResponseData ) Library "NWIPXSPX.DLL"


GetShellStatistics

Function Integer GetShellStatistics ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref ShellStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


GetAllKnownNetWorks

Function Integer GetAllKnownNetWorks ( int ConnectionID, int ComponentNumber, int NextNetworkOffset, ref AllResponseData Response, ref AllKnownNetworksStruct ResponseData ) Library "NWIPXSPX.DLL"


GetBridgeStatistics

Function Integer GetBridgeStatistics ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref BridgeStatisticsStruct ResponseData ) Library "NWIPXSPX.DLL"


GetLocalTables

Function Integer GetLocalTables ( int ConnectionID, int

ComponentNumber, ref AllResponseData Response, ref LocalTablesStruct ResponseData ) Library "NWIPXSPX.DLL"


GetSpecificNetworkInfo

Function Integer GetSpecificNetworkInfo ( int ConnectionID, int ComponentNumber, ref long NetworkAddress, ref SpecificNetworkInfoStruct ResponseData ) Library "NWIPXSPX.DLL"


Diagnostic Services Global Constants

int MAX_NETWORKS	= 120

int MAX_SERVERS	= 150

int MAX_NODES	= 120

int MAX_EXCLUSIONS	= 80

int MAX_COMPONENTS	= 10

int MAX_LOCAL_NETWORKS	= 4

int MAX_ROUTES	= 47

int MAX_IPX_PACKET_SIZE	= 576

int IPX_SPX_COMPONENT	= 0

int BRIDGE_DRIVER_COMPONENT	= 1

int SHELL_DRIVER_COMPONENT	= 2

int SHELL_COMPONENT	= 3

int VAP_SHELL_COMPONENT	= 4

int BRIDGE_COMPONENT	= 5

int FILE_SERVER_COMPONENT	= 6

int NONDEDICATED_IPX_SPX_COMPONENT	= 7

int IPX_ONLY	= 8

int NO_ERRORS	= 0

int COULD_NOT_GET_LOCAL_TARGET	= 255

int COULD_NOT_OPEN_SOCKET	= 254

int COULD_NOT_BEGIN_CONNECTION	= 253

int COULD_NOT_ESTABLISH_CONNECTION	= 252

int COULD_NOT_TERMINATE_CONNECTION	= 251

int BAD_CONNECTION_ID	= 250

int COULD_NOT_SEND_REQUEST	= 249

int RECEIVED_REPLY_IN_ERROR	= 248

int NETWORK_NOT_FOUND	= 239

int NO_RESPONSE_FROM_DESTINATION	= 238

int RESPONSE_COMPLETION_CODE_BAD	= 237

int LIST_SIZE_TOO_SMALL	= 236

int INTERNAL_LIST_ERROR	= 235

int NODE_NOT_FOUND_OR_NO_RESPONSE	= 234

int MEMORY_ALLOCATION_ERROR	= 233

int VERSION_DOES_NOT_SUPPORT	= 232


Diagnostic Services Structures

NodeAddress

IPXAddress

IPXHeader

SPXHeader

ECBFragment

ECB

CONNECTION_INFO

BeginDiagnosticStruct

AllResponseData

IPXSPXVersion

IPXStatisticsStruct

SPXStatisticsStruct

ReturnReceivedPacketStruct

StartCountingPacketsStruct

SendPacketsRequestStruct

SendPacketsResponseStruct

DriverConfigurationStruct

DriverStatisticsStruct

BridgeDriverStatusStruct

ComponentList

OSVersionStruct

PrimaryServerStruct

ServerAddressTableStruct

ServerNameTableStruct

ShellStatisticsStruct

ShellVersionStruct

AllKnownNetworksStruct

ServerInfoStruct

AllKnownServersStruct

BridgeStatisticsStruct

LOCAL_ADDRESS

RoutingInfoStruct

SpecificNetworkInfoStruct

RouteSourceInfoStruct

SpecificServerInfoStruct


NodeAddress

NodeHi	long

NodeLo	integer


IPXAddress

Network	long

NodeAddr	NodeAddress

Socket	integer


IPXHeader

CheckSum	integer

Length	integer

TransportControl	string

PacketType	string

Destination	IPXAddress

Source	IPXAddress


SPXHeader

CheckSum	integer

Length	integer

TransportControl	string

PacketType	string

Destination	IPXAddress

Source	IPXAddress

ConnectionControl	string

DataStreamType	string

SourceConnectionID	integer //high-low unsigned

DestConnectionID	integer //high-low unsigned

SequenceNumber	integer //high-low unsigned

AcknowledgeNumber	integer //high-low unsigned

AllocationNumber	integer //high-low unsigned


ECBFragment

Address	long

Size	integer


ECB

LinkAddress	long

EsrAddress	long

InUseFlag	string

CompletionCode	string

SocketNumber	integer

IpxWorkspace	string

DriverWorkspace	string

ImmediateAddress	IPXAddress

FragmentCount	integer

FragmentDescriptor	ECBFragment


CONNECTION_INFO

ConnectionState	string

ConnectionFlags	string

SourceConnectionID	integer //high-low byte order

DestinationConnectionID	integer //hi-lo

SequenceNumber	integer //hi-lo

AcknowlegeNumber	integer //hi-lo

AllocationNumber	integer //hi-lo

RemoteAcknowledgeNumber	integer //hi-lo

RemoteAllocationNumber	integer //hi-lo

ConnectionSocket	integer

ImmediateAddress	IPXAddress

Destination	IPXAddress

RetransmissionCount	integer //hi-lo

EstimatedRoundTripDelay	integer //hi-lo

RetransmittedPackets	integer //hi-lo

SuppressedPackets	integer //hi-lo


BeginDiagnosticStruct
BeginDiagnosticStruct //same as IPXAddress

Network	long

NodeAddr	NodeAddress

Socket	integer


AllResponseData

CompletionCode	string

IntervalMarker	long


IPXSPXVersion

IPXMajorVersion	string

IPXMinorVersion	string

SPXMajorVersion	string

SPXMinorVersion	string


IPXStatisticsStruct

SendPacketCount	long

MalformedPacketCount	integer

GetECBRequestCount	long

GetECBFailureCount	long

AesEventCount	long

PostponedAESEventCount	integer

MaxConfiguredSocketsCount	integer

MaxOpenSocketsCount	integer

OpenSocketFailureCount	integer

ListenECBCount	long

EcbCancelFailureCount	integer

FindRouteFailureCount	integer


SPXStatisticsStruct

MaxConnectionsCount	integer

MaxUsedConnectionsCount	integer

EstablishConnectionRequest	integer

EstablishConnectionFailure	integer

ListenConnectionRequestCount	integer

ListenConnectionFailureCount	integer

SendPacketCount	long

WindowChokeCount	long

BadSendPacketCount	integer

SendFailureCount	integer

AbortConnectionCount	integer

ListenPacketCount	long

BadListenPacketCount	integer

IncomingPacketCount	long

BadIncomingPacketCount	integer

SuppressedPacketCount	integer

NoSessionListenECBCount	integer

WatchdogDestroySessionCount	integer


ReturnReceivedPacketStruct

ReceivedPackets	integer


StartCountingPacketsStruct

DestinationSocket	integer


SendPacketsRequestStruct

Target	BeginDiagnosticStruct

ImmediateAddress	string

NumberOfPackets	integer

TimerTickInterval	string

PacketsPerTickInterval	string

PacketSize	integer

ChangeSize	integer


SendPacketsResponseStruct

NumberOfTransmitErrors	integer


DriverConfigurationStruct

NetworkAddr	long

NodeAddr	NodeAddress

LanMode	string

NodeAddressType	string

MaxDataSize	integer

Reserved1	integer

LanHardwareID	string

TransportTime	integer

Reserved2	string

MajorVersion	string

MinorVersion	string

EthernetFlagBits	string

SelectedConfiguration	string

LanDescription	string

IOAddress1	integer

IODecodeRange1	integer

IOAddress2	integer

IODecodeRange2	integer

MemoryAddress1	string

MemoryDecodeRange1	integer

MemoryAddress2	string

MemoryDecodeRange2	string

InterruptIsUsed1	string

InterruptLine1	string

InterruptIsUsed2	string

InterruptLine2	string

DMAIsUsed1	string

DMALine1	string

DMAIsUsed2	string

DMALine2	string

MicroChannelFlagBits	string

Reserved3	string

TextDescription	string


DriverStatisticsStruct

DriverVersion	string

StatisticsVersion	string

TotalTxPacketCount	long

TotalRxPacketCount	long

NoECBAvailableCount	integer

PacketTxTooBigCount	integer

PacketTxTooSmallCount	integer

PacketRxOverflowCount	integer

PacketRxTooBigCount	integer

PacketRxTooSmallCount	integer

PacketTxMiscErrorCount	integer

PacketRxMiscErrorCount	integer

RetryTxCount	integer

ChecksumErrorCount	integer

HardwareRxMismatchCount	integer

NumberOfCustomVariables	integer

VariableData	string


BridgeDriverStatusStruct

BoardStatus	string


ComponentList

Components	string


OSVersionStruct

MachineID	string

VersionData	string


PrimaryServerStruct

Number	string


ServerAddressTableStruct

ServerUsed	string

OrderNumber	string

ServerNetwork	long

ServerNode	NodeAddress

ServerSocket	integer

ReceivedTimeout	integer

ImmediateNode	NodeAddress

SequenceNumber	string

ConnectionNumber	long

ConnectionOK	string

MaximumTimeout	integer

Reserved	string


ServerNameTableStruct

NameTable0	string

NameTable1	string

NameTable2	string

NameTable3	string

NameTable4	string

NameTable5	string

NameTable6	string

NameTable7	string


ShellStatisticsStruct

ShellRequestsCount	long

OperatorAbortsCount	integer

TimeoutsCount	integer

WriteErrorCount	integer

InvalidReplyHeaderCount	integer

InvalidSlotCount	integer

InvalidSequenceNumberCount	integer

ErrorReceivingCount	integer

NoRouterFoundCount	integer

BeingProcessedCount	integer

UnknownErrorCount	integer

InvalidServerSlotCount	integer

NetworkGoneCount	integer

Reserved	integer

AllocateCannotFindRouteCount	integer

AllocateNoSlotsAvailableCount	integer

AllocateServerIsDownCount	integer


ShellVersionStruct

Minor	string

Major	string

Rev	string


AllKnownNetworksStruct

NumberOfNetworkAddresses	integer

NetworkAddresses[128]	long  //up to 128 4-byte addresses


ServerInfoStruct

ServerType	integer

ServerName	string


AllKnownServersStruct

NumberOfServers	integer

ServerInfo[50]	ServerInfoStruct


BridgeStatisticsStruct

TooManyHopsCount	integer

UnknownNetworkCount	integer

NoSpaceForServiceCount	integer

NoReceiveBuffersCount	integer

NotMyNetwork	integer

NetBIOSPropogateCount	long

TotalPacketsServiced	long

TotalPacketsRouted	long


LOCAL_ADDRESS

Address	string

Reserved	string


LocalTablesStruct

LocalNetNumbers[16]	long //16 4-byte net numbers

LocalNodeAddresses[16]	LOCAL_ADDRESS


RoutingInfoStruct

RouterForwardingAddress	long

RouterBoardNumber	string

Reserved	string

RouteHops	string

RouteTime	string


SpecificNetworkInfoStruct

NetworkAddress	long

HopsToNet	string

Reserved	string

RouteTimeToNet	integer

NumberOfKnownRouters	integer

RoutingInfo[47]	RoutingInfoStruct  //up to 47 structures


RouteSourceInfoStruct

RouteSourceAddress	NodeAddress

RouteHopsToSource	integer

Reserved	string


SpecificServerInfoStruct

ServerInfo	ServerInfoStruct

ServerAddress	BeginDiagnosticStruct

HopsToServer	integer

Reserved	integer

NumberOfRoutes	integer

RouteSourceInfo[47]	RouteSourceInfoStruct


ReturnReceivedPacketCount

Function Integer ReturnReceivedPacketCount ( int ConnectionID, int ComponentNumber, ref AllResponseData Response , ref ReturnReceivedPacketStruct ResponseData ) Library "NWIPXSPX.DLL"


GetPrimaryServerNumber

Function Integer GetPrimaryServerNumber ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref PrimaryServerStruct ResponseData ) Library "NWIPXSPX.DLL"


GetShellVersionInfo

Function Integer GetShellVersionInfo ( int ConnectionID, int ComponentNumber, ref AllResponseData Response, ref ShellVersionStruct ResponseData ) Library "NWIPXSPX.DLL"


GetAllKnownServers

Function Integer GetAllKnownServers ( int ConnectionID, int ComponentNumber, int NumberServersToSkip, ref AllResponseData Response, ref AllKnownServersStruct ResponseData ) Library "NWIPXSPX.DLL"


GetSpecificServerInfo

Function Integer GetSpecificServerInfo ( int ConnectionID, int ComponentNumber, ref ServerInfoStruct Server, ref AllResponseData Response, ref SpecificServerInfoStruct ResponseData ) Library "NWIPXSPX.DLL"


AddTrusteeToDirectory

Function Integer AddTrusteeToDirectory ( int DirHandle, string DirPath, long TrusteeObjectID, int TrusteeRightsMask ) Library "NWNETAPI.DLL"


AllocPermanentDirectoryHandle

Function Integer AllocPermanentDirectoryHandle ( int DirHandle, string DirPath, int DriveLetter, ref int NewDirHandle, ref int EffectiveRightsMask ) Library "NWNETAPI.DLL"


AllocTemporaryDirectoryHandle

Function Integer AllocTemporaryDirectoryHandle ( int DirHandle, string DirPath, int DriveLetter, ref int NewDirHandle, ref int EffectiveRightsMask ) Library "NWNETAPI.DLL"


ClearVolRestrictions

Function Integer ClearVolRestrictions ( int ServerConnID, int VolNumber, long ObjectID ) Library "NWNETAPI.DLL"


CreateDirectory

Function Integer CreateDirectory ( int DirHandle, string DirPath, int MaximumRightsMask ) Library "NWNETAPI.DLL"


DeallocateDirectoryHandle

Function Integer DeallocateDirectoryHandle ( int DirHandle ) Library "NWNETAPI.DLL"


DeleteDirectory

Function Integer DeleteDirectory ( int DirHandle, string DirPath ) Library "NWNETAPI.DLL"


DeleteTrustee

Function Integer DeleteTrustee ( int ServerConnID, int DirHandle, string Path, long ObjectID ) Library "NWNETAPI.DLL"

//3.x/4.x only


DeleteTrusteeFromDirectory

Function Integer DeleteTrusteeFromDirectory ( int DirHandle, string DirPath, long TrusteeObjectID ) Library "NWNETAPI.DLL"


GetCurrentDirectory

Function Integer GetCurrentDirectory ( int DriveNumber, string Directory ) Library "NWNETAPI.DLL"


GetDirectoryHandle

Function Integer GetDirectoryHandle ( int DriveNumber ) Library "NWNETAPI.DLL"


GetDirectoryPath

Function Integer GetDirectoryPath ( int DirHandle, string DirPath ) Library "NWNETAPI.DLL"

//DirPath must be initialized to 255 bytes


GetDirEntry

Function Integer GetDirEntry ( int ServerConnID, int DirHandle, ref NWDIR_ENTRY DirEntry ) Library "NWNETAPI.DLL"

//3.x/4.x only


GetDirInfo

Function Integer GetDirInfo ( int ServerConnID, int DirHandle, ref NWDIR_INFO DirInfo ) Library "NWNETAPI.DLL"

//3.x/4.x only


GetDriveInformation

Function Integer GetDriveInformation ( int DriveNumber, ref int ConnectionID, ref int DirHandle ) Library "NWNETAPI.DLL"


GetEffectiveDirectoryRights

Function Integer GetEffectiveDirectoryRights ( int DirHandle, string DirPath, ref int EffectiveRightsMask ) Library "NWNETAPI.DLL"


GetEffectiveRights

Function Integer GetEffectiveRights ( int ServerConnID, int DirHandle, string Path, ref int Rights ) Library "NWNETAPI.DLL"

//3.x/4.x only


GetObjectDiskRestrictions

Function Integer GetObjectDiskRestrictions ( int ServerConnID, int VolNumber, long ObjectID, ref long VolRestrictions, ref long BlocksInUse ) Library "NWNETAPI.DLL"

//3.x/4.x only


GetSearchDriveVector

Function Integer GetSearchDriveVector ( ref DRIVE_VECTOR VectorBuffer ) Library "NWNETAPI.DLL"

//VectorBuffer must be initialized to 17 bytes


GetVolumeInformation

Function Integer GetVolumeInformation ( int ConnectionID, int VolumeNumber, int StructSize, ref VOLUME_STATS VolStats ) Library "NWNETAPI.DLL"


GetVolumeInfoWithHandle

Function Integer GetVolumeInfoWithHandle ( int DirHandle, string VolumeName, ref int TotalBlocks, ref int SectorsPerBlock, ref int AvailableBlocks, ref int TotalDirectorySlots, ref int AvailableDirectorySlots, ref int VolumeIsRemovable ) Library "NWNETAPI.DLL"

//VolumeName must be initialized to 16 bytes


GetVolumeInfoWithNumber

Function Integer GetVolumeInfoWithNumber ( int VolNumber, string VolumeName, ref int TotalBlocks, ref int SectorsPerBlock, ref int AvailableBlocks, ref int TotalDirectorySlots, ref int AvailableDirectorySlots, ref int VolumeIsRemovable ) Library "NWNETAPI.DLL"

//volumeName must be initialized to 16 bytes


GetVolumeName

Function Integer GetVolumeName ( int VolumeNumber, string VolumeName ) Library "NWNETAPI.DLL"

//VolumeName must be initialized to 16 bytes


GetVolumeNumber

Function Integer GetVolumeNumber ( string VolumeName, ref int VolumeNumber ) Library "NWNETAPI.DLL"


GetVolUsage

Function Integer GetVolUsage ( int ServerConnID, int VolNumber, ref NWVOL_USAGE VolUsage ) Library "NWNETAPI.DLL"

//3.x/4.x only


IsSearchDrive

Function Integer IsSearchDrive ( int DriveLetter ) Library "NWNETAPI.DLL"


MapDrive

Function Integer MapDrive ( int ConnectionID, int BaseDriveNumber, string DirectoryPath, int SearchFlag, int SearchOrder, string DriveLetter ) Library "NWNETAPI.DLL"


MapDriveUsingString

Function Integer MapDriveUsingString ( string MapType, string Drive, string MapString ) Library "NWNETAPI.DLL"


MapV2TrusteeRightsToV3

Function Long MapV2TrusteeRightsToV3 ( int TrusteeRightsV2 ) Library "NWNETAPI.DLL"

//3.x/4.x only


MapV3TrusteeRightsToV2

Function Integer MapV3TrusteeRightsToV2 ( long TrusteeRightsV3 ) Library "NWNETAPI.DLL"

//3.x/4.x only


ModifyMaximumRightsMask

Function Integer ModifyMaximumRightsMask ( int DirectoryHandle, string DirectoryPath, int RevokeRightsMask, int GrantRightsMask ) Library "NWNETAPI.DLL"


MoveEntry

Function Integer MoveEntry ( int ServerConnID, int SourceAttributes, int SourceDirHandle, string SourcePath, int DestDirHandle, string DestPath ) Library "NWNETAPI.DLL"

//3.x/4.x only


RenameDirectory

Function Integer RenameDirectory ( int DirectoryHandle, string DirectoryPath, string NewDirectoryName ) Library "NWNETAPI.DLL"


RestoreDirectoryHandle

Function Integer RestoreDirectoryHandle ( string saveBuffer, ref int NewDirectoryHandle, ref int EffectiveRightsMask ) Library "NWNETAPI.DLL"

//2.x only

//saveBuffer must be initialized to 14 characters


SaveDirectoryHandle

Function Integer SaveDirectoryHandle ( int DirectoryHandle, string SaveBuffer ) Library "NWNETAPI.DLL"

//2.x only


ScanDirectoryForTrustees

Function Integer ScanDirectoryForTrustees ( int DirectoryHandle, string DirectoryPath, ref int SequenceNumber, string DirectoryName, ref long CreationDateAndTime, ref long OwnerID, ref long TrusteeIDs[5], ref string TrusteeRights ) Library "NWNETAPI.DLL"

//2.x only

//directoryName must be initialized to 16 bytes

//trusteeIDs is an array of 5 Longs

//trusteeRights must be initialized to 5 bytes


ScanDirectoryInformation

Function Integer ScanDirectoryInformation ( int DirectoryHandle, string SearchDirectoryPath, ref int SequenceNumber, string DirectoryName, ref long CreationDateAndTime, ref long OwnerObjectID, ref int MaximumRightsMask ) Library "NWNETAPI.DLL"

//DirectoryName must be initialized to 16 bytes


ScanDirEntry

Function Integer ScanDirEntry ( int ServerConnID, int DirHandle, string SearchPath, int SearchAttributes, ref int Sequence, ref NWDIR_ENTRY DirEntry ) Library "NWNETAPI.DLL"


ScanDirRestrictions

Function Integer ScanDirRestrictions ( int ServerConnID, int DirHandle, string Buffer, int NumberOfStructures ) Library "NWNETAPI.DLL"

//3.x/4.x only

//buffer must be initialized to ((numberOfStructures * 9) + 1) bytes


ScanEntryForTrustees

For NetWare 2.x:

Function Integer ScanEntryForTrustees ( int ServerConnID, int DirectoryHandle, string DirectoryPath, ref TRUSTEE_BUFFER_2X TrusteeBuffer, int TrusteeSetNumber, int TrusteeGroupsToReturn ) Library "NWNETAPI.DLL"

For NetWare 3.x and 4.x:

Function Integer ScanEntryForTrustees ( int ServerConnID, int DirectoryHandle, string DirectoryPath, ref TRUSTEE_BUFFER_3X TrusteeBuffer, int TrusteeSetNumber, int TrusteeGroupsToReturn ) Library "NWNETAPI.DLL"


ScanVolForRestrictions

Function Integer ScanVolForRestrictions ( int ServerConnID, int VolumeNumber, ref int Sequence, ref NWBUFFER Buffer ) Library "NWNETAPI.DLL"

//3.x/4.x only


SetDirectoryHandle

Function Integer SetDirectoryHandle ( int SourceDirectoryHandle, string SourceDirectoryPath, int TargetDirectoryHandle ) Library "NWNETAPI.DLL"


SetDirectoryInformation

Function Integer SetDirectoryInformation ( int DirectoryHandle, string DirectoryPath, long NewCreationDateAndTime, long NewOwnerObjectID, int NewRightsMask ) Library "NWNETAPI.DLL"


SetDirRestriction

Function Integer SetDirRestriction ( int ServerConnID, int DirHandle, long Restriction ) Library "NWNETAPI.DLL"

//3.x/4.x only


SetDrivePath

Function Integer SetDrivePath ( int DriveNumber, int

BaseDriveNumber, string Path, int PermanentFlag ) Library "NWNETAPI.DLL"


SetEntry

Function Integer SetEntry ( int ServerConnID, int DirHandle, int SearchAttributes, long EntryID, long ChangeBits, ref  NWDIR_ENTRY DirEntry ) Library "NWNETAPI.DLL"

Or

Function Integer SetEntry ( int ServerConnID, int DirHandle, int SearchAttributes, long EntryID, long ChangeBits, ref NWFILE_ENTRY FileEntry ) Library "NWNETAPI.DLL"

//3.x/4.x only


SetSearchDriveVector

Function Integer SetSearchDriveVector ( string VectorBuffer ) Library "NWNETAPI.DLL"


SetTrustee

Function Integer SetTrustee ( int ServerConnID, int DirHandle, string DirPath, long TrusteeObjectID, long TrusteeRightsMask ) Library "NWNETAPI.DLL"

//3.x/4.x only


SetVolRestriction

Function Integer SetVolRestriction ( int ServerConnID, int VolNumber, long ObjectID, long Restriction ) Library "NWNETAPI.DLL"

//3.x/4.x only


Directory Services Global Constants

//Modify flags for SetEntry

int M_MODIFY_NAME	= 1

int M_FILE_ATTRIBUTES	= 2

int M_CREATE_DATE	= 4

int M_CREATE_TIME	= 8

int M_OWNER_ID	= 16

int M_LAST_ARCHIVED_DATE	= 32

int M_LAST_ARCHIVED_TIME	= 64

int M_LAST_ARCHIVED_ID	= 128

int M_LAST_UPDATED_DATE	= 256

int M_LAST_UPDATED_TIME	= 512

int M_LAST_UPDATED_ID	= 1024

int M_LAST_ACCESSED_DATE	= 2048

int M_INHERITED_RIGHTS_MASK	= 4096

int M_MAXIMUM_SPACE	= 8192

int M_MAC_MODIFY_NAME	= 1

int M_MAC_FINDER_INFO	= 2

int M_MAC_PRODOS_INFO	= 4

int NWMAX_VOL_NAME	= 48

int NCP_MAX_BUFFER	= 512

//Drive constants

int NO_BASE_DRIVE	= 255

int TEMPORARY_DRIVE	= 0

int PERMANENT_DRIVE	= 1

int TEMP_DRIVE	= 26

int TEMP_DRIVE1	= 27

int TEMP_DRIVE2	= 28

int TEMP_DRIVE3	= 29

//Search drive flags

int DRIVE_ADD	= 1

int DRIVE_INSERT	= 2

int DRIVE_DELETE	= 3

int MAX_NETWARE_SEARCH_DRIVES	= 16

//Drive flags

int DRIVE_LOCAL	= 128

int DRIVE_PERMANENT	= 1

int DRIVE_TEMPORARY	= 2

int DRIVE_NETWORK	= 3

//Trustee rights for v2.x

int TA_NONE	= 0

int TA_READ	= 1

int TA_WRITE	= 2

int TA_OPEN	= 4

int TA_CREATE	= 8

int TA_DELETE	= 16

int TA_OWNERSHIP	= 32

int TA_SEARCH	= 64

int TA_MODIFY	= 128

int TA_ALL	= 255

//Trustee rights for v3.x/4.x

int TR_NONE	= 0

int TR_READ	= 1

int TR_WRITE	= 2

int TR_CREATE	= 8

int TR_ERASE	= 16

int TR_ACCESS	= 32

int TR_FILE	= 64

int TR_MODIFY	= 128

int TR_SUPERVISOR	= 256

int TR_NORMAL	= 255

int TR_ALL	= 511

//Set numTrusteeEntries to the number of trustees that the

//  ScanEntryForTrustees function is to return data for.

//  Used in the TRUSTEE_BUFFER_3X type below

int NumTrusteeEntries	= 4


Directory Services Structures

NWDIR_ENTRY

NWFILE_ENTRY

NWDIR_INFO

DRIVE_VECTOR

VOLUME_STATS

NWVOL_USAGE

NWBUFFER

TRUSTEE_BUFFER_2X

TRUSTEE_BUFFER_3X


NWDIR_ENTRY

Sequence	long

Reserved1	long

Attributes	long

Reserved2	integer

NSType	string

NameLength	string

Name	string

CreationDate	integer

CreationTime	integer

OwnerID	long

LastArchivedDate	integer

LastArchivedTime	integer

LastArchiverID	long

ModifyDate	integer

ModifyTime	integer

Reserved3	string

InheritedRightsMask	integer

Reserved4	string


NWFILE_ENTRY

Sequence	long

Reserved1	long

Attributes	long

Reserved2	integer

NSType	string

NameLength	string

Name	string

CreationDate	integer

CreationTime	integer

OwnerID	long

LastArchivedDate	integer

LastArchivedTime	integer

LastArchiverID	long

ModifyDate	integer

ModifyTime	integer

LastModifierID	long

DataForkSize	long

Reserved3	string

InheritedRightsMask	integer

LastAccessDate	integer

Reserved4	string


NWDIR_INFO

TotalBlocks	long

FreeBlocks	long

TotalDirEntries	long

AvailDirEntries	long

Flags	long //currently unused

SectorsPerBlock	string

VolumeName	string


DRIVE_VECTOR

Vector	string


VOLUME_STATS

SystemElapsedTime	long

VolumeNumber	string

LogicalDriveNumber	string

SectorsPerBlock	integer

StartingBlock	integer

TotalBlocks	integer

AvailableBlocks	integer

TotalDirectorySlots	integer

AvailableDirectorySlots	integer

MaxDirectorySlotsUsed	integer

IsHashing	string

IsCaching	string

IsRemovable	string

IsMounted	string

VolumeName	string


NWVOL_USAGE

TotalBlocks	long

FreeBlocks	long

PurgableBlocks	long

NotYetPurgableBlocks	long

TotalDirEntries	long

AvailDirEntries	long

MaxDirEntriesUsed	long

Unused	string

BlockSize	integer

IsHashing	string

IsRemovable	string

VolName	string


NWBUFFER

Buffer	string


TRUSTEE_BUFFER_2X

DirName	string

Created	string

OwnerID	long

OID[5]	long

Rights[5]	string


TRUSTEE_BUFFER_3X

NumEntriesReturned	string

OID[numTrusteeEntries]	long

Rights[numTrusteeEntries]	integer


EraseFiles

Function Integer EraseFiles ( int DirHandle, string FilePath, int SearchAttributes ) Library "NWNETAPI.DLL"


FileServerFileCopy

Function Integer FileServerFileCopy ( int SourceFileHandle, int DestFileHandle, long SourceFileOffset, long DestFileOffset, long BytesToCopy, ref long BytesCopied ) Library "NWNETAPI.DLL"


GetExtendedFileAttributes

Function Integer GetExtendedFileAttributes ( string FilePath,

ref int ExtendedFileAttrib ) Library "NWNETAPI.DLL"


PurgeAllErasedFiles

Function Integer PurgeAllErasedFiles ( ) Library "NWNETAPI.DLL"

//2.x only


PurgeErasedFiles

Function Integer PurgeErasedFiles ( ) Library "NWNETAPI.DLL"

//2.x only


PurgeSalvagableFile

Function Integer PurgeSalvagableFile ( int ServerConnID, int DirHandle, ref long EntryID, string FileName ) Library "NWNETAPI.DLL"

//3.x/4.x only


RecoverSalvagableFile

Function Integer RecoverSalvagableFile ( int ServerConnID, int DirHandle, long EntryID, string FileName, string NewName ) Library "NWNETAPI.DLL"

//3.x/4.x only


RestoreErasedFile

Function Integer RestoreErasedFile ( int DirHandle, string VolName, string ErasedFileName, string RestoredFileName ) Library "NWNETAPI.DLL"

//2.x only

//erasedFileName and restoredFileName must be initialized to 13 characters


ScanFileEntry

Function Integer ScanFileEntry ( int ServerConnID, int DirHandle, string SearchPath, int SearchAttrib, ref long Sequence, ref NWFILE_ENTRY FileEntry ) Library "NWNETAPI.DLL"

//3.x/4.x only


ScanFileInformation

Function Integer ScanFileInformation ( int DirHndl, string Path, int SrchAttrib, ref int Seq, string FileName, ref int Attrib, ref int ExtAttrib, ref long Size, ref int Creat, ref int LastAcc, ref long Updated, ref long Archived, ref long Owner ) Library "NWNETAPI.DLL"

//FileName must be initialized to 15 bytes


ScanFilePhysical

Function Integer ScanFilePhysical ( int ServerConnID, int DirHandle, string SearchPath, int SearchAttrib, ref long Sequence, ref NWPHYS_ENTRY FileEntry ) Library "NWNETAPI.DLL"

//3.x/4.x only


ScanSalvagableFiles

Function Integer ScanSalvagableFiles ( int ServerConnID, int DirHandle, ref long EntryID, ref NWSALV_ENTRY SalvEntry ) Library "NWNETAPI.DLL"

//3.x/4.x only


SetExtendedFileAttributes

Function Integer SetExtendedFileAttributes ( string FilePath, int ExtFileAttrib ) Library "NWNETAPI.DLL"


SetFileInformation

Function Integer SetFileInformation ( int DirHndl, string Path, int SearchAttrib, int Attrib, int ExtAttrib, int Created, int LastAcc, long Updated, long Archived, long Owner ) Library "NWNETAPI.DLL"


File Services Global Constants

//File attributes

int FA_NORMAL	= 0

int FA_READ_ONLY	= 1

int FA_HIDDEN	= 2

int FA_SYSTEM	= 4

int FA_EXECUTE_ONLY	= 8

int FA_DIRECTORY	= 16

int FA_ARCHIVE	= 32

int FA_SHARABLE	= 128

//Extended file attributes

int FA_TRANSACTIONAL	= 16

int FA_INDEXED	= 32

int FA_READ_AUDIT	= 64

int FA_WRITE_AUDIT	= 128


File Services Structures

NWFILE_ENTRY

FORK_SIZE

NWPHYS_ENTRY

NWSALV_ENTRY


FORK_SIZE

logical	long

physical	long


NWPHYS_ENTRY

Sequence	long

Reserved1	long

Attributes	long

Reserved2	integer

NSType	string

NameLength	string

Name	string

CreationDate	integer

CreationTime	integer

OwnerID	long

LastArchivedDate	integer

LastArchivedTime	integer

LastArchiverID	long

ModifyDate	integer

ModifyTime	integer

LastModifierID	long

DataForkSize	long

Reserved3	string

InheritedRightsMask	integer

LastAccessDate	integer

Reserved4	string

ForkSize1	FORK_SIZE

ForkSize2	FORK_SIZE

ForkSize3	FORK_SIZE

ForkSize4	FORK_SIZE

ForkSize5	FORK_SIZE


NWSALV_ENTRY

EntryID	long

Attributes	long

NameSpaceType	string

NameLength	string

Name	string

LastArchiveDateAndTime	long

LastArchiverID	long

ModifyDateAndTime	long

LastModifierID	long

DataForkSize	long

LastAccessedDate	integer

DeletedFileTime	long

DeletedDateAndTime	long

DeletorID	long


CheckConsolePrivileges

Function Integer CheckConsolePrivileges ( ) Library "NWNETAPI.DLL"


CheckNetWareVersion

Function Integer CheckNetWareVersion ( int MinVersion, int MinSubVersion, int MinRevision, int MinSFT, int MinTTS ) Library "NWNETAPI.DLL"


ClearConnectionNumber

Function Integer ClearConnectionNumber ( long ConnNumber ) Library "NWNETAPI.DLL"

//documentation says 2.x only, but it works in 3.x


DisableFileServerLogin

Function Integer DisableFileServerLogin ( ) Library "NWNETAPI.DLL"


DisableTransactionTracking

Function Integer DisableTransactionTracking ( ) Library "NWNETAPI.DLL"


DownFileServer

Function Integer DownFileServer ( int ForceFlag ) Library "NWNETAPI.DLL"


EnableFileServerLogin

Function Integer EnableFileServerLogin ( ) Library "NWNETAPI.DLL"


EnableTransactionTracking

Function Integer EnableTransactionTracking ( ) Library "NWNETAPI.DLL"


GetConnectionsOpenFiles

Function Integer GetConnectionsOpenFiles ( int ConnID, long ConnNum, ref int LastRecord, ref int LastTask, int StructSize, ref CON_OPEN_FILES OpenFiles ) Library "NWNETAPI.DLL"

//2.x only


GetConnectionsSemaphores

Function Integer GetConnectionsSemaphores ( int ConnID, long ConnNum, ref int LastRecord, ref int LastTask, int StructSize, ref CONN_SEMAPHORE ConnSemaphores ) Library "NWNETAPI.DLL"

//2.x only


GetConnectionsTaskInformation

Function Integer GetConnectionsTaskInformation ( int ConnID, long ConnNum, ref int TaskPointer, int StructSize, ref CONN_TASK_INFO ConnTaskInfo ) Library "NWNETAPI.DLL"

//2.x only


GetConnectionsUsageStats

Function Integer GetConnectionsUsageStats ( int ConnID, long ConnNum, int StructSize, ref CONN_USAGE ConnUsage ) Library "NWNETAPI.DLL"

//2.x only


GetConnectionsUsingFile

Function Integer GetConnectionsUsingFile ( int ConnID, ref int LastRecord, ref int TaskID, int DirHandle, string FilePath, int StructSize, ref CONN_USING_FILE FileUse ) Library "NWNETAPI.DLL"

//2.x only


GetDiskCacheStats

Function Integer GetDiskCacheStats ( int ConnID, int StructSize, ref DISK_CACHE_STATS CacheStats ) Library "NWNETAPI.DLL"

//2.x only


GetDiskChannelStats

Function Integer GetDiskChannelStats ( int ConnID, int ChannelNumber, int StructSize, ref DISK_CHANNEL_STATS ChannelStats ) Library "NWNETAPI.DLL"

//2.x only


GetDiskUtilization

Function Integer GetDiskUtilization ( long ObjectID, int VolNumber, ref int UsedDirectories, ref int UsedFiles, ref int UsedBlocks ) Library "NWNETAPI.DLL"


GetDriveMappingTable

Function Integer GetDriveMappingTable ( int ConnID, int StructSize, ref DRIVE_MAP_TABLE DriveMappingTable ) Library "NWNETAPI.DLL"

//2.x only


GetFileServerDateAndTime

Subroutine GetFileServerDateAndTime ( ref DATE_AND_TIME DateAndTime ) Library "NWNETAPI.DLL"


GetFileServerDescriptionStrings

Function Integer GetFileServerDescriptionStrings ( string CompanyName, string Revision, string RevisionDate, string CopyrightNotice ) Library "NWNETAPI.DLL"

//CompanyName, Revision, and CopyrightNotice must be initialized to 80 bytes

//RevisionDate must be initialized to 24 bytes


GetFileServerLANIOStats

Declare Function GetFileServerLANIOStats ( int ConnID, int StructSize, ref SERVER_LAN_IO ServerLANIOStats ) Library "NWNETAPI.DLL"

//2.x only


GetFileServerLoginStatus

Function Integer GetFileServerLoginStatus ( ref int LoginEnabledFlag ) Library "NWNETAPI.DLL"


GetFileServerMiscInformation

Function Integer GetFileServerMiscInformation ( int ConnID, int StructSize, ref SERVER_MISC_INFO MiscInfo ) Library "NWNETAPI.DLL"

//2.x only


GetFileServerName

Subroutine GetFileServerName ( int ConnID, string FileServerName ) Library "NWNETAPI.DLL"


GetFileSystemStats

Function Integer GetFileSystemStats ( int ConnID, int StructSize, ref FILE_SYS_STATS FileSysStats ) Library "NWNETAPI.DLL"

//2.x only


GetLANDriverConfigInfo

Function Integer GetLANDriverConfigInfo ( int ConnID, int LANBoardNumber, int StructSize, ref LAN_CONFIG LANConfig ) Library "NWNETAPI.DLL"

//2.x only


GetLogicalRecordInformation

Function Integer GetLogicalRecordInformation ( int ConnID, string LogicalRecordName, ref int LastRecord, ref int LastTask, int StructSize, ref LOGICAL_REC_INFO LogicalRecordInfo ) Library "NWNETAPI.DLL"

//2.x only


GetLogicalRecordByConnection

Function Integer GetLogicalRecordByConnection ( int ConnID, long ConnNum, ref int LastRecord, ref int LastTask, int StructSize, ref LOGICAL_RECORD LogicalRecord ) Library "NWNETAPI.DLL"

//2.x only


GetPathFromDirectoryEntry

Function Integer GetPathFromDirectoryEntry ( int ConnID, int VolumeNumber, int DirectoryEntry, string Path ) Library "NWNETAPI.DLL"

//2.x only

//Path must be initialized to 255 bytes


GetPhysicalDiskStats

Function Integer GetPhysicalDiskStats ( int connID, int

PhysDiskNumber, int StructSize, ref PHYS_DISK_STATS PhysDiskStats , string

DriveDefinition ) Library "NWNETAPI.DLL"

//2.x only

//DriveDefinition must be initialized to ?? bytes


GetPhysicalRecordLocksByFile

Function Integer GetPhysicalRecordLocksByFile ( int ConnID, int DirHandle, string FilePath, ref int LastRecord, ref int LastTask, int StructSize, ref PHYS_REC_LOCK RecordLock ) Library "NWNETAPI.DLL"

//2.x only


GetPhysRecLockByConnectAndFile

Function Integer GetPhysRecLockByConnectAndFile ( int ConnID, long ConnNum, int VolNum, int DirHandle, string FilePath, ref int LastRecord, ref int LastTask, int StructSize, ref SHORT_PHYS_REC_LOCK RecLock ) Library "NWNETAPI.DLL"

//2.x only


GetSemaphoreInformation

Function Integer GetSemaphoreInformation ( int ConnID, string SemaphoreName, ref int LastRecord, ref int LastTask, ref long OpenCount, ref int SemaphoreValue, ref long ConnNum, ref int TaskNumber ) Library "NWNETAPI.DLL"

//2.x only


GetServerInformation

Function Integer GetServerInformation ( int StructSize, ref FILE_SERV_INFO ServerInfo ) Library "NWNETAPI.DLL"

//documentation says 2.x only, but it works in 3.x


SendConsoleBroadcast

Function Integer SendConsoleBroadcast ( string Message, int ConnCount, ref long ConnList ) Library "NWNETAPI.DLL"


SetFileServerDateAndTime

Function Integer SetFileServerDateAndTime ( int TheYear, int TheMonth, int TheDay, int TheHour, int TheMin, int TheSec ) Library "NWNETAPI.DLL"


File Server Environmental Services Structures

CON_OPEN_FILES

CONN_SEMAPHORE

CONN_TASK_INFO

CONN_USAGE

CONN_USING_FILE

DISK_CACHE_STATS

DISK_CHANNEL_STATS

DRIVE_MAP_TABLE

SERVER_LAN_IO

SERVER_MISC_INFO

FILE_SYS_STATS

LAN_CONFIG

LOGICAL_REC_INFO

LOGICAL_RECORD

PHYS_DISK_STATS

PHYS_REC_LOCK

SHORT_PHYS_REC_LOCK

FILE_SERV_INFO


CON_OPEN_FILES

TaskNumber	string

LockStatus	string

AccessFlag	string

LockType	string

VolumeNumber	string

Reserved	string

DirectoryEntry	integer

FileName	string


CONN_SEMAPHORE

OpenCount	long

SemaphoreValue	string

TaskNumber	string

SemaphoreName	string


CONN_TASK_INFO

LockStatus	string

WaitingTaskNumber	string

BeginAddress	long

EndAddress	long

VolumeNumber	string

NumberOfTasks	string

DirectoryEntry	integer

LockedName	string

TaskNumber	string

TaskState	string


CONN_USAGE

SystemElapsedTime	long

BytesRead	string

BytesWritten	string

TotalRequestPackets	long


CONN_USING_FILE

UseCount	integer

OpenCount	integer

OpenForReadCount	long

OpenForWriteCount	long

DenyReadCount	long

DenyWriteCount	long

Reserved1	integer

Locked	string

Reserved2	string

LogicalConnNumber	long

TaskNumber	string

LockType	string

AccessFlags	string

LockStatus	string


DISK_CACHE_STATS

SystemElapsedTime	long

CacheBufferCount	integer

CacheBufferSize	integer

DirtyCacheBuffers	integer

CacheReadRequests	long

CacheWriteRequests	long

CacheHits	long

CacheMisses	long

PhysicalReadRequests	long

PhysicalWriteRequests	long

PhysicalReadErrors	integer

PhysicalWriteErrors	integer

CacheGetRequests	long

CacheFullWriteRequests	long

CachePartialWriteRequests	long

BackgroundDirtyWrites	long

BackgroundAgedWrites	long

TotalCacheWrites	long

CacheAllocations	long

ThrashingCount	integer

LRUBlockWasDirtyCount	integer

ReadBeyondWriteCount	integer

FragmentedWriteCount	integer

CacheHitOnUnavailCount	integer

CacheBlockScrappedCount	integer


DISK_CHANNEL_STATS

SystemElapsedTime	long

ChannelState	integer

ChannelSyncState	integer

DriverType	string

DriverMajorVersion	string

DriverMinorVersion	string

DriverDescription	string

IOAddr1	integer

IOAddr1Size	integer

IOAddr2	integer

IOAddr2Size	integer

SharedMem1Seg	string

SharedMem1Off	integer

SharedMem2Seg	string

SharedMem2Off	integer

Interrupt1Used	string

Interrupt1	string

Interrupt2Used	string

Interrupt2	string

DMAChannel1Used	string

DMAChannel1	string

DMAChannel2Used	string

DMAChannel2	string

Reserved2	integer

ConfigDescription	string


DRIVE_MAP_TABLE

SystemElapsedTime	long

SFTLevel	string

LogicalDriveCount	string

PhysicalDriveCount	string

DiskChannelTable	string

PendingIOCommands	integer

MappingTable	string

DriveMirrorTable	string

DeadMirrorTable	string

RemirroredDrive	string

Reserved	string

RemirroredBlock	long

SFTErrorTable	string


SERVER_LAN_IO

SystemElapsedTime	long

MaxRoutingBuffersAvail	integer

MaxRoutingBuffersUsed	integer

RoutingBuffersInUse	integer

TotalFileServicePackets	long

FileServicePacketsBuffered	integer

InvalidConnPacketCount	long

BadLogicalConnCount	long

PacketsRcvdDuringProcCount	integer

ReprocessedRequestCount	integer

BadSequenceNumberPacketCount	integer

DuplicateReplyCount	integer

AcknowledgementsSent	integer

BadRequestTypeCount	integer

AttachDuringProcCount	integer

AttachWhileAttachingCount	integer

ForgedDetachRequestCount	integer

BadConnNumberOnDetachCount	long

DetachDuringProcCount	integer

RepliesCanceledCount	integer

HopCountDiscardCount	integer

UnknownNetDiscardCount	integer

NoDGroupBufferDiscardCount	integer

OutPacketNoBufferDiscardCount	integer

IPXNotMyNetworkCount	integer

NetBIOSPropagationCount	long

TotalOtherPackets	long

TotalRoutedPackets	long


SERVER_MISC_INFO

SystemElapsedTime	long

ProcessorType	string

Reserved	string

ServiceProcessCount	string

ServerUtilizationPercent	string

MaxBinderyObjectsAvail	integer

MaxBinderyObjectsUsed	integer

BinderyObjectsInUse	integer

ServerMemoryInK	integer

DynamicAreaCount	integer

DynamicSpace1	long

MaxUsedDynamicSpace1	long

DynamicSpaceInUse1	long

DynamicSpace2	long

MaxUsedDynamicSpace2	long

DynamicSpaceInUse2	long

DynamicSpace3	long

MaxUsedDynamicSpace3	long

DynamicSpaceInUse3	long


FILE_SYS_STATS

SystemElapsedTime	long

MaxOpenFiles	integer

MaxFilesOpen	integer

CurrOpenFiles	integer

TotalFilesOpened	long

TotalReadRequests	long

TotalWriteRequests	long

CurrChangedFATSectors	integer

TotalChangedFATSectors	long

FATWriteErrors	integer

FatalFATWriteErrors	integer

FATScanErrors	integer

MaxIndexFilesOpened	integer

CurrOpenIndexedFiles	integer

AttachedIndexFiles	integer

AvailableindexFiles	integer


LAN_CONFIG

NetworkAddress	long

HostAddress1	long

HostAddress2	integer

LANDriverInstalled	string

OptionNumber	string

ConfigurationText1	string

ConfiguratinoText2	string


LOGICAL_REC_INFO

CurrentUseCount	integer

ShareableLockCount	integer

Reserved1	integer

Locked	string

Reserved2	string

LogicalConnectionNumber	long

TaskNumber	string

LockStatus	string


LOGICAL_RECORD

TaskNumber	string

LockStatus	string

LogicalLockName	string


PHYS_DISK_STATS

SystemElapsedTime	long

DiskChannel	string

DiskRemovable	string

DriveType	string

ControllerDriverNumber	string

ControllerNumber	string

ControllerType	string

DriveSize	long

DriveCylinders	integer

DriveHeads	string

SectorsPerTrack	string

IOErrorCount	integer

HotFixStart	long

HotFixSize	integer

HotFixSizeAvailable	integer

HotFixDisabled	string


PHYS_REC_LOCK

PhysicalRecordLockCount	string

Reserved	string

LoggedCount	integer

ShareLockCount	integer

RecordStart	long

RecordEnd	long

ConnectionNumber	long

TaskNumber	string

LockType	string


SHORT_PHYS_REC_LOCK

TaskNumber	string

LockFlag	string

RecordStart	long

RecordEnd	long


FILE_SERV_INFO

ServerName	string

NetwareVersion	string

NetwareSubVersion	string

MaxConnectionsSupported	long

ConnectionsInUse	long

MaxVolumesSupported	integer

RevisionLevel	string

SFTLevel	string

TTSLevel	string

PeakConnectionsUsed	long

AccountingVersion	string

VAPversion	string

QueueingVersion	string

PrintServerVersion	string

VirtualConsoleVersion	string

SecurityRestrictionLevel	string

InternetBridgeSupport	string


BroadcastToConsole

Function Integer BroadcastToConsole ( string Message ) Library "NWNETAPI.DLL"


CheckPipeStatus

Function Integer CheckPipeStatus ( ref long ConnectionList, ref int ResultList, ref long ConnectionCount ) Library "NWNETAPI.DLL"

//2.x only


CloseMessagePipe

Function Integer CloseMessagePipe ( ref long ConnectionList, ref int ResultList, ref long ConnectionCount ) Library "NWNETAPI.DLL"

//2.x only


DisableBroadcasts

Function Integer DisableBroadcasts ( ) Library "NWNETAPI.DLL"


EnableBroadcasts

Function Integer EnableBroadcasts ( ) Library "NWNETAPI.DLL"


GetBroadcastMessage

Function Integer GetBroadcastMessage ( string MessageBuffer ) Library "NWNETAPI.DLL"

//MessageBuffer must be initialized to 56 bytes


GetBroadcastMode

Function Integer GetBroadcastMode ( ) Library "NWNETAPI.DLL"


GetPersonalMessage

Function Integer GetPersonalMessage ( string MessageBuffer,

ref long SourceConnection ) Library "NWNETAPI.DLL"

//2.x only

//MessageBuffer must be initialized to 127 bytes


LogNetWorkMessage

Function Integer LogNetWorkMessage ( string Message ) Library "NWNETAPI.DLL"

//2.x only


OpenMessagePipe

Function Integer OpenMessagePipe ( ref long ConnectionList, ref int ResultList, long ConnectionCount ) Library "NWNETAPI.DLL"

//2.x only


SendBroadcastMessage

Function Integer SendBroadcastMessage ( string Message, ref long ConnectionList, ref int ResultList, long ConnectionCount ) Library "NWNETAPI.DLL"


SendPersonalMessage

Function Integer SendPersonalMessage ( string Message, ref long ConnectionList, ref int ResultList, int ConnectionCount ) Library "NWNETAPI.DLL"

//2.x only


SetBroadcastMode

Function Integer SetBroadcastMode ( int BroadcastMode ) Library "NWNETAPI.DLL"


ASCIIZToLenStr

Function Integer ASCIIZToLenStr ( string DestStr, string SrcStr ) Library "NWNETAPI.DLL"

//DestStr must be initialized to the length of SrcStr (including terminating null)


ConvertNameToFullPath

Function Integer ConvertNameToFullPath ( string PartialPath, string FullPath ) Library "NWNETAPI.DLL"

//FullPath must be initialized to 255 bytes


ConvertNameToVolumePath

Function Integer ConvertNameToVolumePath ( string FileName, string Path ) Library "NWNETAPI.DLL"

//Path must be initialized to 255 bytes


GetFullPath

Function Integer GetFullPath ( int Drive, string Path ) Library "NWNETAPI.DLL"

//Path must be initialized to 255 bytes


GetNetworkSerialNumber

Function Integer GetNetworkSerialNumber ( ref long SerialNumber, ref int ApplicationNumber ) Library "NWNETAPI.DLL"


IntSwap

Function Integer IntSwap ( int UnswappedInteger ) Library "NWNETAPI.DLL"


IsV3Supported

Function Integer IsV3Supported ( int ServerConnID ) Library "NWNETAPI.DLL"


LenToASCIIZStr

Function Integer LenToASCIIZStr ( srting DestStr, string SrcStr ) Library "NWNETAPI.DLL"

//DestStr must be initialized to the length of scrStr$


LongSwap

Function Long LongSwap ( long UnswappedLong ) Library "NWNETAPI.DLL"


ParsePath

Function Integer ParsePath ( string Path, string Server, string Volume, string Directories ) Library "NWNETAPI.DLL"

//Server must be initialized to 48 bytes

//Volume must be initialized to 16 bytes

//Directories must be initialized to 255 bytes


StripFileServerFromPath

Function Integer StripFileServerFromPath ( string Path, string Server ) Library "NWNETAPI.DLL"

//Server must be initialized to 48 bytes


VerifyNetworkSerialNumber

Function Integer VerifyNetworkSerialNumber ( long SerialNumber, ref int ApplicationNumber ) Library "NWNETAPI.DLL"


FillNameSpaceBuffer

Function Integer FillNameSpaceBuffer ( int ServerConnID, int VolumeNumber, ref NWBUFFER Buffer ) Library "NWNETAPI.DLL"


GetDataStreamInfo

Function Integer GetDataStreamInfo ( ref NWBUFFER Buffer, int DataStreamType, string DataStreamName, ref int VolSupports ) Library "NWNETAPI.DLL"


GetNameSpaceEntry

Function Integer GetNameSpaceEntry ( int ServerConnID, int VolumeNum, ref long Sequence, int NsType, ref [Any] EntryInfo ) Library "NWNETAPI.DLL"


GetNameSpaceInfo

Function Integer GetNameSpaceInfo ( ref NWBUFFER Buffer, int NsType, string NameSpaceName, ref int OsReady, ref int VolSupports ) Library "NWNETAPI.DLL"


GetNumNameSpaceAndDataStreams

Function Integer GetNumNameSpaceAndDataStreams ( ref NWBUFFER Buffer, ref int NumNameSpaces, ref int NumDataStreams ) Library "NWNETAPI.DLL"


Name Space Services Global Constants

int DOS_NAME_SPACE	= 0

int MAC_NAME_SPACE	= 1


CancelLPTCapture

Function Integer CancelLPTCapture ( ) Library "NWNETAPI.DLL"


CancelSpecificLPTCapture

Function Integer CancelSpecificLPTCapture ( int LptDevice ) Library "NWNETAPI.DLL"


EndLPTCapture

Function Integer EndLPTCapture ( ) Library "NWNETAPI.DLL"


EndSpecificLPTCapture

Function Integer EndSpecificLPTCapture ( int LptDevice ) Library "NWNETAPI.DLL"


FlushLPTCapture

Function Integer FlushLPTCapture ( ) Library "NWNETAPI.DLL"


FlushSpecificLPTCapture

Function Integer FlushSpecificLPTCapture ( int LptDevice ) Library "NWNETAPI.DLL"


GetBannerUserName

Function Integer GetBannerUserName ( string UserName ) Library "NWNETAPI.DLL"


GetDefaultCaptureFlags

Function Integer GetDefaultCaptureFlags ( ref CAPTURE_FLAGS CaptureFlags ) Library "NWNETAPI.DLL"


GetDefaultLocalPrinter

Function Integer GetDefaultLocalPrinter ( ) Library "NWNETAPI.DLL"


GetLPTCaptureStatus

Function Integer GetLPTCaptureStatus ( ref int ServerNumber ) Library "NWNETAPI.DLL"


GetPrinterQueue

Function Integer GetPrinterQueue ( int PrinterNumber, ref long QueueID ) Library "NWNETAPI.DLL"


GetPrinterStatus

Function Integer GetPrinterStatus ( int PrinterNumber, ref int PrinterHalted, ref int PrinterOffLine, ref int FormType, ref int TargetPrinter ) Library "NWNETAPI.DLL"


GetSpecificCaptureFlags

Function Integer GetSpecificCaptureFlags ( int LocalLPTDevice, ref CAPTURE_FLAGS CaptureFlags ) Library "NWNETAPI.DLL"


SetBannerUserName

Function Integer SetBannerUserName ( string UserName ) Library "NWNETAPI.DLL"


SetCapturePrintJob

Function Integer SetCapturePrintJob ( int LptDevice, int JobNumber, ref FILE_HANDLE JobFileHandle ) Library "NWNETAPI.DLL"


SetCapturePrintQueue

Function Integer SetCapturePrintQueue ( int LptDevice, int ConnID, long QueueID ) Library "NWNETAPI.DLL"


SetDefaultCaptureFlags

Function Integer SetDefaultCaptureFlags ( ref SET_CAPTURE_FLAGS setCaptureFlags ) Library "NWNETAPI.DLL"*


SetDefaultLocalPrinter

Function Integer SetDefaultLocalPrinter ( int LptDevice ) Library "NWNETAPI.DLL"


SetSpecificCaptureFlags

Function Integer SetSpecificCaptureFlags ( int LptDevice, ref SET_CAPTURE_FLAGS setCaptureFlags ) Library "NWNETAPI.DLL"


SetSpoolFlags

Function Integer SetSpoolFlags ( int PrintFlags, int TabSize, int PrinterNumber, int NumberOfCopies, int FormType, int BannerName ) Library "NWNETAPI.DLL"


SpecifyCaptureFile

Function Integer SpecifyCaptureFile ( int DriveHandle, string FilePath ) Library "NWNETAPI.DLL"


StartLPTCapture

Function Integer StartLPTCapture ( ) Library "NWNETAPI.DLL"


StartSpecificLPTCapture

Function Integer StartSpecificLPTCapture ( int LptDevice ) Library "NWNETAPI.DLL"


Print Services Global Constants

int CAPTURE_IS_NOT_ACTIVE	= 0

int CAPTURE_IS_ACTIVE	= 255


Print Services Structures

CAPTURE_FLAGS

SET_CAPTURE_FLAGS


CAPTURE_FLAGS

Status	string

Flags	string

TabSize	string

ServerPrinter	string

NumberOfCopies	string

FormType	string

Reserved1	string

BannerText	string

Reserved2	string

LocalLPTDevice	string

FlushCaptureTimeoutCount	integer

FlushCaptureOnDeviceClose	string

MaxLines	integer

MaxChars	integer

FormName	string

LPTCaptureFlag	string

FileCaptureFlag	string

TimingOutFlag	string

PrinterSetupBuffer	long

PrinterResetBuffer	long

ConnectionIDQueuePrintJob	string

CaptureInProgress	string

PrintQueueFlag	string

PrintJobValid	string

PrintQueueID	long

PrintJobNumber	integer


SET_CAPTURE_FLAGS

Status	string

Flags	string

TabSize	string

ServerPrinter	string

NumberOfCopies	string

FormType	string

Reserved1	string

BannerText	string

Reserved2	string

LocalLPTDevice	string

FlushCaptureTimeoutCount	integer

FlushCaptureOnDeviceClose	string

MaxLines	integer

MaxChars	integer

FormName	string

Reserved3	string


PSAbortPrintJob

Function Integer PSAbortPrintJob ( int SpxConn, int Printer, int JobOutcome ) Library "NWPSERV.DLL"


PSAddNotifyObject

Function Integer PSAddNotifyObject ( int SpxConn, int Printer, string FileServer, string ObjectName, int ObjectType, int FirstNotif, int NextNotif ) Library "NWPSERV.DLL"


PSAddQueueToPrinter

Function Integer PSAddQueueToPrinter ( int SpxConn, int Pprinter, string FileServer, string Queue, int Priority ) Library "NWPSERV.DLL"


PSAttachPrintServerToFileServer

Function Integer PSAttachPrintServerToFileServer ( int SpxConn, string FileServer, string Password ) Library "NWPSERV.DLL"


PSAttachToPrintServer

Function Integer PSAttachToPrintServer ( string PrintServerName, ref int ConnectionID ) Library "NWPSERV.DLL"


PSCancelDownRequest

Function Integer PSCancelDownRequest ( int SpxConn ) Library "NWPSERV.DLL"


PSChangeNotifyInterval

Function Integer PSChangeNotifyInterval ( int SpxConn, int Printer, string FileServer, string ObjectName, int ObjectType, int FirstNotif, int NextNotif ) Library "NWPSERV.DLL"


PSChangeQueuePriority

Function Integer PSChangeQueuePriority ( int SpxConn, int Printer, string FileServer, string Queue, int Priority ) Library "NWPSERV.DLL"


PSChangeServiceMode

Function Integer PSChangeServiceMode ( int SpxConn, int Printer, int ServiceMode ) Library "NWPSERV.DLL"


PSDeleteNotifyObject

Function Integer PSDeleteNotifyObject ( int SpxConn, int Printer, string FileServer, string ObjectName, int ObjectType ) Library "NWPSERV.DLL"


PSDeleteQueueFromPrinter

Function Integer PSDeleteQueueFromPrinter ( int SpxConn, int Printer, string FileServer, string Queue, int Immed, int JobOutcome ) Library "NWPSERV.DLL"


PSDetachFromPrintServer

Function Integer PSDetachFromPrintServer ( int ConnID ) Library "NWPSERV.DLL"


PSDetachPrtServerFromFileServer

Function Integer PSDetachPrtServerFromFileServer ( int SpxConn, string FileServer, int  Immed, int JobOutcome ) Library "NWPSERV.DLL"


PSDownPrintServer

Function Integer PSDownPrintServer ( int SpxConn, int Immed, int JobOutcome ) Library "NWPSERV.DLL"


PSEjectForm

Function Integer PSEjectForm ( int SpxConn, int Printer ) Library "NWPSERV.DLL"


PSGetAttachedServers

Function Integer PSGetAttachedServers ( int SpxConn, ref int Sequence, string FileServer ) Library "NWPSERV.DLL"


PSGetNextRemotePrinter

Function Integer PSGetNextRemotePrinter ( int SpxConn, ref int Printer, ref int PrinterType, string PrinterName ) Library "NWPSERV.DLL"


PSGetNotifyObject

Function Integer PSGetNotifyObject ( int SpxConn, int Printer, ref int Sequence, string FileServer, string ObjectName, ref int ObjectType, ref int FirstNotif, ref int NextNotif ) Library "NWPSERV.DLL"


PSGetPrintersServicingQueue

Function Integer PSGetPrintersServicingQueue ( int SpxConn, string FileServer, string Queue, int MaxPrinter, ref int NumPrinters, ref int PrinterList ) Library "NWPSERV.DLL"

//PrinterList must be initialized to MaxPrinters bytes


PSGetPrinterStatus

Function Integer PSGetPrinterStatus ( int SpxConn, int Printer, ref int Status, ref int Problem, ref int HasJob, ref int ServiceMode, ref int FormNumber, string FormName, string PrinterName ) Library "NWPSERV.DLL"


PSGetPrintJobStatus

Function Integer PSGetPrintJobStatus ( int SpxConn, int Printer, string FileServer, string QueueName, ref int JobNumber, string JobDesc, ref int CopiesToPrint, ref long JobSize, ref int CopyiesDone, ref long BytesIntoCopy, ref int NeededForm, ref int Text ) Library "NWPSERV.DLL"


PSGetPrintServerInfo

Function Integer PSGetPrintServerInfo ( int SpxConn, ref PS_INFO Info, int Size ) Library "NWPSERV.DLL"


PSGetQueuesServiced

Function Integer PSGetQueuesServiced ( int SpxConn, int Printer, ref int Sequence, string FileServer, string Queue, ref int Priority ) Library "NWPSERV.DLL"


PSLoginToPrintServer

Function Integer PSLoginToPrintServer ( int SpxConn, ref int ClientAccessLevel ) Library "NWPSERV.DLL"


PSMarkTopOfForm

Function Integer PSMarkTopOfForm ( int SpxConn, int Printer, int Character ) Library "NWPSERV.DLL"


PSRequestRemotePrinter

Function Integer PSRequestRemotePrinter ( int SpxConn, ref REMOTE_INFO PrinterInfo ) Library "NWPSERV.DLL"


PSRewindPrintJob

Function Integer PSRewindPrintJob ( int SpxConn, int Printer, int ByPage, int Relative, int Copy, long Offset ) Library "NWPSERV.DLL"


PSSetMountedForm

Function Integer PSSetMountedForm ( int SpxConn, int Printer, int FormNumber ) Library "NWPSERV.DLL"


PSSetRemoteMode

Function Integer PSSetRemoteMode ( int SpxConn, int Printer, int Mode ) Library "NWPSERV.DLL"


PSStartPrinter

Function Integer PSStartPrinter ( int SpxConn, int Printer ) Library "NWPSERV.DLL"


PSStopPrinter

Function Integer PSStopPrinter ( int SpxConn, int Printer, int JobOutcome ) Library "NWPSERV.DLL"


Print Server Services Global Constants

//Print server status

int RUNNING	= 0

int GOING_DOWN	= 1

int DOWN	= 2

int INITIALIZING	= 3

//Printer status

int PRINTER_RUNNING	= 0

int PRINTER_OFFLINE	= 1

int PRINTER_PAPER_OUT	= 2

//printControlFlags

int SUPPRESS_FF	= 2048

int NOTIFY_USER	= 4096

int TEXT_MODE	= 16384

int PRINT_BANNER	= 32768

//Queue service modes

int QUEUE_ONLY	= 0

int QUEUE_BEFORE_FORM	= 1

int FORM_ONLY	= 2

int FORM_BEFORE_QUEUE	= 3

//Port configuration values

int BAUD_RATE_0300	= 0

int BAUD_RATE_0600	= 1

int BAUD_RATE_1200	= 2

int BAUD_RATE_2400	= 3

int BAUD_RATE_4800	= 4

int BAUD_RATE_9600	= 5

int STOP_BITS_1	= 0

int STOP_BITS_1_5	= 1

int STOP_BITS_2	= 2

int PARITY_NONE	= 0

int PARITY_EVEN	= 1

int PARITY_ODD	= 2

//Printer types

int P_PAR_1	= 0

int P_PAR_2	= 1

int P_PAR_3	= 2

int P_SER_1	= 3

int P_SER_2	= 4

int P_SER_3	= 5

int P_SER_4	= 6

int P_REM_PAR_1	= 7

int P_REM_PAR_2	= 8

int P_REM_PAR_3	= 9

int P_REM_SER_1	= 10

int P_REM_SER_2	= 11

int P_REM_SER_3	= 12

int P_REM_SER_4	= 13

int P_REM_OTHER	= 14

int P_ELSEWHERE	= 15

//ObjectType for job owner (for notify object APIs)

int JOB_OWNER	= -1

//Job outcomes

int PLACE_ON_HOLD	= 0

int RETURN_TO_QUEUE	= 1

int THROW_AWAY	= 2

//Remote printer modes

int REMOTE_SHARED	= 0

int REMOTE_PRIVATE	= 1

//Printer status

int PSTAT_WAITING_FOR_JOB	= 0

int PSTAT_WAITING_FOR_FORM	= 1

int PSTAT_PRINTING_JOB	= 2

int PSTAT_PAUSED	= 3

int PSTAT_STOPPED	= 4

int PSTAT_MARK_EJECT	= 5

int PSTAT_READY_TO_GO_DOWN	= 6

int PSTAT_NOT_CONNECTED	= 7

int PSTAT_PRIVATE	= 8

//Print server communication errors

int PSC_NO_AVAILABLE_SPX_CONNECTS	= 64

int PSC_SPX_NOT_INITIALIZED	= 65

int PSC_NO_SUCH_PRINT_SERVER	= 66

int PSC_UNABLE_TO_GET_SERVER_ADDR	= 67

int PSC_UNABLE_TO_CONNECT_TO_SERVER	= 68

int PSC_NO_AVAILABLE_IPX_SOCKETS	= 69

int PSC_ALREADY_ATTACHED_TO_PSERVER	= 70

int PSC_IPX_NOT_INITIALIZED	= 71

//Print server error codes

int PSE_TOO_MANY_FILE_SERVERS	= 257

int PSE_UNKNOWN_FILE_SERVER	= 258

int PSE_BINDERY_LOCKED	= 259

int PSE_SERVER_MAXED_OUT	= 260

int PSE_NO_RESPONSE	= 261

int PSE_ALREADY_ATTACHED	= 262

int PSE_CANT_ATTACH	= 263

int PSE_NO_ACCOUNT_BALANCE	= 264

int PSE_NO_CREDIT_LEFT	= 265

int PSE_INTRUDER_DETECTION_LOCK	= 266

int PSE_TOO_MANY_CONNECTIONS	= 267

int PSE_ACCOUNT_DISABLED	= 268

int PSE_UNAUTHORIZED_TIME	= 269

int PSE_UNAUTHORIZED_STATION	= 270

int PSE_NO_MORE_GRACE	= 271

int PSE_LOGIN_DISABLED	= 272

int PSE_ILLEGAL_ACCT_NAME	= 273

int PSE_PASSWORD_HAS_EXPIRED	= 274

int PSE_ACCESS_DENIED	= 275

int PSE_CANT_LOGIN	= 276

int PSE_NO_SUCH_QUEUE	= 512

int PSE_NOT_AUTHORIZED_FOR_QUEUE	= 513

int PSE_QUEUE_HALTED	= 514

int PSE_UNABLE_TO_ATTACH_TO_QUEUE	= 515

int PSE_TOO_MANY_QUEUE_SERVERS	= 516

int PSE_INVALID_REQUEST	= 768

int PSE_NOT_ENOUGH_MEMORY	= 769

int PSE_NO_SUCH_PRINTER	= 770

int PSE_INVALID_PARAMETER	= 771

int PSE_PRINTER_BUSY	= 772

int PSE_CANT_DETACH_PRIMARY_SERVER	= 773

int PSE_GOING_DOWN	= 774

int PSE_NOT_CONNECTED	= 775

int PSE_ALREADY_IN_USE	= 776

int PSE_NO_JOB_ACTIVE	= 777

int PSE_NOT_ATTACHED_TO_SERVER	= 778

int PSE_ALREADY_IN_LIST	= 779

int PSE_DOWN	= 780

int PSE_NOT_IN_LIST	= 781

int PSE_NO_RIGHTS	= 782

int PSE_UNABLE_TO_VERIFY_IDENTITY	= 1024

int PSE_NOT_REMOTE_PRINTER	= 1025

//Client privilege levels for print server

int PS_LIMITED	= 0 // Limited access only

int PS_USER	= 1 // User access

int PS_OPERATOR	= 2 // Operator access


Print Server Services Structures

PS_INFO

REMOTE_INFO


PS_INFO

Status	string

NumPrinters	string

NumModes	string

MajorVersion	string

MinorVersion	string

Revision	string

SerialNumber	string

ServerType	string


REMOTE_INFO

PrinterType	integer

UseInterrupts	integer

IrqNumber	integer

NumBlocks	integer

UseXonXoff	integer

BaudRate	integer

DataBits	integer

StopBits	integer

Parity	integer

Socket	integer


AbortServicingQueueJobAndFile

Function Integer AbortServicingQueueJobAndFile ( long QueueID, long JobNumber, int FileHandle ) Library "NWNETAPI.DLL"


AttachQueueServerToQueue

Function AttachQueueServerToQueue ( long QueueID ) Library "NWNETAPI.DLL"


ChangeQueueJobEntry

Function Integer ChangeQueueJobEntry ( long QueueID, ref JOB_STRUCT Job ) Library "NWNETAPI.DLL"


ChangeQueueJobPosition

Function Integer ChangeQueueJobPosition ( long QueueID, long JobNumber, int NewPosition ) Library "NWNETAPI.DLL"


ChangeToClientRights

Function Integer ChangeToClientRights ( long QueueID, long JobNumber ) Library "NWNETAPI.DLL"


CloseFileAndAbortQueueJob

Function Integer CloseFileAndAbortQueueJob ( long QueueID, long JobNumber, int FileHandle ) Library "NWNETAPI.DLL"


CloseFileAndStartQueueJob

Function CloseFileAndStartQueueJob ( long QueueID, long JobNumber, int FileHandle ) Library "NWNETAPI.DLL"


CreateQueue

Function CreateQueue ( string QueueName, int QueueType, int DirectoryHandle, string PathName, ref long QueueID ) Library "NWNETAPI.DLL"


CreateQueueJobAndFile

Function CreateQueueJobAndFile ( long QueueID, ref JOB_STRUCT Job, ref int FileHandle ) Library "NWNETAPI.DLL"


DestroyQueue

Function Integer DestroyQueue ( long QueueID ) Library "NWNETAPI.DLL"


DetachQueueServerFromQueue

Function Integer DetachQueueServerFromQueue ( long QueueID ) Library "NWNETAPI.DLL"


FinishServicingQueueJobAndFile

Function FinishServicingQueueJobAndFile ( long QueueID, long JobNumber, long Charge, int FileHandle ) Library "NWNETAPI.DLL"


GetQueueJobList

Function Integer GetQueueJobList ( long QueueID, ref long JobCount, ref long JobNumberList, long MaxJobNumbers ) Library "NWNETAPI.DLL"


GetQueueJobsFileSize

Function Integer GetQueueJobsFileSize ( long QueueID, long JobNumber, ref long FileSize ) Library "NWNETAPI.DLL"


ReadQueueCurrentStatus

Function Integer ReadQueueCurrentStatus ( long QueueID, ref long QueueStatus, ref long NumberOfJobs, ref long NumberOfServers, ref long ServerIDList [ ], ref long ServerStationList [ ], long MaxNumberOfServers ) Library "NWNETAPI.DLL"

//ServerIDList is an array of MaxNumberOfServers longs

//ServerStationList is an array of MaxNumberOfServers longs


ReadQueueJobEntry

Function Integer ReadQueueJobEntry ( long QueueID, long JobNumber, ref JOB_STRUCT Job ) Library "NWNETAPI.DLL"


ReadQueueServerCurrentStatus

Function Integer ReadQueueServerCurrentStatus ( long QueueID, long ServerID, long ServerStation, ref STATUS_RECORD ServerStatusRecord ) Library "NWNETAPI.DLL"


RemoveJobFromQueue

Function Integer RemoveJobFromQueue ( long QueueID, long JobNumber ) Library "NWNETAPI.DLL"


RestoreQueueServerRights

Function Integer RestoreQueueServerRights ( ) Library "NWNETAPI.DLL"


ServiceQueueJobAndOpenFile

Function Integer ServiceQueueJobAndOpenFile ( long QueueID, int TargetJobType, ref JOB_STRUCT Job, ref int FileHandle ) Library "NWNETAPI.DLL"


SetQueueCurrentStatus

Function Integer SetQueueCurrentStatus ( long QueueID, long QueueStatus ) Library "NWNETAPI.DLL"


SetQueueServerCurrentStatus

Function Integer SetQueueServerCurrentStatus ( long QueueID, ref STATUS_RECORD ServerStatusRecord ) Library "NWNETAPI.DLL"


Print Queue Services Global Constants

//Queue Job Control Flags

int QF_OPERATOR_HOLD	= 128

int QF_USER_HOLD	= 64

int QF_ENTRY_OPEN	= 32

int QF_SERVICE_RESTART	= 16

int QF_AUTO_START	= 8

//Queue Status Flags

int QS_CANT_ADD_JOBS	= 1

int QS_SERVERS_CANT_ATTACH	= 2

int QS_CANT_SERVICE_JOBS	= 4

//Error return codes

int Q_ERROR	= 208

int NO_QUEUE	= 209

int NO_Q_SERVER	= 210

int NO_Q_RIGHTS	= 211

int Q_FULL	= 212

int NO_Q_JOB	= 213

int NO_JOB_RIGHTS	= 214

int Q_SERVICING	= 215

int STN_NOT_SERVER	= 217

int Q_NOT_ACTIVE	= 216

int Q_HALTED	= 218

int MAX_Q_SERVERS	= 219


Print Queue Services Structures

JOB_STRUCT

STATUS_RECORD


JOB_STRUCT

Reserved	string

ClientStation	long

ClientTaskNumber	long

ClientIDNumber	long

TargetServerIDNumber	long

TargetExecutionTime	string

JobEntryTime	string

JobNumber	long

JobType	integer

JobPosition	integer

JobControlFlags	integer

JobFileName	string

JobFileHandle	string

ServerStation	long

ServerTaskNumber	long

ServerIDNumber	long

TextJobDescription	string

ClientRecordArea	string


STATUS_RECORD

Record	string


AdvertiseService

Function Integer AdvertiseService ( int ServerType, string ServerName, ref int ServerSocket ) Library "NWIPXSPX.DLL"


QueryServices

Function Integer QueryServices ( int QueryType, int ServerType, int ReturnSize, ref SAP ServiceBuffer ) Library "NWIPXSPX.DLL"


ShutdownSAP

Function Integer ShutdownSAP ( string ServerName ) Library "NWIPXSPX.DLL"


Service Advertising Protocol Structures

SAP


SAP

Header	IPXHeader

ResponseType	integer

ServerType	integer

ServerName	string

Network	long

Node	NodeAddress

Socket	integer

InterveningNetworks	integer


ClearFile

Function Integer ClearFile ( string FileName ) Library "NWNETAPI.DLL"


ClearFileSet

Function Integer ClearFileSet ( ) Library "NWNETAPI.DLL"


ClearLogicalRecord

Function Integer ClearLogicalRecord ( string LogicalRecordName ) Library "NWNETAPI.DLL"


ClearLogicalRecordSet

Function Integer ClearLogicalRecordSet ( ) Library "NWNETAPI.DLL"


ClearPhysicalRecord

Function Integer ClearPhysicalRecord ( int FileHandle, long RecordStartOffset, long RecordLength ) Library "NWNETAPI.DLL"


ClearPhysicalRecordSet

Function Integer ClearPhysicalRecordSet ( ) Library "NWNETAPI.DLL"


CloseSemaphore

Function Integer CloseSemaphore ( long SemaphoreHandle ) Library "NWNETAPI.DLL"


ExamineSemaphore

Function Integer ExamineSemaphore ( long SemaphoreHandle&, ref int SemaphoreValue, ref int OpenCount ) Library "NWNETAPI.DLL"


GetLockMode

Function Integer GetLockMode ( ) Library "NWNETAPI.DLL"


LockFileSet

Function Integer LockFileSet ( int TimeoutLimit ) Library "NWNETAPI.DLL"


LockLogicalRecordSet

Function Integer LockLogicalRecordSet ( int LockDirective, int TimeoutLimit ) Library "NWNETAPI.DLL"


LockPhysicalRecordSet

Function Integer LockPhysicalRecordSet ( int LockDirective, int TimeoutLimit ) Library "NWNETAPI.DLL"


LogFile

Function Integer LogFile ( string FileName, int LockDirective, int TimeoutLimit ) Library "NWNETAPI.DLL"


LogLogicalRecord

Function LogLogicalRecord ( string LogicalRecordName, int LockDirective, int TimeoutLimit ) Library "NWNETAPI.DLL"


LogPhysicalRecord

Function Integer LogPhysicalRecord ( int FileHandle, long RecordStartOffset, long RecordLength, int LockDirective, int TimeoutLimit ) Library "NWNETAPI.DLL"


OpenSemaphore

Function Integer OpenSemaphore ( string SemaphoreName, int InitialValue, ref long SemaphoreHandle, ref int OpenCount ) Library "NWNETAPI.DLL"


ReleaseFile

Function Integer ReleaseFile ( string FileName ) Library "NWNETAPI.DLL"


ReleaseFileSet

Function Integer ReleaseFileSet ( ) Library "NWNETAPI.DLL"


ReleaseLogicalRecord

Function Integer ReleaseLogicalRecord ( string LogicalRecordName ) Library "NWNETAPI.DLL"


ReleaseLogicalRecordSet

Function Integer ReleaseLogicalRecordSet ( ) Library "NWNETAPI.DLL"


ReleasePhysicalRecord

Function Integer ReleasePhysicalRecord ( int FileHandle, long RecordStartOffset, long RecordLength ) Library "NWNETAPI.DLL"


ReleasePhysicalRecordSet

Function Integer ReleasePhysicalRecordSet ( ) Library "NWNETAPI.DLL"


SetLockMode

Function Integer SetLockMode ( int LockMode ) Library "NWNETAPI.DLL"


SignalSemaphore

Function Integer SignalSemaphore ( long SemaphoreHandle ) Library "NWNETAPI.DLL"


WaitOnSemaphore

Function Integer WaitOnSemaphore ( long SemaphoreHandle, int TimeoutLimit ) Library "NWNETAPI.DLL"


TTSAbortTransaction

Function Integer TTSAbortTransaction ( ) Library "NWNETAPI.DLL"


TTSBeginTransaction

Function Integer TTSBeginTransaction ( ) Library "NWNETAPI.DLL"


TTSEndTransaction

Function Integer TTSEndTransaction ( ref long TransactionNumber ) Library "NWNETAPI.DLL"


TTSGetApplicationThresholds

Function Integer TTSGetApplicationThresholds ( ref int LogicalRecordLockThreshold, ref int PhysicalRecordLockThreshold ) Library "NWNETAPI.DLL"


TTSGetStats

Function Integer TTSGetStats ( int ConnectionID, ref int LastTask, int StructSize, ref TTS_STATS TTSStats ) Library "NWNETAPI.DLL"

//2.x only


TTSGetWorkstationThresholds

Function Integer TTSGetWorkstationThresholds ( ref int LogicalRecordLockThreshold, ref int PhysicalRecordLockThreshold ) Library "NWNETAPI.DLL"


TTSIsAvailable

Function Integer TTSIsAvailable ( ) Library "NWNETAPI.DLL"


TTSSetApplicationThresholds

Function TTSSetApplicationThresholds ( ref int LogicalRecordLockThreshold , int PhysicalRecordLockThreshold ) Library "NWNETAPI.DLL"


TTSSetWorkstationThresholds

Function Integer TTSSetWorkstationThresholds ( int LogicalRecordLockThreshold, int PhysicalRecordLockThreshold ) Library "NWNETAPI.DLL"


TTSTransactionStatus

Function TTSTransactionStatus ( long TransactionNumber ) Library "NWNETAPI.DLL"


Transaction Tracking Services Structures

TTS_STATS


TTS_STATS

SystemElapsedTime	long

TTSSupported	string

TTSEnabled	string

TTSVolumeNumber	integer

TTSMaxOpenTransactions	integer

TTSMaxTransactionsOpened	integer

TTSCurrTransactionsOpened	integer

TTSTotalTransactions	long

TTSTotalWrites	long

TTSTotalBackouts	long

TTSUnfilledBackouts	integer

TTSDiskBlocksInUse	integer

TTSFATAllocations	long

TTSFileSizeChanges	long

TTSFilesTruncated	long

NumberOfTransactions	string

ConnectionNumber	string

TaskNumber	string


EndOfJob

Function EndOfJob ( ) Library "NWNETAPI.DLL"


GetConnectionID

Function Integer GetConnectionID ( string FileServerName, ref int ConnectionID ) Library "NWNETAPI.DLL"


GetDefaultConnectionID

Function Integer GetDefaultConnectionID ( ) Library "NWNETAPI.DLL"


GetNetWareShellVersion

Function Integer GetNetWareShellVersion ( ref int MajorVersion, ref int MinorVersion, ref int RevisionLevel ) Library "NWNETAPI.DLL"


GetNumberOfLocalDrives

Function Integer GetNumberOfLocalDrives ( ) Library "NWNETAPI.DLL"


GetPreferredConnectionID

Function Integer GetPreferredConnectionID ( ) Library "NWNETAPI.DLL"


GetPrimaryConnectionID

Function Integer GetPrimaryConnectionID ( ) Library "NWNETAPI.DLL"


GetWorkstationEnvironment

Subroutine GetWorkstationEnvironment ( ref [Any] OperatingSystemType, ref [Any] OperatingSystemVersion, ref string HardwareType, [Any] ShortHardWareType ) Library "NWNETAPI.DLL"

//get max length of strings


IsConnectionIDInUse

Function Integer IsConnectionIDInUse ( int ConnectionID ) Library "NWNETAPI.DLL"


SetEndOfJobStatus

Function Integer SetEndOfJobStatus ( int EndOfJobFlag ) Library "NWNETAPI.DLL"


SetNetWareErrorMode

Function Integer SetNetWareErrorMode ( int ErrorMode ) Library "NWNETAPI.DLL"


SetPreferredConnectionID

Subroutine SetPreferredConnectionID ( int ConnectionID ) Library "NWNETAPI.DLL"


SetPrimaryConnectionID

Function Integer SetPrimaryConnectionID ( int PrimaryConnectionID ) Library "NWNETAPI.DLL"


Copyright Notice

NetWare Interface for Visual Basic (NIVB)

Version 1.0

Copyright 1993, Novell, Inc.

NIVB is based on the NetWare C Interface for Windows Software Development Kit (SDK), version 1.3 of the NetWare DLLs.  The DLLs can be downloaded from Compuserve's NOVFILES forum (WINUP7.ZIP).  They are also included with an example program (NWTEST.ZIP) that illustrates how to use NIVB.  NWTEST can be downloaded from NOVLIB.

NIVB supports all NetWare API functions except IPX/SPX.

The SDK is available through Novell's Professional Developer's Program (PDP).  For information on becoming a member of the PDP and obtaining Novell SDKs, call 1-800-RED-WORD (800-733-9673) or 512-794-1796.  The SDK includes documentation for the APIs in the Windows DLLs, so to program to NIVB, you will need the SDK.

NIVB is not supported through Novell's regular Technical Support channels.  It is mostly untested, and therefore Novell makes no warranty of its merchantability or fitness for any purpose.

NIVB was developed by Novell's Systems Research Department, publishers of NetWare Application Notes.  An Application Note on NIVB will be published in the July 1993 issue.  Also, look for an extensive example program (called NWTEST) that illustrates how to use the interface.

Barring unforseen circumstances, Systems Research will (someday real soon) publish a version of NIVB based on the NetWare 4.0 Client SDK, with support for NetWare 4.0 and NetWare Directory Services (NDS).

The Systems Research Department welcomes feedback and questions on NIVB. Please contact:

Morgan B. Adair

Novell, Inc.

122 East 1700 South

Provo, Utah 84606

Fax:  801-429-5511

MHS:  madair@novell

Internet:  madair@novell.com

Compuserve:  76424,410

Last resort: 801-429-7757


Good News

What then can we say about these things?  If God is for us, who can be against us?  He do did not withhold his own Son, but gave Him up for all of us, will He not with Him also give us everything else?  Who will bring any charge against God's elect?  It is God who justifies.  Who is to condemn?  It is Christ Jesus, who dies, yes, who was raised, who is a the right hand of God, who indeed intercedes for us.  Who will seperate us from the love of Christ?  Will hardship, or distress, or persecution, or famine, or nakedness, or peril, or sword?  As it is written, 'For you sake we are being killed all day long; we are accounted as sheep to be slaughtered.'  No in all these things we are more than conquerors through Him who loved us.  For I am convinced that neither death, nor life, nor angels, nor rulers, nor things present, nor things to come, nor powers, nor height, nor depth, nor anything else in all creation, will be able to seperate us from the love of God in Christ Jesus our Lord.  ( Romans 8:31-39, NRSV)

For by grace you have been saved through faith, and this is not your own doing; it is the gift of God -- not the result of works, so that no one may boast.  For we are what He has made us, created in Christ Jesus for good works, which God prepared beforehand to be our way of life. ( Ephesians 2:8-10, NRSV)

Now to Him who by the power at work within us is able to accomplish abundantly far more than all we can ask or imagine, to Him be glory in the church and in Christ Jesus to all generations, forever and ever.  Amen. ( Ephesians 3:20-21, NRSV )