diff --git a/reactos/lib/psapi/makefile b/reactos/lib/psapi/makefile new file mode 100644 index 00000000000..465da9f76b3 --- /dev/null +++ b/reactos/lib/psapi/makefile @@ -0,0 +1,24 @@ +# $Id: makefile,v 1.1 2001/11/28 23:35:16 ea Exp $ + +PATH_TO_TOP = ../.. + +TARGET_TYPE = dynlink + +TARGET_PATH = misc + +TARGET_NAME = psapi + +TARGET_SDKLIBS = ntdll.a kernel32.a + +TARGET_OBJECTS = \ + misc/dllmain.o \ + misc/stubs.o \ + $(TARGET_NAME).coff + +include $(PATH_TO_TOP)/rules.mak + +include $(TOOLS_PATH)/helper.mk + +TARGET_CLEAN = *.o *.coff misc/*.o + +# EOF diff --git a/reactos/lib/psapi/misc/dllmain.c b/reactos/lib/psapi/misc/dllmain.c new file mode 100644 index 00000000000..3f01223a690 --- /dev/null +++ b/reactos/lib/psapi/misc/dllmain.c @@ -0,0 +1,24 @@ +/* $Id: dllmain.c,v 1.1 2001/11/28 23:35:16 ea Exp $ + * + * ReactOS PSAPI.DLL + */ +#include +BOOLEAN __stdcall DllMain( + PVOID hinstDll, + ULONG dwReason, + PVOID reserved) +{ + switch (dwReason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + case DLL_PROCESS_DETACH: + break; + } + return (TRUE); +} +/* EOF */ diff --git a/reactos/lib/psapi/misc/psapi.rc b/reactos/lib/psapi/misc/psapi.rc new file mode 100644 index 00000000000..fd2d78e0d47 --- /dev/null +++ b/reactos/lib/psapi/misc/psapi.rc @@ -0,0 +1,38 @@ +#include +#include + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "ReactOS W32 Process API\0" + VALUE "FileVersion", RES_STR_FILE_VERSION + VALUE "InternalName", "psapi\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "psapi.dll\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + diff --git a/reactos/lib/psapi/misc/stubs.c b/reactos/lib/psapi/misc/stubs.c new file mode 100644 index 00000000000..f9e7f9c12a1 --- /dev/null +++ b/reactos/lib/psapi/misc/stubs.c @@ -0,0 +1,145 @@ +/* $Id: stubs.c,v 1.1 2001/11/28 23:35:16 ea Exp $ */ +#include +#include + +BOOL STDCALL +EmptyWorkingSet(HANDLE hProcess) +{ + return FALSE; +} + +BOOL STDCALL +EnumDeviceDrivers( + LPVOID *lpImageBase, + DWORD cb, + LPDWORD lpcbNeeded) +{ + return FALSE; +} + +BOOL STDCALL +EnumPageFiles( + PENUM_PAGE_CALLBACKW pCallbackRoutine, + LPVOID lpContext) +{ + return FALSE; +} + +BOOL STDCALL EnumProcesses( + DWORD *lpidProcess, + DWORD cb, + DWORD *cbNeeded) +{ + return FALSE; +} + +BOOL STDCALL +EnumProcessModules( + HANDLE hProcess, + HMODULE *lphModule, + DWORD cb, + LPDWORD lpcbNeeded) +{ + return FALSE; +} + +DWORD STDCALL +GetDeviceDriverBaseName( + LPVOID ImageBase, + LPTSTR lpBaseName, + DWORD nSize) +{ + return 0; +} + +DWORD STDCALL GetDeviceDriverFileName( + LPVOID ImageBase, + LPTSTR lpFilename, + DWORD nSize) +{ + return 0; +} + +DWORD STDCALL +GetMappedFileName( + HANDLE hProcess, + LPVOID lpv, + LPTSTR lpFilename, + DWORD nSize) +{ + return 0; +} + +DWORD STDCALL +GetModuleBaseName( + HANDLE hProcess, + HMODULE hModule, + LPTSTR lpBaseName, + DWORD nSize) +{ + return 0; +} + +DWORD STDCALL +GetModuleFileNameEx( + HANDLE hProcess, + HMODULE hModule, + LPTSTR lpFilename, + DWORD nSize) +{ + return 0; +} + +BOOL STDCALL +GetModuleInformation( + HANDLE hProcess, + HMODULE hModule, + LPMODULEINFO lpmodinfo, + DWORD cb) +{ + return FALSE; +} + +BOOL STDCALL +GetPerformanceInfo( + PPERFORMANCE_INFORMATION pPerformanceInformation, + DWORD cb) +{ + return FALSE; +} + +BOOL STDCALL +GetProcessMemoryInfo( + HANDLE Process, + PPROCESS_MEMORY_COUNTERS ppsmemCounters, + DWORD cb) +{ + return FALSE; +} + +BOOL STDCALL +GetWsChanges( + HANDLE hProcess, + PPSAPI_WS_WATCH_INFORMATION lpWatchInfo, + DWORD cb) +{ + return FALSE; +} + +BOOL STDCALL +InitializeProcessForWsWatch( + HANDLE hProcess) +{ + return FALSE; +} + +BOOL STDCALL +QueryWorkingSet( + HANDLE hProcess, + PVOID pv, + DWORD cb) +{ + return FALSE; +} + +/* EOF */