4 * DLL main entry point for PTLib.dll and PWLib.dll
6 * Portable Windows Library
8 * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25 * All Rights Reserved.
27 * Contributor(s): ______________________________________.
30 * Revision 1.3 2005/09/18 13:01:43 dominance
31 * fixed pragma warnings when building with gcc.
33 * Revision 1.2 2004/10/23 10:53:19 ykiryanov
34 * Added ifdef _WIN32_WCE for PocketPC 2003 SDK port
36 * Revision 1.1 1998/09/25 11:04:09 craigs
42 #pragma warning(disable:4201 4514)
48 HINSTANCE PDllInstance
;
49 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID
)
52 BOOL WINAPI
DllMain(HANDLE hinstDLL
, DWORD fdwReason
, LPVOID
)
55 if (fdwReason
== DLL_PROCESS_ATTACH
)
56 PDllInstance
= hinstDLL
;