/[svn]/libgig/trunk/win32/dllmain.cpp
ViewVC logotype

Contents of /libgig/trunk/win32/dllmain.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1050 - (show annotations) (download)
Fri Mar 2 01:04:45 2007 UTC (13 years, 4 months ago) by schoenebeck
File size: 2277 byte(s)
* ported to Windows using native Windows functions for file IO
  (provided Dev-C++ + mingw project file)
* renamed macro WAVE_FORMAT_PCM to DLS_WAVE_FORMAT_PCM
  to avoid clash with definition in i.e. windows.h

1 /***************************************************************************
2 * *
3 * libgig - C++ cross-platform Gigasampler format file access library *
4 * *
5 * Copyright (C) 2003-2007 by Christian Schoenebeck *
6 * <cuse@users.sourceforge.net> *
7 * *
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21 * MA 02111-1307 USA *
22 ***************************************************************************/
23
24 // this file is only used for building libgig as Windows DLL
25
26 #include <windows.h>
27
28 BOOL APIENTRY DllMain(
29 HINSTANCE hInst, // Library instance handle
30 DWORD reason, // Reason this function is being called
31 LPVOID reserved // Not used
32 ) {
33 switch (reason) {
34 case DLL_PROCESS_ATTACH:
35 break;
36 case DLL_PROCESS_DETACH:
37 break;
38 case DLL_THREAD_ATTACH:
39 break;
40 case DLL_THREAD_DETACH:
41 break;
42 }
43
44 // Returns TRUE on success, FALSE on failure
45 return TRUE;
46 }
47

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC