#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "olectl.h"
#include "rpcproxy.h"
#include <initguid.h>
#include "scrrun.h"
#include "scrrun_private.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (scrrun) |
|
static struct provideclassinfo * | impl_from_IProvideClassInfo (IProvideClassInfo *iface) |
|
static HRESULT WINAPI | scrruncf_QueryInterface (IClassFactory *iface, REFIID riid, LPVOID *ppv) |
|
static ULONG WINAPI | scrruncf_AddRef (IClassFactory *iface) |
|
static ULONG WINAPI | scrruncf_Release (IClassFactory *iface) |
|
static HRESULT WINAPI | scrruncf_LockServer (IClassFactory *iface, BOOL fLock) |
|
static HRESULT | load_typelib (void) |
|
static HRESULT | get_typeinfo_of_guid (const GUID *guid, ITypeInfo **tinfo) |
|
HRESULT | get_typeinfo (tid_t tid, ITypeInfo **typeinfo) |
|
static void | release_typelib (void) |
|
static HRESULT WINAPI | provideclassinfo_QueryInterface (IProvideClassInfo *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | provideclassinfo_AddRef (IProvideClassInfo *iface) |
|
static ULONG WINAPI | provideclassinfo_Release (IProvideClassInfo *iface) |
|
static HRESULT WINAPI | provideclassinfo_GetClassInfo (IProvideClassInfo *iface, ITypeInfo **ti) |
|
void | init_classinfo (const GUID *guid, IUnknown *outer, struct provideclassinfo *classinfo) |
|
BOOL WINAPI | DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved) |
|
HRESULT WINAPI | DllRegisterServer (void) |
|
HRESULT WINAPI | DllUnregisterServer (void) |
|
HRESULT WINAPI | DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv) |
|
HRESULT WINAPI | DllCanUnloadNow (void) |
|
◆ COBJMACROS
◆ fnCreateInstance
◆ DllCanUnloadNow()
◆ DllGetClassObject()
Definition at line 281 of file scrrun.c.
282{
286 }
290 }
291
294}
#define IsEqualGUID(rguid1, rguid2)
static IClassFactory FileSystemFactory
static IClassFactory DictionaryFactory
#define CLASS_E_CLASSNOTAVAILABLE
◆ DllMain()
Definition at line 239 of file scrrun.c.
240{
242
244 {
245 case DLL_WINE_PREATTACH:
250 break;
254 break;
255 }
257}
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static HINSTANCE scrrun_instance
static void release_typelib(void)
◆ DllRegisterServer()
Definition at line 262 of file scrrun.c.
263{
266}
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
◆ DllUnregisterServer()
Definition at line 271 of file scrrun.c.
272{
275}
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
◆ get_typeinfo()
Definition at line 150 of file scrrun.c.
151{
153
156
159
164 }
165
167 ITypeInfo_Release(ti);
168 }
169
173}
#define InterlockedCompareExchangePointer
static HRESULT load_typelib(void)
static ITypeInfo * typeinfos[LAST_tid]
◆ get_typeinfo_of_guid()
◆ impl_from_IProvideClassInfo()
◆ init_classinfo()
Definition at line 232 of file scrrun.c.
233{
237}
static const IProvideClassInfoVtbl provideclassinfovtbl
Referenced by create_drive(), create_drivecoll(), create_file(), create_filecoll(), create_folder(), create_foldercoll(), create_textstream(), Dictionary_CreateInstance(), FileSystem_CreateInstance(), WshCollection_Create(), WshEnvironment_Create(), WshExec_create(), WshShellFactory_CreateInstance(), and WshShortcut_Create().
◆ load_typelib()
Definition at line 121 of file scrrun.c.
122{
125
128
131 ERR(
"LoadRegTypeLib failed: %08x\n",
hres);
133 }
134
136 ITypeLib_Release(tl);
138}
HRESULT WINAPI LoadRegTypeLib(REFGUID rguid, WORD wVerMajor, WORD wVerMinor, LCID lcid, ITypeLib **ppTLib)
#define LOCALE_SYSTEM_DEFAULT
Referenced by get_typeinfo(), and get_typeinfo_of_guid().
◆ provideclassinfo_AddRef()
Definition at line 204 of file scrrun.c.
205{
207 return IUnknown_AddRef(
This->outer);
208}
static struct provideclassinfo * impl_from_IProvideClassInfo(IProvideClassInfo *iface)
◆ provideclassinfo_GetClassInfo()
Definition at line 216 of file scrrun.c.
217{
219
221
223}
static HRESULT get_typeinfo_of_guid(const GUID *guid, ITypeInfo **tinfo)
◆ provideclassinfo_QueryInterface()
Definition at line 189 of file scrrun.c.
190{
192
194
197 IProvideClassInfo_AddRef(iface);
199 }
200 else
201 return IUnknown_QueryInterface(
This->outer,
riid,
obj);
202}
const GUID IID_IProvideClassInfo
#define IsEqualIID(riid1, riid2)
◆ provideclassinfo_Release()
Definition at line 210 of file scrrun.c.
211{
213 return IUnknown_Release(
This->outer);
214}
◆ release_typelib()
Definition at line 175 of file scrrun.c.
176{
178
180 return;
181
185
187}
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
Referenced by DllMain().
◆ scrruncf_AddRef()
Definition at line 66 of file scrrun.c.
67{
68 TRACE(
"(%p)\n", iface);
69 return 2;
70}
◆ scrruncf_LockServer()
Definition at line 78 of file scrrun.c.
79{
80 TRACE(
"(%p)->(%x)\n", iface, fLock);
82}
◆ scrruncf_QueryInterface()
Definition at line 45 of file scrrun.c.
46{
48
50 TRACE(
"(%p)->(IID_IUnknown %p)\n", iface,
ppv);
53 TRACE(
"(%p)->(IID_IClassFactory %p)\n", iface,
ppv);
55 }
56
60 }
61
64}
const GUID IID_IClassFactory
◆ scrruncf_Release()
Definition at line 72 of file scrrun.c.
73{
74 TRACE(
"(%p)\n", iface);
75 return 1;
76}
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
scrrun |
| ) |
|
◆ dictcf_vtbl
Initial value:=
{
}
HRESULT WINAPI Dictionary_CreateInstance(IClassFactory *factory, IUnknown *outer, REFIID riid, void **obj)
static HRESULT WINAPI scrruncf_LockServer(IClassFactory *iface, BOOL fLock)
static HRESULT WINAPI scrruncf_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppv)
static ULONG WINAPI scrruncf_AddRef(IClassFactory *iface)
static ULONG WINAPI scrruncf_Release(IClassFactory *iface)
Definition at line 93 of file scrrun.c.
◆ DictionaryFactory
◆ FileSystemFactory
◆ provideclassinfovtbl
const IProvideClassInfoVtbl provideclassinfovtbl |
|
static |
Initial value:= {
}
static ULONG WINAPI provideclassinfo_Release(IProvideClassInfo *iface)
static HRESULT WINAPI provideclassinfo_QueryInterface(IProvideClassInfo *iface, REFIID riid, void **obj)
static ULONG WINAPI provideclassinfo_AddRef(IProvideClassInfo *iface)
static HRESULT WINAPI provideclassinfo_GetClassInfo(IProvideClassInfo *iface, ITypeInfo **ti)
Definition at line 225 of file scrrun.c.
Referenced by init_classinfo().
◆ scrrun_instance
◆ scrruncf_vtbl
Initial value:=
{
}
HRESULT WINAPI FileSystem_CreateInstance(IClassFactory *iface, IUnknown *outer, REFIID riid, void **ppv)
Definition at line 84 of file scrrun.c.
◆ tid_ids
Initial value:= {
&IID_IDictionary,
&IID_IDrive,
&IID_IDriveCollection,
&IID_IFile,
&IID_IFileCollection,
&IID_IFileSystem3,
&IID_IFolder,
&IID_IFolderCollection,
&IID_ITextStream
}
Definition at line 108 of file scrrun.c.
Referenced by get_typeinfo().
◆ typeinfos
◆ typelib