Spellforce-Spell-framework
|
#include <windows.h>
#include "core/sf_hooks.h"
#include "core/sf_wrappers.h"
#include "registry/sf_registry.h"
#include "../asi/sf_asi.h"
#include <stdio.h>
Go to the source code of this file.
Functions | |
BOOL APIENTRY | DllMain (HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) |
Entry point for the DLL. | |
BOOL APIENTRY DllMain | ( | HMODULE | hModule, |
DWORD | ul_reason_for_call, | ||
LPVOID | lpReserved ) |
Entry point for the DLL.
This function is called by the operating system when the DLL is loaded or unloaded. It handles initialization and cleanup based on the reason for the call.
hModule | Handle to the DLL module. This value is used for resource management. |
ul_reason_for_call | The reason the function is being called. Possible values include:
|
lpReserved | If ul_reason_for_call is DLL_PROCESS_ATTACH , this parameter is NULL for dynamic loads and non-NULL for static loads. If ul_reason_for_call is DLL_PROCESS_DETACH , this parameter is NULL if the DLL is being unloaded by a call to FreeLibrary , or non-NULL if the process is terminating. |
TRUE
if successful; FALSE
otherwise. If FALSE
is returned during DLL_PROCESS_ATTACH
, the DLL will not be loaded. Definition at line 38 of file sfsf.cpp.