blob: ff7a1cd697aa5b2f287b8e59bcd5439b6783e075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
//
// SwapAPODll.cpp -- Copyright (c) Microsoft Corporation. All rights reserved.
//
// Author:
//
// Description:
//
// SwapAPODll.cpp : Implementation of DLL Exports.
#include <atlbase.h>
#include <atlcom.h>
#include <atlcoll.h>
#include <atlsync.h>
#include <mmreg.h>
#include "resource.h"
#include "SwapAPODll.h"
#include <SwapAPO.h>
#include <SwapAPODll_i.c>
//-------------------------------------------------------------------------
// Array of APO_REG_PROPERTIES structures implemented in this module.
// Each new APO implementation will be added to this array.
//
APO_REG_PROPERTIES const *gCoreAPOs[] =
{
&CSwapAPOMFX::sm_RegProperties.m_Properties,
&CSwapAPOSFX::sm_RegProperties.m_Properties
};
// {secret}
class CSwapAPODllModule : public CAtlDllModuleT< CSwapAPODllModule >
{
public :
DECLARE_LIBID(LIBID_SwapAPODlllib)
DECLARE_REGISTRY_APPID_RESOURCEID(IDR_SWAPAPODLL, "{0A21D954-674A-4C09-806E-DB4FBE8F199C}")
};
// {secret}
CSwapAPODllModule _AtlModule;
// {secret}
extern "C" BOOL WINAPI DllMain(HINSTANCE /* hInstance */, DWORD dwReason, LPVOID lpReserved)
{
if (DLL_PROCESS_ATTACH == dwReason)
{
}
// do necessary cleanup only if the DLL is being unloaded dynamically
else if ((DLL_PROCESS_DETACH == dwReason) && (NULL == lpReserved))
{
}
return _AtlModule.DllMain(dwReason, lpReserved);
}
// {secret}
__control_entrypoint(DllExport)
STDAPI DllCanUnloadNow(void)
{
return _AtlModule.DllCanUnloadNow();
}
// {secret}
_Check_return_
STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID FAR* ppv)
{
return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
}
|