initial code for process attach
[reactos.git] / posix / lib / psxdll / misc / main.c
1 /* $Id: main.c,v 1.3 2002/03/11 20:48:25 hyperion Exp $
2 */
3 /*
4 * COPYRIGHT: See COPYING in the top level directory
5 * PROJECT: ReactOS POSIX+ Subsystem
6 * FILE: subsys/psx/lib/psxdll/misc/main.c
7 * PURPOSE: psxdll.dll entry point
8 * PROGRAMMER: KJK::Hyperion <noog@libero.it>
9 * UPDATE HISTORY:
10 * 27/12/2001: Created
11 */
12
13 #include <psx/debug.h>
14 #include <psx/pdata.h>
15
16 #define DLL_PROCESS_ATTACH 1
17 #define DLL_THREAD_ATTACH 2
18 #define DLL_THREAD_DETACH 3
19 #define DLL_PROCESS_DETACH 0
20
21 int __stdcall DllMain(void *pDllInstance, unsigned long int nReason, void *pUnknown)
22 {
23 #if 0
24 if(nReason == DLL_PROCESS_ATTACH)
25 {
26 __PPDX_PDATA ppdProcessData = __PdxGetProcessData();
27
28 if(ppdProcessData == 0)
29 WARN("this process doesn't have a process data block\n");
30 else if(ppdProcessData->Spawned)
31 {
32 INFO("the process has been spawned\n");
33 }
34 }
35 #endif
36 return (1);
37 }
38
39 /* EOF */
40