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)
+{
+
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
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