Sample Code
Windows Driver Samples/ OEM Printer Customization Plug-in Samples/ C++/ watermarkuni/ wmarkuni/ dllentry.cpp/
// 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 "wmarkuni.h" #include "debug.h" // indicate to prefast that this is a user-mode component. _Analysis_mode_(_Analysis_code_type_user_driver_); /////////////////////////////////////////////////////////// // // DLL entry point // BOOL WINAPI DllMain(HINSTANCE hInst, WORD wReason, LPVOID lpReserved) { UNREFERENCED_PARAMETER(hInst); UNREFERENCED_PARAMETER(lpReserved); switch(wReason) { case DLL_PROCESS_ATTACH: VERBOSE(DLLTEXT("Process attach.\r\n")); break; case DLL_THREAD_ATTACH: VERBOSE(DLLTEXT("Thread attach.\r\n")); break; case DLL_PROCESS_DETACH: VERBOSE(DLLTEXT("Process detach.\r\n")); break; case DLL_THREAD_DETACH: VERBOSE(DLLTEXT("Thread detach.\r\n")); break; } return TRUE; }
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials