summaryrefslogtreecommitdiff
path: root/audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp')
-rw-r--r--audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp69
1 files changed, 69 insertions, 0 deletions
diff --git a/audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp b/audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp
new file mode 100644
index 00000000..dd915cd5
--- /dev/null
+++ b/audio/sysvad/SwapAPO/PropPageExtensions/CplExt.cpp
@@ -0,0 +1,69 @@
+//**@@@*@@@****************************************************
+//
+// Microsoft Windows
+// Copyright (C) Microsoft Corporation. All rights reserved.
+//
+//**@@@*@@@****************************************************
+
+//
+// FileName: CplExt.cpp
+//
+// Abstract: Implementation of DLL Exports
+//
+// ----------------------------------------------------------------------------
+
+
+#include "stdafx.h"
+
+_Analysis_mode_(_Analysis_code_type_user_driver_)
+
+HINSTANCE g_hInstance = NULL;
+
+
+class CCplExtModule : public CAtlDllModuleT< CCplExtModule >
+{
+public :
+ DECLARE_LIBID(LIBID_CplExtLib)
+ DECLARE_REGISTRY_APPID_RESOURCEID(IDR_CPL_EXT, "{A7D2EC8B-B70F-434C-A0CE-0DF324805F7D}")
+};
+
+CCplExtModule _AtlModule;
+
+
+// DLL Entry Point
+extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
+{
+ g_hInstance = hInstance;
+ return _AtlModule.DllMain(dwReason, lpReserved);
+}
+
+
+// Used to determine whether the DLL can be unloaded by OLE
+STDAPI DllCanUnloadNow(void)
+{
+ return _AtlModule.DllCanUnloadNow();
+}
+
+
+// Returns a class factory to create an object of the requested type
+STDAPI DllGetClassObject(_In_ REFCLSID rclsid,_In_ REFIID riid, _Outptr_ LPVOID* ppv)
+{
+ return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
+}
+
+
+// DllRegisterServer - Adds entries to the system registry
+STDAPI DllRegisterServer(void)
+{
+ // registers object, typelib and all interfaces in typelib
+ HRESULT hr = _AtlModule.DllRegisterServer();
+ return hr;
+}
+
+
+// DllUnregisterServer - Removes entries from the system registry
+STDAPI DllUnregisterServer(void)
+{
+ HRESULT hr = _AtlModule.DllUnregisterServer();
+ return hr;
+}