303 lines
6.1 KiB
C
303 lines
6.1 KiB
C
/******************************************************************************
|
|
|
|
%name: nwdpath.h %
|
|
%version: 7 %
|
|
%date_modified: Tue Jun 14 08:39:23 2005 %
|
|
$Copyright:
|
|
|
|
Copyright (c) 1989-1995 Novell, Inc. All Rights Reserved.
|
|
|
|
THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
|
|
TREATIES. NO PART OF THIS WORK MAY BE USED, PRACTICED, PERFORMED
|
|
COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED, CONDENSED,
|
|
EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, TRANSFORMED OR ADAPTED
|
|
WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
|
|
OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
|
|
CRIMINAL AND CIVIL LIABILITY.$
|
|
|
|
*****************************************************************************/
|
|
|
|
#if ! defined ( NWDPATH_H )
|
|
#define NWDPATH_H
|
|
|
|
#if ! defined ( NTYPES_H )
|
|
#include "ntypes.h"
|
|
#endif
|
|
|
|
#if ! defined ( NWCALDEF_H )
|
|
#include "nwcaldef.h"
|
|
#endif
|
|
|
|
#include "npackon.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* status values for NWGetDriveStatus */
|
|
#define NW_UNMAPPED_DRIVE 0x0000
|
|
#define NW_FREE_DRIVE 0x0000
|
|
#define NW_CDROM_DRIVE 0x0400
|
|
#define NW_LOCAL_FREE_DRIVE 0x0800
|
|
#define NW_LOCAL_DRIVE 0x1000
|
|
#define NW_NETWORK_DRIVE 0x2000
|
|
#define NW_LITE_DRIVE 0x4000
|
|
#define NW_PNW_DRIVE 0x4000
|
|
#define NW_NETWARE_DRIVE 0x8000
|
|
|
|
/* return error for NWGetDriveStatus */
|
|
#define NW_INVALID_DRIVE 15
|
|
|
|
/* defined for pathFormat parameter in NWGetDriveStatus */
|
|
#define NW_FORMAT_NETWARE 0
|
|
#define NW_FORMAT_SERVER_VOLUME 1
|
|
#define NW_FORMAT_DRIVE 2
|
|
#define NW_FORMAT_UNC 3
|
|
|
|
#if !defined(N_PLAT_UNIX)
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWSetDriveBase
|
|
(
|
|
nuint16 driveNum,
|
|
NWCONN_HANDLE conn,
|
|
NWDIR_HANDLE dirHandle,
|
|
const nstr8 N_FAR * dirPath,
|
|
nuint16 driveScope
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWSetInitDrive
|
|
(
|
|
NWCONN_HANDLE conn
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWSetSearchDriveVector
|
|
(
|
|
pnstr8 vectorBuffer
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetSearchDriveVector
|
|
(
|
|
pnstr8 vectorBuffer
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWDeleteDriveBase
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 driveScope
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDrivePathConnRef
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 mode,
|
|
pnuint32 connRef,
|
|
pnstr8 basePath,
|
|
pnuint16 driveScope
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDrivePath
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 mode,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
pnstr8 basePath,
|
|
pnuint16 driveScope
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDriveInformation
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 mode,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
NWDIR_HANDLE N_FAR * dirHandle,
|
|
pnuint16 driveScope,
|
|
pnstr8 dirPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDriveInfoConnRef
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 mode,
|
|
pnuint32 connRef,
|
|
NWDIR_HANDLE N_FAR * dirHandle,
|
|
pnuint16 driveScope,
|
|
pnstr8 dirPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDriveStatus
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 pathFormat,
|
|
pnuint16 status,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
pnstr8 rootPath,
|
|
pnstr8 relPath,
|
|
pnstr8 fullPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDriveStatusConnRef
|
|
(
|
|
nuint16 driveNum,
|
|
nuint16 pathFormat,
|
|
pnuint16 status,
|
|
pnuint32 connRef,
|
|
pnstr8 rootPath,
|
|
pnstr8 relPath,
|
|
pnstr8 fullPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetFirstDrive
|
|
(
|
|
pnuint16 firstDrive
|
|
);
|
|
|
|
#else
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetDriveStatusConnRef2
|
|
(
|
|
pnstr path,
|
|
nuint16 pathFormat,
|
|
pnuint16 status,
|
|
pnuint32 connRef,
|
|
pnstr8 rootPath,
|
|
pnstr8 relPath,
|
|
pnstr8 fullPath
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY( NWCCODE )
|
|
NWSetDriveBase2
|
|
(
|
|
const nstr8 * localPath,
|
|
NWCONN_HANDLE conn,
|
|
NWDIR_HANDLE dirHandle,
|
|
const nstr8 * dirPath,
|
|
nuint32 flags
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY( NWCCODE )
|
|
NWDeleteDriveBase2
|
|
(
|
|
const nstr8 * localPath
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY( NWCCODE )
|
|
NWGetMappedDrives
|
|
(
|
|
nptr mapBuffer,
|
|
pnuint32 mapBufferLen
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY( NWCCODE )
|
|
NWEnumMappedDrives
|
|
(
|
|
nptr mapBuffer,
|
|
pnuint32 mapIndex,
|
|
pnuint32 connReference,
|
|
nuint localPathLen,
|
|
pnstr8 localPath,
|
|
nuint dirPathLen,
|
|
pnstr8 dirPath
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY( NWCCODE )
|
|
NWGetMountPath
|
|
(
|
|
pnstr8 pathBuffer,
|
|
pnuint32 pathPathLen
|
|
);
|
|
#endif
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetPathFromDirectoryBase /* 3.x & 4.x file servers */
|
|
(
|
|
NWCONN_HANDLE conn,
|
|
nuint8 volNum,
|
|
nuint32 dirBase,
|
|
nuint8 namSpc,
|
|
pnuint8 len,
|
|
pnstr8 pathName
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetPathFromDirectoryEntry /* 2.x file servers only */
|
|
(
|
|
NWCONN_HANDLE conn,
|
|
nuint8 volNum,
|
|
nuint16 dirEntry,
|
|
pnuint8 len,
|
|
pnstr8 pathName
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParseNetWarePath
|
|
(
|
|
const nstr8 N_FAR * path,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
NWDIR_HANDLE N_FAR * dirHandle,
|
|
pnstr8 newPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParseNetWarePathConnRef
|
|
(
|
|
const nstr8 N_FAR * path,
|
|
pnuint32 connRef,
|
|
NWDIR_HANDLE N_FAR * dirHandle,
|
|
pnstr8 newPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParsePathConnRef
|
|
(
|
|
const nstr8 N_FAR * path,
|
|
pnstr8 serverName,
|
|
pnuint32 connRef,
|
|
pnstr8 volName,
|
|
pnstr8 dirPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParsePath
|
|
(
|
|
const nstr8 N_FAR * path,
|
|
pnstr8 serverName,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
pnstr8 volName,
|
|
pnstr8 dirPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( pnstr8 )
|
|
NWStripServerOffPath
|
|
(
|
|
const nstr8 N_FAR * path,
|
|
pnstr8 server
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWCreateUNCPath
|
|
(
|
|
NWCONN_HANDLE conn,
|
|
NWDIR_HANDLE dirHandle,
|
|
pnstr8 path,
|
|
pnstr8 UNCPath
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include "npackoff.h"
|
|
#endif
|