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_struct1< RetType, ArgType1 > Struct Template Reference

#include <msclr/appdomain.h>

Public Member Functions

 RetType (__cdecl *func)(ArgType1)
 

Static Public Member Functions

static HRESULT __stdcall callback (void *cookie)
 

Public Attributes

RetType retValue
 
ArgType1 arg1
 

Member Function Documentation

template<typename RetType, typename ArgType1>
static HRESULT __stdcall msclr::_detail::callback_cdecl_struct1< RetType, ArgType1 >::callback ( void cookie)
inlinestatic
979  {
980  HRESULT hr = E_FAIL;
981  if (cookie == NULL)
982  {
983  return hr;
984  }
985  callback_cdecl_struct1 *pcs = (callback_cdecl_struct1*)cookie;
986  pcs->retValue = pcs->func(pcs->arg1);
987  hr = S_OK;
988  return hr;
989  }
#define S_OK
Definition: comutil.h:62
#define NULL
Definition: corecrt.h:158
template<typename RetType, typename ArgType1>
msclr::_detail::callback_cdecl_struct1< RetType, ArgType1 >::RetType ( __cdecl *  func)

Member Data Documentation

template<typename RetType, typename ArgType1>
ArgType1 msclr::_detail::callback_cdecl_struct1< RetType, ArgType1 >::arg1
template<typename RetType, typename ArgType1>
RetType msclr::_detail::callback_cdecl_struct1< RetType, ArgType1 >::retValue

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