diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/nw/nw16/dll/procs.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/nw/nw16/dll/procs.h')
-rw-r--r-- | private/nw/nw16/dll/procs.h | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/private/nw/nw16/dll/procs.h b/private/nw/nw16/dll/procs.h new file mode 100644 index 000000000..cf51577cc --- /dev/null +++ b/private/nw/nw16/dll/procs.h @@ -0,0 +1,159 @@ + +/*++ + +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 <stdlib.h> + +#include <nt.h> +#include <ntrtl.h> +#include <nturtl.h> +#include <windows.h> + +#include <string.h> // strcmp +#include <stdio.h> +#include <stdarg.h> +#include <debugfmt.h> // FORMAT_LPSTR + +#include <nwapi.h> +#include <nwxchg.h> +#include <ntddnwfs.h> +#include <npapi.h> +#include <nwrnames.h> + +#include <vddsvc.h> +#include <nwdos.h> +#include <ncp.h> + +// 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 + ); + +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 // BUGBUG: there's no c_getMSW in the lib!!! +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 |