ReactOS  0.4.13-dev-99-g7e18b6d
devenum_private.h File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "winerror.h"
#include "ole2.h"
#include "strmif.h"
#include "olectl.h"
#include "uuids.h"
#include "wine/unicode.h"
Include dependency graph for devenum_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ClassFactoryImpl
 
struct  MediaCatMoniker
 

Macros

#define COBJMACROS
 

Enumerations

enum  device_type { DEVICE_FILTER, DEVICE_CODEC }
 

Functions

static void DEVENUM_LockModule (void)
 
static void DEVENUM_UnlockModule (void)
 
MediaCatMonikerDEVENUM_IMediaCatMoniker_Construct (void) DECLSPEC_HIDDEN
 
HRESULT create_EnumMoniker (REFCLSID class, IEnumMoniker **enum_mon) DECLSPEC_HIDDEN
 

Variables

LONG dll_refs DECLSPEC_HIDDEN
 
static const WCHAR backslashW [] = {'\\',0}
 
static const WCHAR clsidW [] = {'C','L','S','I','D','\\',0}
 
static const WCHAR instanceW [] = {'\\','I','n','s','t','a','n','c','e',0}
 
static const WCHAR wszActiveMovieKey []
 
static const WCHAR deviceW [] = {'@','d','e','v','i','c','e',':',0}
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 38 of file devenum_private.h.

Enumeration Type Documentation

◆ device_type

Enumerator
DEVICE_FILTER 
DEVICE_CODEC 

Definition at line 65 of file devenum_private.h.

Function Documentation

◆ create_EnumMoniker()

HRESULT create_EnumMoniker ( REFCLSID  class,
IEnumMoniker **  enum_mon 
)

Definition at line 938 of file mediacatenum.c.

939 {
940  EnumMonikerImpl * pEnumMoniker = CoTaskMemAlloc(sizeof(EnumMonikerImpl));
941  WCHAR buffer[78];
942 
943  if (!pEnumMoniker)
944  return E_OUTOFMEMORY;
945 
946  pEnumMoniker->IEnumMoniker_iface.lpVtbl = &IEnumMoniker_Vtbl;
947  pEnumMoniker->ref = 1;
948  pEnumMoniker->sw_index = 0;
949  pEnumMoniker->cm_index = 0;
950  pEnumMoniker->class = *class;
951 
956  pEnumMoniker->sw_key = NULL;
957 
961  pEnumMoniker->cm_key = NULL;
962 
963  *ppEnumMoniker = &pEnumMoniker->IEnumMoniker_iface;
964 
966 
967  return S_OK;
968 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
static const WCHAR instanceW[]
#define HKEY_CURRENT_USER
Definition: winreg.h:11
#define CHARS_IN_GUID
GLuint buffer
Definition: glext.h:5915
IEnumMoniker IEnumMoniker_iface
Definition: mediacatenum.c:35
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
static void DEVENUM_LockModule(void)
static const WCHAR clsidW[]
__wchar_t WCHAR
Definition: xmlstorage.h:180
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
Definition: compobj.c:2343
static const WCHAR wszActiveMovieKey[]
#define S_OK
Definition: intsafe.h:59
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:219
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:242
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
Definition: reg.c:3381
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
static const IEnumMonikerVtbl IEnumMoniker_Vtbl
Definition: mediacatenum.c:927
#define KEY_ENUMERATE_SUB_KEYS
Definition: nt_native.h:1019

Referenced by DEVENUM_ICreateDevEnum_CreateClassEnumerator().

◆ DEVENUM_IMediaCatMoniker_Construct()

MediaCatMoniker* DEVENUM_IMediaCatMoniker_Construct ( void  )

Definition at line 737 of file mediacatenum.c.

738 {
739  MediaCatMoniker * pMoniker = NULL;
740  pMoniker = CoTaskMemAlloc(sizeof(MediaCatMoniker));
741  if (!pMoniker)
742  return NULL;
743 
744  pMoniker->IMoniker_iface.lpVtbl = &IMoniker_Vtbl;
745  pMoniker->ref = 0;
746  pMoniker->has_class = FALSE;
747  pMoniker->name = NULL;
748 
750 
752 
753  return pMoniker;
754 }
smooth NULL
Definition: ftsmooth.c:416
static void DEVENUM_LockModule(void)
static ULONG WINAPI DEVENUM_IMediaCatMoniker_AddRef(IMoniker *iface)
Definition: mediacatenum.c:366
IMoniker IMoniker_iface
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
static const IMonikerVtbl IMoniker_Vtbl
Definition: mediacatenum.c:710

Referenced by DEVENUM_IEnumMoniker_Next(), and DEVENUM_IParseDisplayName_ParseDisplayName().

◆ DEVENUM_LockModule()

◆ DEVENUM_UnlockModule()

Variable Documentation

◆ backslashW

◆ clsidW

◆ DECLSPEC_HIDDEN

const WCHAR clsid_keyname [6] DECLSPEC_HIDDEN

Definition at line 84 of file devenum_private.h.

◆ deviceW

◆ instanceW

const WCHAR instanceW[] = {'\\','I','n','s','t','a','n','c','e',0}
static

◆ wszActiveMovieKey

const WCHAR wszActiveMovieKey[]
static
Initial value:
= {'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\',
'A','c','t','i','v','e','M','o','v','i','e','\\',
'd','e','v','e','n','u','m','\\',0}

Definition at line 95 of file devenum_private.h.

Referenced by create_EnumMoniker(), create_PropertyBag(), DEVENUM_CreateAMCategoryKey(), and register_codecs().