Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2015-03-04 19:04:16 +0000
committerGerrit Code Review @ Eclipse.org2015-03-06 18:14:25 +0000
commit6bd7355e47e40bf8f8030b4533a0f2da0b1e2b58 (patch)
treea00fce12ae5d88058d020cf19b4b33c5cb7256c8 /core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp
parent3ad1ac66cf08d1ee2a4c597af13474dcc1104ded (diff)
downloadorg.eclipse.cdt-6bd7355e47e40bf8f8030b4533a0f2da0b1e2b58.tar.gz
org.eclipse.cdt-6bd7355e47e40bf8f8030b4533a0f2da0b1e2b58.tar.xz
org.eclipse.cdt-6bd7355e47e40bf8f8030b4533a0f2da0b1e2b58.zip
Bug 459971 Windows native for Serial Port.
Not checking the binaries in until I get closer to the end. Still some API changes I want to make to do more buffering. Done as a Visual Studio 2013 project. I also brough winreg into that sln file as I though I had to make a change in it but didn't in the end. But really should bring them all. Change-Id: I6e7d472763381cdc0ae558d8cd63993bb0460457 Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp b/core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp
new file mode 100644
index 0000000000..6e297985f3
--- /dev/null
+++ b/core/org.eclipse.cdt.core.win32/library/serial/dllmain.cpp
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2015 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ *******************************************************************************/
+#include "stdafx.h"
+
+BOOL APIENTRY DllMain( HMODULE hModule,
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved
+ )
+{
+ switch (ul_reason_for_call)
+ {
+ case DLL_PROCESS_ATTACH:
+ case DLL_THREAD_ATTACH:
+ case DLL_THREAD_DETACH:
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+

Back to the top