- Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
49
pd-0.44-2/portmidi/pm_win/pmdll.c
Executable file
49
pd-0.44-2/portmidi/pm_win/pmdll.c
Executable file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
====================================================================
|
||||
DLL to perform action when program shuts down
|
||||
====================================================================
|
||||
*/
|
||||
|
||||
#include "windows.h"
|
||||
#include "pmdll.h"
|
||||
|
||||
static close_fn_ptr_type close_function = NULL;
|
||||
|
||||
|
||||
DLL_EXPORT pm_set_close_function(close_fn_ptr_type close_fn_ptr)
|
||||
{
|
||||
close_function = close_fn_ptr;
|
||||
}
|
||||
|
||||
|
||||
static void Initialize( void ) {
|
||||
return;
|
||||
}
|
||||
|
||||
static void Terminate( void ) {
|
||||
if (close_function) {
|
||||
(*close_function)();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, //DLL module handle
|
||||
DWORD fdwReason, //for calling function
|
||||
LPVOID lbpvReserved)//reserved
|
||||
{
|
||||
switch(fdwReason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
/* when DLL starts, run this */
|
||||
Initialize();
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
/* when DLL ends, this run (note: verified this run */
|
||||
Terminate();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue