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.
 
 
 
 
 
 

56 lines
1.4 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: nocairo.hxx
//
// Contents: Stuff we need defined for ADs to run sans Cairo
//
// History:
//
//----------------------------------------------------------------------------
#ifndef _NOCAIRO_HXX_
#define _NOCAIRO_HXX_
#define VT_TYPEMASK 0x3ff
// normally defined in shelitfs.h, which we're not including
// for non-Cairo drop of ADs.
#define S_CANCELLED MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_NULL,2)
#if DBG==1
typedef BOOL (* ALLOC_HOOK)(size_t nSize);
ALLOC_HOOK MemSetAllocHook( ALLOC_HOOK pfnAllocHook );
#endif
HRESULT
MemAlloc(ULONG cb, LPVOID FAR* ppv);
HRESULT
MemFree(LPVOID pv);
HRESULT
MemAllocLinked ( void *pvRootBlock, unsigned long ulSize, void ** ppv );
void *
ADsAlloc(size_t size);
void
ADsFree(void * pv);
/* inline void * __cdecl */
/* operator new(size_t size) */
/* { */
/* return AllocADsMem(size); */
/* } */
/* */
/* inline void __cdecl */
/* operator delete(void * pv) */
/* { */
/* FreeADsMem(pv); */
/* } */
#endif // ifndef _NOCAIRO_HXX_