summaryrefslogtreecommitdiff
path: root/print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp')
-rw-r--r--print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp b/print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp
new file mode 100644
index 00000000..8ed3e0e7
--- /dev/null
+++ b/print/OEM Printer Customization Plug-in Samples/C++/oemuni/dllentry.cpp
@@ -0,0 +1,55 @@
+// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
+// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
+// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
+// PARTICULAR PURPOSE.
+//
+// Copyright 1998 - 2003 Microsoft Corporation. All Rights Reserved.
+//
+// FILE: dllentry.cpp
+//
+// PURPOSE: Source module for DLL entry function(s).
+//
+
+#include "precomp.h"
+
+#include "debug.h"
+
+// This indicates to Prefast that this is a usermode driver file.
+_Analysis_mode_(_Analysis_code_type_user_driver_);
+
+
+///////////////////////////////////////////////////////////
+//
+// DLL entry point
+//
+
+// DllMain isn't called/used for kernel mode version.
+//
+BOOL WINAPI DllMain(HINSTANCE hInst, WORD wReason, LPVOID lpReserved)
+{
+ VERBOSE("DllMain entry.");
+
+ UNREFERENCED_PARAMETER(hInst);
+ UNREFERENCED_PARAMETER(lpReserved);
+
+ switch(wReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ VERBOSE("Process attach.\r\n");
+ break;
+
+ case DLL_THREAD_ATTACH:
+ VERBOSE("Thread attach.\r\n");
+ break;
+
+ case DLL_PROCESS_DETACH:
+ VERBOSE("Process detach.\r\n");
+ break;
+
+ case DLL_THREAD_DETACH:
+ VERBOSE("Thread detach.\r\n");
+ break;
+ }
+
+ return TRUE;
+}