120 lines
2.5 KiB
C
120 lines
2.5 KiB
C
/***********************************************************************
|
|
*
|
|
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; version 2.1
|
|
* of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, Novell, Inc.
|
|
*
|
|
* To contact Novell about this file by physical or electronic mail,
|
|
* you may find current contact information at www.novell.com.
|
|
*
|
|
***********************************************************************/
|
|
|
|
#if ! defined ( NWREDIR_H )
|
|
#define NWREDIR_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
|
|
|
|
#if !defined(NWOS2) || !defined(WIN32)
|
|
|
|
#ifndef REDIR_SIGNATURE
|
|
#define REDIR_SIGNATURE 'WN'
|
|
|
|
typedef struct tNW_REDIR_ENTRY
|
|
{
|
|
nuint16 index;
|
|
nuint8 deviceStatus;
|
|
nuint8 deviceType;
|
|
nuint16 storedValue;
|
|
nstr8 localName[16];
|
|
nstr8 networkName[128];
|
|
} NW_REDIR_ENTRY;
|
|
#endif
|
|
|
|
/* obsolete
|
|
NWCCODE N_API NWRedirLogin
|
|
(
|
|
pnstr8 pbstrServerName,
|
|
pnstr8 pbstrUserName,
|
|
pnstr8 pbstrPassword
|
|
);
|
|
*/
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWRedirLogout
|
|
(
|
|
pnstr8 pbstrServerName
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWRedirectDevice
|
|
(
|
|
pnstr8 pbstrUNCPath,
|
|
nuint8 buDevice
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWCancelRedirection
|
|
(
|
|
nuint8 buDevice
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWGetRedirectionEntry
|
|
(
|
|
NW_REDIR_ENTRY N_FAR * entry
|
|
);
|
|
|
|
#endif
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParseUNCPath
|
|
(
|
|
pnstr8 pbstrUNCPath,
|
|
NWCONN_HANDLE N_FAR * conn,
|
|
pnstr8 pbstrServerName,
|
|
pnstr8 pbstrVolName,
|
|
pnstr8 pbstrPath,
|
|
pnstr8 pbstrNWPath
|
|
);
|
|
|
|
N_EXTERN_LIBRARY( NWCCODE )
|
|
NWParseUNCPathConnRef
|
|
(
|
|
pnstr8 pbstrUNCPath,
|
|
pnuint32 pluConnRef,
|
|
pnstr8 pbstrServerName,
|
|
pnstr8 pbstrVolName,
|
|
pnstr8 pbstrPath,
|
|
pnstr8 pbstrNWPath
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include "npackoff.h"
|
|
#endif /* NWREDIR_H */
|