ReactOS 0.4.16-dev-336-gb667d82
stdunk.h File Reference
#include <punknown.h>
Include dependency graph for stdunk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CUnknown
 

Typedefs

typedef INonDelegatingUnknown * PNONDELEGATINGUNKNOWN
 
typedef struct CUnknown CUnknown
 

Functions

 DECLARE_INTERFACE (INonDelegatingUnknown)
 
NTSTATUS STDMETHODCALLTYPE Unknown_QueryInterface (IUnknown *this, IN REFIID refiid, OUT PVOID *output)
 
ULONG STDMETHODCALLTYPE Unknown_AddRef (IUnknown *unknown_this)
 
ULONG STDMETHODCALLTYPE Unknown_Release (IUnknown *unknown_this)
 

Typedef Documentation

◆ CUnknown

CUnknown::CUnknown

Definition at line 14 of file stdunk.cpp.

15{
16 m_ref_count = 0;
17
18 if ( outer_unknown )
19 m_outer_unknown = outer_unknown;
20 else
21 m_outer_unknown = PUNKNOWN(dynamic_cast<PNONDELEGATINGUNKNOWN>(this));
22}
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
INonDelegatingUnknown * PNONDELEGATINGUNKNOWN
Definition: stdunk.h:30

◆ PNONDELEGATINGUNKNOWN

typedef INonDelegatingUnknown* PNONDELEGATINGUNKNOWN

Definition at line 30 of file stdunk.h.

Function Documentation

◆ DECLARE_INTERFACE()

DECLARE_INTERFACE ( INonDelegatingUnknown  )

Definition at line 20 of file stdunk.h.

21{
22 STDMETHOD_(NTSTATUS, NonDelegatingQueryInterface)( THIS_
23 IN REFIID,
24 OUT PVOID*) PURE;
25
26 STDMETHOD_(ULONG, NonDelegatingAddRef)( THIS ) PURE;
27 STDMETHOD_(ULONG, NonDelegatingRelease)( THIS ) PURE;
28};
LONG NTSTATUS
Definition: precomp.h:26
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define REFIID
Definition: guiddef.h:118
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40

◆ Unknown_AddRef()

ULONG STDMETHODCALLTYPE Unknown_AddRef ( IUnknown unknown_this)

◆ Unknown_QueryInterface()

NTSTATUS STDMETHODCALLTYPE Unknown_QueryInterface ( IUnknown this,
IN REFIID  refiid,
OUT PVOID output 
)

◆ Unknown_Release()

ULONG STDMETHODCALLTYPE Unknown_Release ( IUnknown unknown_this)