ReactOS 0.4.16-dev-1078-g21d3e29
mstask_main.c File Reference
#include <stdio.h>
#include "mstask_private.h"
#include "objbase.h"
#include "rpcproxy.h"
#include "wine/debug.h"
Include dependency graph for mstask_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (mstask)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 
HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID iid, LPVOID *ppv)
 
HRESULT WINAPI DllCanUnloadNow (void)
 
HRESULT WINAPI DllRegisterServer (void)
 
HRESULT WINAPI DllUnregisterServer (void)
 

Variables

static HINSTANCE hInst
 
LONG dll_ref = 0
 

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 64 of file mstask_main.c.

65{
66 return dll_ref != 0 ? S_FALSE : S_OK;
67}
#define S_OK
Definition: intsafe.h:52
LONG dll_ref
Definition: mstask_main.c:31
#define S_FALSE
Definition: winerror.h:2357

◆ DllGetClassObject()

HRESULT WINAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  iid,
LPVOID ppv 
)

Definition at line 52 of file mstask_main.c.

53{
54 TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
55
56 if (IsEqualGUID(rclsid, &CLSID_CTaskScheduler)) {
57 return IClassFactory_QueryInterface((LPCLASSFACTORY)&MSTASK_ClassFactory, iid, ppv);
58 }
59
60 FIXME("Not supported class: %s\n", debugstr_guid(rclsid));
62}
#define FIXME(fmt,...)
Definition: precomp.h:53
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
ClassFactoryImpl MSTASK_ClassFactory
Definition: factory.c:119
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 33 of file mstask_main.c.

34{
35 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
36
37 switch (fdwReason)
38 {
39#ifndef __REACTOS__
40 case DLL_WINE_PREATTACH:
41 return FALSE;
42#endif
45 hInst = hinstDLL;
46 break;
47 }
48
49 return TRUE;
50}
static DWORD const fdwReason
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
static IN DWORD IN LPVOID lpvReserved
static HINSTANCE hInst
Definition: mstask_main.c:30

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 69 of file mstask_main.c.

70{
72}
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:98

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 74 of file mstask_main.c.

75{
77}
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:110

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( mstask  )

Variable Documentation

◆ dll_ref

◆ hInst

HINSTANCE hInst
static

Definition at line 30 of file mstask_main.c.

Referenced by DllMain(), DllRegisterServer(), and DllUnregisterServer().