jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Doesnt work on windows 2000 #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Users with Windows 2000 report that CrashRpt fails on their system.

There is a missing dependency to GetProcessHandleCount function in 
kernel32.dll.

GetProcessHandleCount fuction is supported only Windows XP with SP1 or 
newer.

Anything you can do about this?

Original issue reported on code.google.com by michal.m...@gmail.com on 4 Jan 2010 at 1:41

GoogleCodeExporter commented 9 years ago
It seems that GetProcessHandleCount presence should be determined dynamically 
at run 
time.

Something like this:

{{{
typedef BOOL WINAPI LPGETPROCESSHANDLECOUNT(HANDLE, PDWORD);

HANDLE hKernel32 = LoadLibrary("kernel32.dll");

LPGETPROCESSHANDLECOUNT pfnGetProcessHandleCount = GetProcAddress(hKernel32, _T
("GetProcessHandleCount"));

if(pfnGetProcessHandleCount!=NULL)
{
  // get handle count
}

}}}

I will fix this in v.1.2.2.

Original comment by zexspect...@gmail.com on 4 Jan 2010 at 3:05

GoogleCodeExporter commented 9 years ago
Fixed in v.1.2.2

Original comment by zexspect...@gmail.com on 23 Mar 2010 at 5:35