🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #17

Re: Windows XP and PsApi.dll

#17
From: Ed Mulroy [TeamB]
Date: Tue, 29 Mar 2005 20:42
30 lines
2293 bytes
No, Windows XP is not NT.  XP is no more NT than Windows 3.1 was 
Windows 2.

psapi is supplied by the operating system.  If it works differently 
then that is because what the operating system supplied works 
differently.

XP provides the toolhelp32 api.  I suggest that you use it.

.  Ed

> Danila Vershinin wrote in message
> news:4249ba0c@newsgroups.borland.com...
>
>I use PsApi.dll functions to retrieve a list of running processes on 
>the system. Documentation says that exactly PsApi.dll should be used 
>on NT systems, so I figured out that this is what I should use 
>(Windows XP is NT, right? lol...).. but NOO... the functions do not 
>work exactly the way the should, it happens so that some of the 
>processes can not be accessed and their names accordingly too.. plus 
>the filenames for some processes are in the form /??/FileName which 
>is not good... but that is common problem with filenames in 
>psapi.dll, even msdn says smth about that.. there is even some code 
>there to convert such filenames...
> But still, what is the problem of that DLL? because when I use 
> another DLL - tlhelp32 for the same task it shows everything the way 
> it should be...
> but the oddest thing is that running VB's samples for the psapi it 
> works just fine (still the filenames prob but no access problem) , 
> weird, huh?
Technical Details
Message-ID: <4249bdd8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4249ba0c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,90b6ea930afdcc4b
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com>
Newsgroups: borland.public.cppbuilder.deployment
References: <4249ba0c@newsgroups.borland.com>
Subject: Re: Windows XP and PsApi.dll
Date: Tue, 29 Mar 2005 15:42:45 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 69.134.170.196
Message-ID: <4249bdd8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112128984 69.134.170.196 (29 Mar 2005 12:43:04 -0800)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail