| 1 |
/* |
| 2 |
rubberband-dll |
| 3 |
|
| 4 |
A consumer of the rubberband static library that simply exposes |
| 5 |
its functionality as a DLL. |
| 6 |
|
| 7 |
Copyright 2018-2019 Jonathan Gilbert |
| 8 |
|
| 9 |
Permission is hereby granted, free of charge, to any person |
| 10 |
obtaining a copy of this software and associated documentation |
| 11 |
files (the "Software"), to deal in the Software without |
| 12 |
restriction, including without limitation the rights to use, copy, |
| 13 |
modify, merge, publish, distribute, sublicense, and/or sell copies |
| 14 |
of the Software, and to permit persons to whom the Software is |
| 15 |
furnished to do so, subject to the following conditions: |
| 16 |
|
| 17 |
The above copyright notice and this permission notice shall be |
| 18 |
included in all copies or substantial portions of the Software. |
| 19 |
|
| 20 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 21 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 22 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 23 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR |
| 24 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 25 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 26 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 27 |
|
| 28 |
Except as contained in this notice, the name of Jonathan Gilbert |
| 29 |
shall not be used in advertising or otherwise to promote the sale, |
| 30 |
use or other dealings in this Software without prior written |
| 31 |
authorization. |
| 32 |
*/ |
| 33 |
|
| 34 |
#include "stdafx.h" |
| 35 |
|
| 36 |
BOOL APIENTRY DllMain( HMODULE hModule, |
| 37 |
DWORD ul_reason_for_call, |
| 38 |
LPVOID lpReserved |
| 39 |
) |
| 40 |
{ |
| 41 |
switch (ul_reason_for_call) |
| 42 |
{ |
| 43 |
case DLL_PROCESS_ATTACH: |
| 44 |
case DLL_THREAD_ATTACH: |
| 45 |
case DLL_THREAD_DETACH: |
| 46 |
case DLL_PROCESS_DETACH: |
| 47 |
break; |
| 48 |
} |
| 49 |
return TRUE; |
| 50 |
} |
| 51 |
|