/[openpgpmdrv]/trunk/OpenPGPminidriver/DllMain.c
ViewVC logotype

Annotation of /trunk/OpenPGPminidriver/DllMain.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Tue Feb 23 19:18:59 2010 UTC (15 years, 2 months ago) by vletoux
File MIME type: text/plain
File size: 1459 byte(s)


1 vletoux 1 /* OpenPGP Smart Card Mini Driver
2     Copyright (C) 2009 Vincent Le Toux
3    
4     This library is Free software; you can redistribute it and/or
5     modify it under the terms of the GNU Lesser General Public
6     License version 2.1 as published by the Free Software Foundation.
7    
8     This library is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11     Lesser General Public License for more details.
12    
13     You should have received a copy of the GNU Lesser General Public
14     License along with this library; if not, write to the Free Software
15     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16     */
17    
18     #include <windows.h>
19    
20    
21     /** This function provides handling for load/unload and attach/detach notifications
22     to allow the DLL to manage its state and allocated resources. For more information,
23     see “DllMain Callback Function” on MSDN®.
24    
25     return TRUE on DLL_PROCESS_ATTACH if initialization of the DLL was successful;
26     otherwise, FALSE. Value ignored at other times by caller. */
27     BOOL WINAPI DllMain(HINSTANCE hinstDLL,
28     DWORD dwReason,
29     LPVOID lpReserved)
30     {
31     // Perform actions based on the reason for calling.
32     if (dwReason == DLL_PROCESS_ATTACH)
33     {
34     return TRUE;
35     }
36     else
37     {
38     return FALSE;
39     }
40     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26