/*++ Copyright (c) 1993/4 Microsoft Corporation Module Name: procs.c Abstract: Common header file for routines which support 16 bit applications. Author: Colin Watson (colinw) 21-Nov-1993 Environment: Revision History: --*/ #ifndef DBG #define DBG 0 #endif #if !DBG #undef NWDBG #endif #define UNICODE #include #include #include #include #include #include // strcmp #include #include #include // FORMAT_LPSTR #include #include #include #include #include #include #include #include #define IDS_CLIENT_ID_STRING 1 #define IDS_CLIENT_ID_STRING_NEC98 2 // Locks.c VOID Locks( USHORT Command ); VOID InitLocks( VOID ); VOID ResetLocks( VOID ); // Ncp.c extern PNWDOSTABLE pNwDosTable; extern HANDLE ServerHandles[MC]; CONN_INDEX SelectConnection( VOID ); CONN_INDEX SelectConnectionInCWD( VOID ); NTSTATUS OpenConnection( CONN_INDEX Connection ); ULONG GetDirectoryHandle2( DWORD Drive ); #define GET_NT_HANDLE() (HANDLE)(pNwDosTable->NtHandleHi << 16 | pNwDosTable->NtHandleLow) #define GET_NT_SRCHANDLE() (HANDLE)(pNwDosTable->NtHandleSrcHi << 16 | pNwDosTable->NtHandleSrcLow) // // MSW_PE: Machine Status Word Protect-mode enable bit // #ifndef MSW_PE #define MSW_PE 0x0001 #endif #undef getMSW extern WORD getMSW(VOID); #define IS_PROTECT_MODE() (UCHAR)((getMSW() & MSW_PE)? TRUE : FALSE) #if NWDBG #define NwPrint(String) NwPrintf String; VOID DebugControl( int Command ); VOID NwPrintf( char *Format, ... ); VOID VrDumpRealMode16BitRegisters( IN BOOL DebugStyle ); VOID VrDumpNwData( VOID ); VOID DisplayExtendedError( VOID ); VOID FormattedDump( PCHAR far_p, LONG len ); #else #define NwPrint(_x_) #define VrDumpRealMode16BitRegisters(_x_) #define VrDumpNwData( ) #define DisplayExtendedError( ) #define FormattedDump(_x_,_y_) #endif