CFugue
dllmain.cpp
1 // dllmain.cpp : Implementation of DllMain.
2 
3 #include "stdafx.h"
4 #include "resource.h"
5 
6 //#include "CFugueDLL_i.h" // <<- pasted inline for cmake convenience
7 #ifdef __cplusplus
8 extern "C"{
9 #endif
10 
11 
12 #include <rpc.h>
13 #include <rpcndr.h>
14 
15 #ifdef _MIDL_USE_GUIDDEF_
16 
17 #ifndef INITGUID
18 #define INITGUID
19 #include <guiddef.h>
20 #undef INITGUID
21 #else
22 #include <guiddef.h>
23 #endif
24 
25 #define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
26  DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
27 
28 #else // !_MIDL_USE_GUIDDEF_
29 
30 #ifndef __IID_DEFINED__
31 #define __IID_DEFINED__
32 
33 typedef struct _IID
34 {
35  unsigned long x;
36  unsigned short s1;
37  unsigned short s2;
38  unsigned char c[8];
39 } IID;
40 
41 #endif // __IID_DEFINED__
42 
43 #ifndef CLSID_DEFINED
44 #define CLSID_DEFINED
45 typedef IID CLSID;
46 #endif // CLSID_DEFINED
47 
48 #define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
49  const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
50 
51 #endif !_MIDL_USE_GUIDDEF_
52 
53 MIDL_DEFINE_GUID(IID, LIBID_MusicNoteDLLLib,0x75949D24,0x4E69,0x4C98,0xBE,0x8D,0x51,0x79,0x7D,0x67,0x3E,0x73);
54 
55 #undef MIDL_DEFINE_GUID
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #include "dllmain.h"
62 #include "dlldatax.h"
63 
64 CMusicNoteDLLModule _AtlModule;
65 
66 // DLL Entry Point
67 extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
68 {
69 #ifdef _MERGE_PROXYSTUB
70  if (!PrxDllMain(hInstance, dwReason, lpReserved))
71  return FALSE;
72 #endif
73  hInstance;
74  return _AtlModule.DllMain(dwReason, lpReserved);
75 }
Definition: dllmain.cpp:33

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem