Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

154 lines
2.7 KiB

/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
Ulib.hxx
Abstract:
Environment:
ULIB, User Mode
--*/
#if !defined ( _ULIB_DEFINED_ )
#define _ULIB_DEFINED_
//
// Autocheck implies no windows header files so this helps make up the
// difference. Autocheck also has a special Debug switch, since
// it allows printing to the debugger but does not execute any other
// debug-only code.
//
#if defined( _AUTOCHECK_ ) || defined( _EFICHECK_ )
#define _NTAPI_ULIB_
#if DBG
#define _AUTOCHECK_DBG_
#endif
#undef DBG
#define DBG 0
#else
#ifndef _NTAPI_ULIB_
#define _NTAPI_ULIB_
#endif
#endif // _AUTOCHECK_
extern "C" {
// EFI utils don't include NT stuff
#if defined( _NTAPI_ULIB_ ) && !defined( _EFICHECK_ )
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <ntdddisk.h>
#endif // _NTAPI_ULIB_
#if !defined( _AUTOCHECK_ ) && !defined( _EFICHECK_ )
#include <windows.h>
#endif // _AUTOCHECK_
#if defined(_EFICHECK_)
// include the windows type definintions privately -- we don't want windows.h
#include "efiwintypes.hxx"
#endif
}
//
// Function prototypes for Ulib non member functions (see ulib.cxx)
//
extern "C"
BOOLEAN
InitializeUlib(
IN HANDLE DllHandle,
IN ULONG Reason,
IN PVOID Reserved
);
//
// Intrinsic functions BUGBUG - turning off for EFI
//
#if DBG==0 && !defined(_EFICHECK_)
#pragma intrinsic( memset, memcpy, memcmp )
#endif
//
// Here's the scoop...ntdef.h defined NULL to be ( PVOID ) 0.
// Cfront barfs on this if you try and assign NULL to any other pointer type.
// This leaves two options (a) cast all NULL assignments or (b) define NULL
// to be zero which is what C++ expects.
//
#if defined( NULL )
#undef NULL
#endif
#define NULL ( 0 )
//
// Make sure const is not defined.
//
#if defined( const )
#undef const
#endif
#include "ulibdef.hxx"
#include "object.hxx"
#include "clasdesc.hxx"
//
// External definitions for global objects (see ulib.cxx)
//
DECLARE_CLASS( PATH );
#if !defined( _AUTOCHECK_ ) && !defined( _EFICHECK_ )
DECLARE_CLASS( STREAM );
//
// Standard streams
//
extern PSTREAM Standard_Input_Stream;
extern PSTREAM Standard_Output_Stream;
extern PSTREAM Standard_Error_Stream;
#endif // _AUTOCHECK
#if !defined( _AUTOCHECK_ ) && !defined( _EFICHECK_ )
NONVIRTUAL
ULIB_EXPORT
HANDLE
FindFirstFile (
IN PCPATH Path,
OUT PWIN32_FIND_DATA FileFindData
);
#endif // _AUTOCHECK
#endif // _ULIB_DEFINED_