Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (dxdiag) |
|
static IDxDiagContainerImpl * | impl_from_IDxDiagContainer (IDxDiagContainer *iface) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_QueryInterface (IDxDiagContainer *iface, REFIID riid, void **ppobj) |
|
static ULONG WINAPI | IDxDiagContainerImpl_AddRef (IDxDiagContainer *iface) |
|
static ULONG WINAPI | IDxDiagContainerImpl_Release (IDxDiagContainer *iface) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_GetNumberOfChildContainers (IDxDiagContainer *iface, DWORD *pdwCount) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_EnumChildContainerNames (IDxDiagContainer *iface, DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) |
|
static HRESULT | IDxDiagContainerImpl_GetChildContainerInternal (IDxDiagContainerImpl_Container *cont, LPCWSTR pwszContainer, IDxDiagContainerImpl_Container **subcont) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_GetChildContainer (IDxDiagContainer *iface, LPCWSTR pwszContainer, IDxDiagContainer **ppInstance) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_GetNumberOfProps (IDxDiagContainer *iface, DWORD *pdwCount) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_EnumPropNames (IDxDiagContainer *iface, DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) |
|
static HRESULT WINAPI | IDxDiagContainerImpl_GetProp (IDxDiagContainer *iface, LPCWSTR pwszPropName, VARIANT *pvarProp) |
|
HRESULT | DXDiag_CreateDXDiagContainer (REFIID riid, IDxDiagContainerImpl_Container *cont, IDxDiagProvider *pProv, LPVOID *ppobj) |
|
◆ COBJMACROS
◆ DXDiag_CreateDXDiagContainer()
◆ IDxDiagContainerImpl_AddRef()
static ULONG WINAPI IDxDiagContainerImpl_AddRef |
( |
IDxDiagContainer * |
iface | ) |
|
|
static |
Definition at line 54 of file container.c.
55{
58
59 TRACE(
"(%p)->(ref before=%u)\n",
This, refCount - 1);
60
62
63 return refCount;
64}
#define InterlockedIncrement
static IDxDiagContainerImpl * impl_from_IDxDiagContainer(IDxDiagContainer *iface)
static void DXDIAGN_LockModule(void)
◆ IDxDiagContainerImpl_EnumChildContainerNames()
static HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames |
( |
IDxDiagContainer * |
iface, |
|
|
DWORD |
dwIndex, |
|
|
LPWSTR |
pwszContainer, |
|
|
DWORD |
cchContainer |
|
) |
| |
|
static |
Definition at line 97 of file container.c.
99{
103
104 TRACE(
"(%p, %u, %p, %u)\n", iface, dwIndex, pwszContainer, cchContainer);
105
106 if (
NULL == pwszContainer || 0 == cchContainer) {
108 }
109
111 {
113 TRACE(
"Found container name %s, copying string\n",
debugstr_w(
p->contName));
114 lstrcpynW(pwszContainer,
p->contName, cchContainer);
115 return (cchContainer <=
lstrlenW(
p->contName)) ?
117 }
119 }
120
121 TRACE(
"Failed to find container name at specified index\n");
122 *pwszContainer = '\0';
124}
#define DXDIAG_E_INSUFFICIENT_BUFFER
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
◆ IDxDiagContainerImpl_EnumPropNames()
Definition at line 202 of file container.c.
204{
208
209 TRACE(
"(%p, %u, %p, %u)\n", iface, dwIndex, pwszPropName, cchPropName);
210
211 if (
NULL == pwszPropName || 0 == cchPropName) {
213 }
214
216 {
219 lstrcpynW(pwszPropName,
p->propName, cchPropName);
220 return (cchPropName <=
lstrlenW(
p->propName)) ?
222 }
224 }
225
226 TRACE(
"Failed to find property name at specified index\n");
228}
◆ IDxDiagContainerImpl_GetChildContainer()
static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer |
( |
IDxDiagContainer * |
iface, |
|
|
LPCWSTR |
pwszContainer, |
|
|
IDxDiagContainer ** |
ppInstance |
|
) |
| |
|
static |
Definition at line 140 of file container.c.
142{
149
151
152 if (
NULL == ppInstance ||
NULL == pwszContainer) {
154 }
155
157
158 tmp_len =
lstrlenW(pwszContainer) + 1;
162
166 if (!*(
cur + 1))
break;
174 }
175
181 TRACE(
"Succeeded in getting the container instance\n");
182 }
183
187}
HRESULT DXDiag_CreateDXDiagContainer(REFIID riid, IDxDiagContainerImpl_Container *cont, IDxDiagProvider *pProv, LPVOID *ppobj)
static HRESULT IDxDiagContainerImpl_GetChildContainerInternal(IDxDiagContainerImpl_Container *cont, LPCWSTR pwszContainer, IDxDiagContainerImpl_Container **subcont)
#define HeapFree(x, y, z)
◆ IDxDiagContainerImpl_GetChildContainerInternal()
◆ IDxDiagContainerImpl_GetNumberOfChildContainers()
static HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfChildContainers |
( |
IDxDiagContainer * |
iface, |
|
|
DWORD * |
pdwCount |
|
) |
| |
|
static |
Definition at line 84 of file container.c.
86{
88
89 TRACE(
"(%p)\n", iface);
90 if (
NULL == pdwCount) {
92 }
93 *pdwCount =
This->cont->nSubContainers;
95}
◆ IDxDiagContainerImpl_GetNumberOfProps()
static HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfProps |
( |
IDxDiagContainer * |
iface, |
|
|
DWORD * |
pdwCount |
|
) |
| |
|
static |
Definition at line 189 of file container.c.
191{
193
194 TRACE(
"(%p)\n", iface);
195 if (
NULL == pdwCount) {
197 }
198 *pdwCount =
This->cont->nProperties;
200}
◆ IDxDiagContainerImpl_GetProp()
Definition at line 230 of file container.c.
232{
235
237
238 if (
NULL == pvarProp ||
NULL == pwszPropName) {
240 }
241
243 {
244 if (0 ==
lstrcmpW(
p->propName, pwszPropName)) {
247 }
248 }
249
251}
void WINAPI VariantInit(VARIANTARG *pVarg)
HRESULT WINAPI VariantCopy(VARIANTARG *pvargDest, VARIANTARG *pvargSrc)
◆ IDxDiagContainerImpl_QueryInterface()
◆ IDxDiagContainerImpl_Release()
static ULONG WINAPI IDxDiagContainerImpl_Release |
( |
IDxDiagContainer * |
iface | ) |
|
|
static |
Definition at line 66 of file container.c.
67{
70
71 TRACE(
"(%p)->(ref before=%u)\n",
This, refCount + 1);
72
73 if (!refCount) {
76 }
77
79
80 return refCount;
81}
#define InterlockedDecrement
static void DXDIAGN_UnlockModule(void)
#define IDxDiagProvider_Release(p)
◆ impl_from_IDxDiagContainer()
Definition at line 29 of file container.c.
30{
32}
#define CONTAINING_RECORD(address, type, field)
Referenced by IDxDiagContainerImpl_AddRef(), IDxDiagContainerImpl_EnumChildContainerNames(), IDxDiagContainerImpl_EnumPropNames(), IDxDiagContainerImpl_GetChildContainer(), IDxDiagContainerImpl_GetNumberOfChildContainers(), IDxDiagContainerImpl_GetNumberOfProps(), IDxDiagContainerImpl_GetProp(), IDxDiagContainerImpl_QueryInterface(), and IDxDiagContainerImpl_Release().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
dxdiag |
| ) |
|
◆ DxDiagContainer_Vtbl
const IDxDiagContainerVtbl DxDiagContainer_Vtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfProps(IDxDiagContainer *iface, DWORD *pdwCount)
static ULONG WINAPI IDxDiagContainerImpl_AddRef(IDxDiagContainer *iface)
static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(IDxDiagContainer *iface, LPCWSTR pwszContainer, IDxDiagContainer **ppInstance)
static HRESULT WINAPI IDxDiagContainerImpl_GetProp(IDxDiagContainer *iface, LPCWSTR pwszPropName, VARIANT *pvarProp)
static ULONG WINAPI IDxDiagContainerImpl_Release(IDxDiagContainer *iface)
static HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(IDxDiagContainer *iface, DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer)
static HRESULT WINAPI IDxDiagContainerImpl_GetNumberOfChildContainers(IDxDiagContainer *iface, DWORD *pdwCount)
static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(IDxDiagContainer *iface, DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName)
Definition at line 253 of file container.c.
Referenced by DXDiag_CreateDXDiagContainer().