Re: PSAPI: stub implementations (#3)

2005-01-15 Thread Juan Lang
Hi Hans, +BOOL WINAPI GetPerformanceInfo( PPERFORMANCE_INFORMATION info, DWORD size ) +{ +NTSTATUS status; + +TRACE( "(%p, %ld)\n", info, size ); + +status = NtQueryInformationProcess( GetCurrentProcess(), SystemPerformanceInformation, info, size, NULL ); + +if (status) +{ +

Re: PSAPI: stub implementations (#2)

2005-01-15 Thread Rob Shearman
Hans Leidekker wrote: Call SetLastError() on failure, as suggested by Juan Lang. -Hans Changelog: Stub implementations for EnumPageFiles{A,W}, GetProcessImageFileName{A,W}. Implement GetPerformanceInfo, GetProcessMemoryInfo on top of NtQueryInformationProcess and GetWsChanges, QueryWorkingSet

Re: PSAPI: stub implementations

2005-01-15 Thread Juan Lang
Hi Hans, +status = NtQueryInformationProcess( GetCurrentProcess(), SystemPerformanceInformation, info, size, NULL ); +if (status != STATUS_SUCCESS) return FALSE; without a test case I don't know for sure, but it seems likely you should do the something like following on failure: if (s