--- mstools/h/process.h 2018/08/09 18:21:07 1.1.1.3 +++ mstools/h/process.h 2018/08/09 18:23:02 1.1.1.4 @@ -1,7 +1,7 @@ /*** *process.h - definition and declarations for process control functions * -* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the modeflag values for spawnxx calls. @@ -32,15 +32,6 @@ extern "C" { #define _CRTAPI1 __cdecl #define _CRTAPI2 __cdecl -#elif ( _MSC_VER == 600 ) - -/* - * Definitions for old MS C6-386 compiler - */ -#define _CRTAPI1 _cdecl -#define _CRTAPI2 _cdecl -#define _M_IX86 300 - #else /* @@ -114,6 +105,30 @@ int _CRTAPI1 _loaddll(char *); int _CRTAPI1 _unloaddll(int); int (_CRTAPI1 * _CRTAPI1 _getdllprocaddr(int, char *, int))(); +#ifdef _DECL_DLLMAIN +/* + * Declare DLL notification (initialization/termination) routines + * The preferred method is for the user to provide DllMain() which will + * be called automatically by the DLL entry point defined by the C run- + * time library code. If the user wants to define the DLL entry point + * routine, the user's entry point must call _CRT_INIT on all types of + * notifications, as the very first thing on attach notifications and + * as the very last thing on detach notifications. + */ +#ifdef _WINDOWS_ /* Use types from WINDOWS.H */ +BOOL WINAPI DllMain(HANDLE, DWORD, LPVOID); +BOOL WINAPI _CRT_INIT(HANDLE, DWORD, LPVOID); +#else +#ifdef _M_IX86 +int __stdcall DllMain(void *, unsigned, void *); +int __stdcall _CRT_INIT(void *, unsigned, void *); +#else +int DllMain(void *, unsigned, void *); +int _CRT_INIT(void *, unsigned, void *); +#endif +#endif /* _WINDOWS_ */ +#endif /* _DECL_DLLMAIN */ + #if !__STDC__ /* Non-ANSI names for compatibility */