Scroll to navigation

MSVCRT___RTDynamicCast(3w) Wine API MSVCRT___RTDynamicCast(3w)

NAME

MSVCRT___RTDynamicCast (MSVCRT.@)

SYNOPSIS

void* CDECL MSVCRT___RTDynamicCast
(
void* cppobj,
int unknown,
type_info* src,
type_info* dst,
int do_throw
)
 

DESCRIPTION

Dynamically cast a C++ object to one of its base classes.
 

PARAMS

cppobj [In] Any C++ object to cast.
unknown [In] Reserved, set to 0.
src [In] type_info object describing cppobj.
dst [In] type_info object describing the base class to cast to.
do_throw [In] TRUE = throw an exception if the cast fails, FALSE = don't.
 

RETURNS

Success: The address of cppobj, cast to the object described by dst.
Failure: NULL, If the object to be cast has no RTTI, or dst is not a valid cast for cppobj. If do_throw is TRUE, a bad_cast exception is thrown and this function does not return.
 

NOTES

This function is usually called by compiler generated code as a result of using one of the C++ dynamic cast statements.
 

IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.
Implemented in "dlls/msvcrt/cpp.c".
Debug channel "msvcrt".
Oct 2012 Wine API