-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,492 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.29613.14 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AmbiboxEffects", "AmbiboxEffects\AmbiboxEffects.vcxproj", "{E594036E-BAEA-4E83-8093-F59EC02DCD9F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Debug|x64.ActiveCfg = Debug|x64 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Debug|x64.Build.0 = Debug|x64 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Debug|x86.Build.0 = Debug|Win32 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Release|x64.ActiveCfg = Release|x64 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Release|x64.Build.0 = Release|x64 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Release|x86.ActiveCfg = Release|Win32 | ||
{E594036E-BAEA-4E83-8093-F59EC02DCD9F}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {89A9ACE6-25A0-4C2F-A0CD-75BCCF9A5B8E} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// // This is an independent project of an individual developer. Dear PVS-Studio, please check it. | ||
// // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com | ||
|
||
#include "pch.h" | ||
#include "framework.h" | ||
#include "AmbiboxEffects.h" | ||
|
||
#include "LEDWindow.h" | ||
|
||
#ifdef _DEBUG | ||
#define new DEBUG_NEW | ||
#endif | ||
|
||
// | ||
//TODO: If this DLL is dynamically linked against the MFC DLLs, | ||
// any functions exported from this DLL which call into | ||
// MFC must have the AFX_MANAGE_STATE macro added at the | ||
// very beginning of the function. | ||
// | ||
// For example: | ||
// | ||
// extern "C" BOOL PASCAL EXPORT ExportedFunction() | ||
// { | ||
// AFX_MANAGE_STATE(AfxGetStaticModuleState()); | ||
// // normal function body here | ||
// } | ||
// | ||
// It is very important that this macro appear in each | ||
// function, prior to any calls into MFC. This means that | ||
// it must appear as the first statement within the | ||
// function, even before any object variable declarations | ||
// as their constructors may generate calls into the MFC | ||
// DLL. | ||
// | ||
// Please see MFC Technical Notes 33 and 58 for additional | ||
// details. | ||
// | ||
|
||
// CAmbiboxEffectsApp | ||
|
||
BEGIN_MESSAGE_MAP(CAmbiboxEffectsApp, CWinApp) | ||
END_MESSAGE_MAP() | ||
|
||
|
||
// CAmbiboxEffectsApp construction | ||
|
||
CAmbiboxEffectsApp::CAmbiboxEffectsApp() | ||
:pShellManager( nullptr ) | ||
{ | ||
// TODO: add construction code here, | ||
// Place all significant initialization in InitInstance | ||
} | ||
|
||
|
||
// The one and only CAmbiboxEffectsApp object | ||
|
||
CAmbiboxEffectsApp theApp; | ||
|
||
|
||
// CAmbiboxEffectsApp initialization | ||
|
||
BOOL CAmbiboxEffectsApp::InitInstance() | ||
{ | ||
// InitCommonControlsEx() òðåáóþòñÿ äëÿ Windows XP, åñëè ìàíèôåñò | ||
// ïðèëîæåíèÿ èñïîëüçóåò ComCtl32.dll âåðñèè 6 èëè áîëåå ïîçäíåé âåðñèè äëÿ âêëþ÷åíèÿ | ||
// ñòèëåé îòîáðàæåíèÿ.  ïðîòèâíîì ñëó÷àå áóäåò âîçíèêàòü ñáîé ïðè ñîçäàíèè ëþáîãî îêíà. | ||
INITCOMMONCONTROLSEX initCtrls; | ||
initCtrls.dwSize = sizeof( INITCOMMONCONTROLSEX ); | ||
// Âûáåðèòå ýòîò ïàðàìåòð äëÿ âêëþ÷åíèÿ âñåõ îáùèõ êëàññîâ óïðàâëåíèÿ, êîòîðûå íåîáõîäèìî èñïîëüçîâàòü | ||
// â âàøåì ïðèëîæåíèè. | ||
initCtrls.dwICC = ICC_WIN95_CLASSES; | ||
InitCommonControlsEx( &initCtrls ); | ||
|
||
CWinApp::InitInstance(); | ||
|
||
// Create the shell manager, in case the dialog contains | ||
// any shell tree view or shell list view controls. | ||
pShellManager = new CShellManager; | ||
|
||
// Activate "Windows Native" visual manager for enabling themes in MFC controls | ||
CMFCVisualManager::SetDefaultManager( RUNTIME_CLASS( CMFCVisualManagerWindows ) ); | ||
|
||
|
||
AfxEnableControlContainer(); | ||
|
||
SetRegistryKey( _T( "maaGames" ) ); | ||
|
||
CreateLedWindow(); | ||
|
||
return TRUE; | ||
} | ||
|
||
|
||
int CAmbiboxEffectsApp::ExitInstance() | ||
{ | ||
DestroyLedWindow(); | ||
|
||
delete pShellManager; | ||
|
||
return CWinApp::ExitInstance(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; AmbiboxEffects.def : Declares the module parameters for the DLL. | ||
|
||
LIBRARY | ||
|
||
EXPORTS | ||
SIR_GetName | ||
SIR_GetVersion | ||
SIR_GetDescription | ||
SIR_Init | ||
SIR_UnInit | ||
SIR_Start | ||
SIR_Stop | ||
SIR_ShowSettings | ||
SIR_SetBacklightSettings | ||
SIR_SaveSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// // This is an independent project of an individual developer. Dear PVS-Studio, please check it. | ||
// // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com | ||
|
||
#pragma once | ||
|
||
#ifndef __AFXWIN_H__ | ||
#error "include 'pch.h' before including this file for PCH" | ||
#endif | ||
|
||
#include "resource.h" // main symbols | ||
|
||
|
||
// CAmbiboxEffectsApp | ||
// See AmbiboxEffects.cpp for the implementation of this class | ||
// | ||
|
||
class CAmbiboxEffectsApp : public CWinApp | ||
{ | ||
public: | ||
CAmbiboxEffectsApp(); | ||
|
||
// Overrides | ||
public: | ||
virtual BOOL InitInstance(); | ||
|
||
DECLARE_MESSAGE_MAP() | ||
virtual int ExitInstance(); | ||
|
||
private: | ||
CShellManager * pShellManager; | ||
}; |
Binary file not shown.
Oops, something went wrong.