374 lines
11 KiB
C
374 lines
11 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License as published by the Free Software Foundation.
|
|
|
|
|
| This program 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 General Public License for more details.
|
|
|
|
|
| You should have received a copy of the GNU General Public License
|
|
| along with this program; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| NetWare Advance File Services (NSS) module
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: taysom $
|
|
| $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 465 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
| NSS Library source
|
|
|
|
|
| WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
|
|
|
|
| This header file should ONLY be used for NSS internal development.
|
|
| This includes Semantic Agents (SA) and Loadable Storage Services (LSS).
|
|
| Any other use may cause conflicts which NSS will NOT fix.
|
|
+-------------------------------------------------------------------------*/
|
|
#ifndef _WINDOWAPIS_H_
|
|
#define _WINDOWAPIS_H_
|
|
|
|
#ifndef _ZOMNI_H_
|
|
# include <zOmni.h>
|
|
#endif
|
|
|
|
#ifndef _PSSDEBUG_H_
|
|
# include <pssDebug.h>
|
|
#endif
|
|
|
|
#ifndef _INST_H_
|
|
# include <inst.h>
|
|
#endif
|
|
|
|
#ifndef _PSSMPK_H_
|
|
# include <pssmpk.h>
|
|
#endif
|
|
|
|
#ifndef _INLINES_H_
|
|
# include <inlines.h>
|
|
#endif
|
|
|
|
#ifndef _QUE_H_
|
|
#include <que.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ZOS_PutWinCursor(_p1,_p2,_p3) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
PutWinCursor(_p1,_p2,_p3); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_WinPrintf(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
WinPrintf _p1; \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_ClearWindow(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ClearWindow(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_NWMakeWindow(_p1,_p2,_p3,_p4,_p5,_p6) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
NWMakeWindow(_p1,_p2,_p3,_p4,_p5,_p6); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_SetColors(_p1,_p2,_p3,_p4,_p5) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetColors(_p1,_p2,_p3,_p4,_p5); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_SetTitle(_p1,_p2) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetTitle(_p1,_p2); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_DisplayWindow(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayWindow(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_GetCharSem(_p1,_p2,_p3) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
GetCharSem(_p1,_p2,_p3); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_DeleteWindow(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DeleteWindow(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_SetCharDisplayToAccent(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetCharDisplayToAccent(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_SetCharDisplayToNormal(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetCharDisplayToNormal(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_GetNWWinScreen(_p1,_p2,_p3) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
_p1 = GetNWWinScreen(_p2,_p3); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
|
|
#define ZOS_PutNWWinScreen(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
PutNWWinScreen(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_ActivateWinScreen(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ActivateWinScreen(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
|
|
#define ZOS_AddScrollElement(_p1,_p2) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
AddScrollElement(_p1,_p2); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_ClearErrorMessage(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ClearErrorMessage(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_ClearFieldData(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ClearFieldData(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_ClearScrollList(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ClearScrollList(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_CreateScrollList(_p1,_p2,_p3) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
CreateScrollList(_p1,_p2,_p3); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DeleteScrollList(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DeleteScrollList(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DisplayAllFieldData(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayAllFieldData(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DisplayErrorMessage(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayErrorMessage(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DisplayPrompt(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayPrompt(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DisplayScrollArea(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayScrollArea(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_GetChar(_p1,_p2) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
GetChar(_p1,_p2); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_GetFieldData(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
GetFieldData(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_UnLoadHelp(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
UnLoadHelp(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_WinChrDisplay(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
WinChrDisplay(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SetSeparatorLine(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetSeparatorLine(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
|
|
#define ZOS_MoveWindowRelative(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
MoveWindowRelative(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_MakeField(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
MakeField(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_DisplayColHeader(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
DisplayColHeader(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_LoadHelpFile(_p1,_p2,_p3,_p4,_p5,_p6,_p7,p8) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
LoadHelpFile(_p1,_p2,_p3,_p4,_p5,_p6,_p7,p8); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_InitFieldList(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
InitFieldList(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_HideWindow(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
HideWindow(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_GetTextWidth(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
GetTextWidth(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_GetTextHeight(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
GetTextHeight(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SetIntensity(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetIntensity(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SetHelpPage(_p1,_p2,_p3,_p4) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetHelpPage(_p1,_p2,_p3,_p4); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SetFieldHelpWindow(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetFieldHelpWindow(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SetBorder(_p1,_p2) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SetBorder(_p1,_p2); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_SelectWinMenuElement(_p1,_p2,_p3,_p4,_p5) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
SelectWinMenuElement(_p1,_p2,_p3,_p4,_p5); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_ReturnScrollElement(_p1,_p2,_p3,_p4) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
ReturnScrollElement(_p1,_p2,_p3,_p4); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_PutWindowInRear(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
PutWindowInRear(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_PutWindowInFront(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
PutWindowInFront(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#define ZOS_NWMakeMenuAndSelect(_p1) \
|
|
{ \
|
|
MPKNSS_UNLOCK(); \
|
|
NWMakeMenuAndSelect(_p1); \
|
|
MPKNSS_LOCK(); \
|
|
}
|
|
#ifdef __cplusplus
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _WINDOWAPIS_H_ */
|
|
|