Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

74 lines
1.8 KiB

/***
*rtti.h - prototypes of CRT entry points for run-time type information routines.
*
* Copyright (c) 1994-1995, Microsoft Corporation. All rights reserved.
*
*Purpose:
* RTTI header.
*
* [Internal]
*
*Revision History:
* 09-26-94 JWM Module created (prototypes only).
* 10-03-94 JWM Made all prototypes 'extern "C"'
* 02-14-95 CFW Clean up Mac merge.
* 03-29-95 CFW Add error message to internal headers.
* 12-14-95 JWM Add "#pragma once".
*
****/
#if _MSC_VER > 1000 /*IFSTRIP=IGN*/
#pragma once
#endif
#ifndef _INC_RTTI
#define _INC_RTTI
#ifndef _CRTBLD
/*
* This is an internal C runtime header file. It is used when building
* the C runtimes only. It is not to be used as a public header file.
*/
#error ERROR: Use of C runtime library internal header file.
#endif /* _CRTBLD */
#define _RTTI 1 // needed by ehdata.h
#include <ehdata.h>
#include <rttidata.h>
typedef TypeDescriptor _RTTITypeDescriptor;
#ifdef _ACTUAL_PARAMS
extern "C" PVOID __cdecl __RTDynamicCast (PVOID *, // ptr to src object
LONG, // offset of vfptr in src object
_RTTITypeDescriptor *, // src type
_RTTITypeDescriptor *, // target type
BOOL); // isReference
extern "C" _RTTITypeDescriptor * __cdecl __RTtypeid (PVOID *); // ptr to src object
extern "C" PVOID __cdecl __RTCastToVoid (PVOID *); // ptr to src object
#else
extern "C" PVOID __cdecl __RTDynamicCast (
PVOID, // ptr to vfptr
LONG, // offset of vftable
PVOID, // src type
PVOID, // target type
BOOL); // isReference
extern "C" PVOID __cdecl __RTtypeid (PVOID); // ptr to vfptr
extern "C" PVOID __cdecl __RTCastToVoid (PVOID); // ptr to vfptr
#endif
#define TYPEIDS_EQ(pID1, pID2) ((pID1 == pID2) || !strcmp(pID1->name, pID2->name))
#endif /* _INC_RTTI */