ReactOS 0.4.15-dev-7953-g1f49173
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 62 of file mstask_main.c.

63{
64 return dll_ref != 0 ? S_FALSE : S_OK;
65}
#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 50 of file mstask_main.c.

51{
52 TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
53
54 if (IsEqualGUID(rclsid, &CLSID_CTaskScheduler)) {
55 return IClassFactory_QueryInterface((LPCLASSFACTORY)&MSTASK_ClassFactory, iid, ppv);
56 }
57
58 FIXME("Not supported class: %s\n", debugstr_guid(rclsid));
60}
#define FIXME(fmt,...)
Definition: debug.h:111
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 case DLL_WINE_PREATTACH:
40 return FALSE;
43 hInst = hinstDLL;
44 break;
45 }
46
47 return TRUE;
48}
#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 67 of file mstask_main.c.

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

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 72 of file mstask_main.c.

73{
75}
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().