Base files (incomplete) for PSAPI.DLL.

svn path=/trunk/; revision=2406
This commit is contained in:
Emanuele Aliberti 2001-11-28 23:35:16 +00:00
parent ad6cb832a4
commit 45422998d5
4 changed files with 231 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,24 @@
/* $Id: dllmain.c,v 1.1 2001/11/28 23:35:16 ea Exp $
*
* ReactOS PSAPI.DLL
*/
#include <windows.h>
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 */

View file

@ -0,0 +1,38 @@
#include <defines.h>
#include <reactos/resource.h>
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

View file

@ -0,0 +1,145 @@
/* $Id: stubs.c,v 1.1 2001/11/28 23:35:16 ea Exp $ */
#include <windows.h>
#include <psapi.h>
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 */