mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Remove DisableThreadLibraryCalls.h
By default, VC++ links in a stub entry point, which already calls DisableThreadLibraryCalls(). See: %VS110COMNTOOLS%..\..\VC\crt\src\dllmain.c
This commit is contained in:
parent
096023ba6e
commit
531eee06da
@ -1,50 +0,0 @@
|
||||
/*
|
||||
Copyright (C) 2011 spx
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __DISABLETHREADLIBRARYCALLS_H__
|
||||
#define __DISABLETHREADLIBRARYCALLS_H__
|
||||
|
||||
// DisableThreadLibraryCalls Function
|
||||
// http://msdn.microsoft.com/en-us/library/ms682579.aspx
|
||||
//
|
||||
// Note: Do not call "DisableThreadLibraryCalls" in a DLL which is statically linked to the CRT
|
||||
// http://support.microsoft.com/kb/555563/en-us
|
||||
|
||||
#if defined(_DLL) /* /MD */
|
||||
|
||||
/*
|
||||
** DllMain
|
||||
**
|
||||
** Disables the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notification calls.
|
||||
**
|
||||
*/
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
@ -310,7 +310,6 @@
|
||||
<ClInclude Include="CommandHandler.h" />
|
||||
<ClInclude Include="ConfigParser.h" />
|
||||
<ClInclude Include="DialogAbout.h" />
|
||||
<ClInclude Include="DisableThreadLibraryCalls.h" />
|
||||
<ClInclude Include="Error.h" />
|
||||
<ClInclude Include="Group.h" />
|
||||
<ClInclude Include="Litestep.h" />
|
||||
|
@ -386,9 +386,6 @@
|
||||
<ClInclude Include="ConfigParser.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="DisableThreadLibraryCalls.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Error.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
|
@ -32,8 +32,6 @@
|
||||
#include "UpdateCheck.h"
|
||||
#include "../Version.h"
|
||||
|
||||
#include "DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
using namespace Gdiplus;
|
||||
|
||||
enum TIMER
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "../PluginPerfMon/ObjInst.h"
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
struct MeasureData
|
||||
{
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <wchar.h>
|
||||
#include "CoreTempProxy.h"
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
typedef enum eMeasureType
|
||||
{
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include <algorithm>
|
||||
#include "FolderInfo.h"
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
enum MeasureType
|
||||
{
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
void SendKey(WORD key)
|
||||
{
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "ObjInst.h"
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
struct MeasureData
|
||||
{
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include <crtdbg.h>
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
typedef struct _PROCESSOR_POWER_INFORMATION
|
||||
{
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <vector>
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
struct MeasureData
|
||||
{
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <time.h>
|
||||
#include <shlwapi.h>
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
#include "../../Common/StringUtil.h"
|
||||
|
||||
#define BUFFER_SIZE 4096
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <psapi.h>
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
// system resources that can be counted
|
||||
enum MEASURETYPE
|
||||
|
@ -20,8 +20,6 @@
|
||||
#include <stdio.h>
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
|
||||
#pragma pack(push, 1)
|
||||
struct SpeedFanData
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Library/Export.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -72,8 +72,6 @@
|
||||
|
||||
#include "../../Library/Export.h"
|
||||
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
extern "C"
|
||||
{
|
||||
__declspec(dllexport) UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id);
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <process.h>
|
||||
#include "../../Library/pcre-8.10/config.h"
|
||||
#include "../../Library/pcre-8.10/pcre.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
#include "../../Common/StringUtil.h"
|
||||
#include "../API/RainmeterAPI.h"
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <string>
|
||||
#include <wlanapi.h>
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
enum MEASURETYPE
|
||||
{
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <Functiondiscoverykeys_devpkey.h>
|
||||
#include "PolicyConfig.h"
|
||||
#include "../API/RainmeterAPI.h"
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
#define SAFE_RELEASE(punk) \
|
||||
if ((punk) != nullptr) { (punk)->Release(); (punk) = nullptr; }
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <stdio.h>
|
||||
#include "../../Common/RawString.h"
|
||||
#include "../../Library/Export.h" // Rainmeter's exported functions
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
struct MeasureData
|
||||
{
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include <map>
|
||||
#include <time.h>
|
||||
|
||||
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
|
||||
|
||||
const int VOLUME_STEP = 5;
|
||||
|
||||
/* The exported functions */
|
||||
|
Loading…
Reference in New Issue
Block a user