diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index 4581ef2..22a64eb 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ *.exe *.out *.app +*.ipch +*.exp +*.opensdf diff --git a/src/WinToastLib.sdf b/src/WinToastLib.sdf new file mode 100644 index 0000000..20c160b Binary files /dev/null and b/src/WinToastLib.sdf differ diff --git a/src/WinToastLib.sln b/src/WinToastLib.sln new file mode 100644 index 0000000..7868061 --- /dev/null +++ b/src/WinToastLib.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WinToastLib", "WinToastLib\WinToastLib.vcxproj", "{FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E}.Debug|Win32.ActiveCfg = Debug|Win32 + {FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E}.Debug|Win32.Build.0 = Debug|Win32 + {FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E}.Release|Win32.ActiveCfg = Release|Win32 + {FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/WinToastLib/ReadMe.txt b/src/WinToastLib/ReadMe.txt new file mode 100644 index 0000000..a6acbb7 --- /dev/null +++ b/src/WinToastLib/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + DYNAMIC LINK LIBRARY : WinToastLib Project Overview +======================================================================== + +AppWizard has created this WinToastLib DLL for you. + +This file contains a summary of what you will find in each of the files that +make up your WinToastLib application. + + +WinToastLib.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +WinToastLib.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +WinToastLib.cpp + This is the main DLL source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named WinToastLib.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/src/WinToastLib/WinToastLib.cpp b/src/WinToastLib/WinToastLib.cpp new file mode 100644 index 0000000..b4ea41a --- /dev/null +++ b/src/WinToastLib/WinToastLib.cpp @@ -0,0 +1,22 @@ +// WinToastLib.cpp : Defines the exported functions for the DLL application. +// + +#include "stdafx.h" +#include "WinToastLib.h" + + +// This is an example of an exported variable +WINTOASTLIB_API int nWinToastLib=0; + +// This is an example of an exported function. +WINTOASTLIB_API int fnWinToastLib(void) +{ + return 42; +} + +// This is the constructor of a class that has been exported. +// see WinToastLib.h for the class definition +WinToast::WinToast() +{ + return; +} diff --git a/src/WinToastLib/WinToastLib.h b/src/WinToastLib/WinToastLib.h new file mode 100644 index 0000000..b95584b --- /dev/null +++ b/src/WinToastLib/WinToastLib.h @@ -0,0 +1,22 @@ +// The following ifdef block is the standard way of creating macros which make exporting +// from a DLL simpler. All files within this DLL are compiled with the WINTOASTLIB_EXPORTS +// symbol defined on the command line. This symbol should not be defined on any project +// that uses this DLL. This way any other project whose source files include this file see +// WINTOASTLIB_API functions as being imported from a DLL, whereas this DLL sees symbols +// defined with this macro as being exported. +#ifdef WINTOASTLIB_EXPORTS +#define WINTOASTLIB_API __declspec(dllexport) +#else +#define WINTOASTLIB_API __declspec(dllimport) +#endif + +// This class is exported from the WinToastLib.dll +class WINTOASTLIB_API WinToast { +public: + WinToast(void); + // TODO: add your methods here. +}; + +extern WINTOASTLIB_API int nWinToastLib; + +WINTOASTLIB_API int fnWinToastLib(void); diff --git a/src/WinToastLib/WinToastLib.vcxproj b/src/WinToastLib/WinToastLib.vcxproj new file mode 100644 index 0000000..3865cb5 --- /dev/null +++ b/src/WinToastLib/WinToastLib.vcxproj @@ -0,0 +1,106 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {FF6A79CD-74D7-4AEA-B4CA-BEB4F3B39B1E} + Win32Proj + WinToastLib + + + + DynamicLibrary + true + v120 + Unicode + + + DynamicLibrary + false + v120 + true + Unicode + + + + + + + + + + + + + true + ..\..\lib\Debug + + + false + ..\..\lib\Release + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;WINTOASTLIB_EXPORTS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;WINTOASTLIB_EXPORTS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + false + + + false + + + + + Create + Create + + + + + + + \ No newline at end of file diff --git a/src/WinToastLib/WinToastLib.vcxproj.filters b/src/WinToastLib/WinToastLib.vcxproj.filters new file mode 100644 index 0000000..5cd0be8 --- /dev/null +++ b/src/WinToastLib/WinToastLib.vcxproj.filters @@ -0,0 +1,42 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/src/WinToastLib/dllmain.cpp b/src/WinToastLib/dllmain.cpp new file mode 100644 index 0000000..69b5891 --- /dev/null +++ b/src/WinToastLib/dllmain.cpp @@ -0,0 +1,19 @@ +// dllmain.cpp : Defines the entry point for the DLL application. +#include "stdafx.h" + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/src/WinToastLib/stdafx.cpp b/src/WinToastLib/stdafx.cpp new file mode 100644 index 0000000..620b5b9 --- /dev/null +++ b/src/WinToastLib/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// WinToastLib.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/src/WinToastLib/stdafx.h b/src/WinToastLib/stdafx.h new file mode 100644 index 0000000..f3a0737 --- /dev/null +++ b/src/WinToastLib/stdafx.h @@ -0,0 +1,16 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +// Windows Header Files: +#include + + + +// TODO: reference additional headers your program requires here diff --git a/src/WinToastLib/targetver.h b/src/WinToastLib/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/src/WinToastLib/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include