ReactOS 0.4.16-dev-250-g3ecd236
shlwapi_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "shlwapi.h"
#include "wine/debug.h"
Include dependency graph for shlwapi_main.c:

Go to the source code of this file.

Macros

#define NO_SHLWAPI_REG
 
#define NO_SHLWAPI_STREAM
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (shell)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
 
HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
 

Variables

DECLSPEC_HIDDEN HINSTANCE shlwapi_hInstance = 0
 
DECLSPEC_HIDDEN DWORD SHLWAPI_ThreadRef_index = TLS_OUT_OF_INDEXES
 

Macro Definition Documentation

◆ NO_SHLWAPI_REG

#define NO_SHLWAPI_REG

Definition at line 26 of file shlwapi_main.c.

◆ NO_SHLWAPI_STREAM

#define NO_SHLWAPI_STREAM

Definition at line 27 of file shlwapi_main.c.

Function Documentation

◆ DllGetVersion()

HRESULT WINAPI DllGetVersion ( DLLVERSIONINFO pdvi)

Definition at line 103 of file shlwapi_main.c.

104{
105 DLLVERSIONINFO2 *pdvi2 = (DLLVERSIONINFO2*)pdvi;
106
107 TRACE("(%p)\n",pdvi);
108
109 if (!pdvi)
110 return E_INVALIDARG;
111
112 switch (pdvi2->info1.cbSize)
113 {
114 case sizeof(DLLVERSIONINFO2):
115 pdvi2->dwFlags = 0;
116 pdvi2->ullVersion = MAKEDLLVERULL(6, 0, 2800, 1612);
117 /* Fall through */
118 case sizeof(DLLVERSIONINFO):
119 pdvi2->info1.dwMajorVersion = 6;
120 pdvi2->info1.dwMinorVersion = 0;
121 pdvi2->info1.dwBuildNumber = 2800;
123 return S_OK;
124 }
125
126 WARN("pdvi->cbSize = %d, unhandled\n", pdvi2->info1.cbSize);
127 return E_INVALIDARG;
128}
#define WARN(fmt,...)
Definition: precomp.h:61
#define E_INVALIDARG
Definition: ddrawi.h:101
#define S_OK
Definition: intsafe.h:52
#define DLLVER_PLATFORM_WINDOWS
Definition: shlwapi.h:1989
struct _DLLVERSIONINFO2 DLLVERSIONINFO2
#define MAKEDLLVERULL(mjr, mnr, bld, qfe)
Definition: shlwapi.h:2010
struct _DllVersionInfo DLLVERSIONINFO
#define TRACE(s)
Definition: solgame.cpp:4
DLLVERSIONINFO info1
Definition: shlwapi.h:2000
DWORD dwMajorVersion
Definition: shlwapi.h:1983
DWORD dwBuildNumber
Definition: shlwapi.h:1985
DWORD dwMinorVersion
Definition: shlwapi.h:1984
DWORD dwPlatformID
Definition: shlwapi.h:1986

◆ DllMain()

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

Definition at line 61 of file shlwapi_main.c.

62{
63 TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
64 switch (fdwReason)
65 {
68 shlwapi_hInstance = hinstDLL;
70#ifdef __REACTOS__
72#endif
73 break;
75 if (fImpLoad) break;
76#ifdef __REACTOS__
79#endif
81 break;
82 }
83 return TRUE;
84}
DWORD LPVOID fImpLoad
Definition: misc.cpp:142
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
DWORD WINAPI TlsAlloc(VOID)
Definition: thread.c:1100
BOOL WINAPI TlsFree(IN DWORD Index)
Definition: thread.c:1166
EXTERN_C VOID FreeViewStatePropertyBagCache(VOID)
Definition: propbag.cpp:1925
CRITICAL_SECTION g_csBagCacheLock
Definition: propbag.cpp:1311
DECLSPEC_HIDDEN HINSTANCE shlwapi_hInstance
Definition: shlwapi_main.c:33
DECLSPEC_HIDDEN DWORD SHLWAPI_ThreadRef_index
Definition: shlwapi_main.c:34
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:575
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shell  )

Variable Documentation

◆ shlwapi_hInstance

◆ SHLWAPI_ThreadRef_index

DECLSPEC_HIDDEN DWORD SHLWAPI_ThreadRef_index = TLS_OUT_OF_INDEXES

Definition at line 34 of file shlwapi_main.c.

Referenced by DllMain(), SHGetThreadRef(), and SHSetThreadRef().