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_struct2< RetType, ArgType1, ArgType2 > 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

 ArgType2
 
RetType retValue
 
ArgType1 arg1
 
ArgType2 arg2
 

Member Function Documentation

template<typename RetType, typename ArgType1, typename ArgType2>
static HRESULT __stdcall msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::callback ( void cookie)
inlinestatic
1001  {
1002  HRESULT hr = E_FAIL;
1003  if (cookie == NULL)
1004  {
1005  return hr;
1006  }
1007  callback_cdecl_struct2 *pcs = (callback_cdecl_struct2*)cookie;
1008  pcs->retValue = pcs->func(pcs->arg1, pcs->arg2);
1009  hr = S_OK;
1010  return hr;
1011  }
#define NULL
Definition: vcruntime.h:236
#define S_OK
Definition: comutil.h:62
template<typename RetType, typename ArgType1, typename ArgType2>
msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::RetType ( __cdecl *  func)

Member Data Documentation

template<typename RetType, typename ArgType1, typename ArgType2>
ArgType1 msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::arg1
template<typename RetType, typename ArgType1, typename ArgType2>
ArgType2 msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::arg2
template<typename RetType, typename ArgType1, typename ArgType2>
msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::ArgType2
template<typename RetType, typename ArgType1, typename ArgType2>
RetType msclr::_detail::callback_cdecl_struct2< RetType, ArgType1, ArgType2 >::retValue

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