STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
msclr::_detail::callback_cdecl_struct0< RetType > Struct Template Reference

#include <msclr/appdomain.h>

Public Member Functions

 RetType (__cdecl *func)()
 

Static Public Member Functions

static HRESULT __stdcall callback (void *cookie)
 

Public Attributes

RetType retValue
 

Member Function Documentation

template<typename RetType>
static HRESULT __stdcall msclr::_detail::callback_cdecl_struct0< RetType >::callback ( void cookie)
inlinestatic
958  {
959  HRESULT hr = E_FAIL;
960  if (cookie == NULL)
961  {
962  return hr;
963  }
964  callback_cdecl_struct0 *pcs = (callback_cdecl_struct0*)cookie;
965  pcs->retValue = pcs->func();
966  hr = S_OK;
967  return hr;
968  }
#define NULL
Definition: vcruntime.h:236
#define S_OK
Definition: comutil.h:62
template<typename RetType>
msclr::_detail::callback_cdecl_struct0< RetType >::RetType ( __cdecl *  func)

Member Data Documentation

template<typename RetType>
RetType msclr::_detail::callback_cdecl_struct0< RetType >::retValue

The documentation for this struct was generated from the following file: