Getting A Windows 95 Task List 
Author Message
 Getting A Windows 95 Task List

I am using VB 4 Pro in Windows 95.  I am trying to get an active task list
with filenames.  I am using Microsoft's document (Q112649) "How to Get a
Window's Class Name and Other Window Attributes".

I can get a task list just fine but I can't seem to get the filenames.  The
only filename that I can get is of the VB program that I am running (vb32.exe
if I am running in the editor).

This program uses the GetWindowWord, GetWindowLong, and GetModuleFileName APIs
from User32 and Kernel32.

If anyone can help, I would greatly appreciate it.  I've been playing with
Task Pro but none of the numbers that I get are close to what that program
shows.  I am quite confused.

-Tim

---
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_
| The information, opinions and worthless babblings in this|
| document were provided by a person of no significance, no|
| achievement, no value, no authority and no money.        |
| Basically, an all-around plain nobody.                   |
| ---------------> USE AT YOUR OWN RISK <----------------- |
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_



Tue, 02 Feb 1999 03:00:00 GMT  
 Getting A Windows 95 Task List

Apparently, according to a ms C programmer, GetModuleFileName won't
work in Win95 as apps are not supposed to be able to "invade" another
apps memory space.  

Frankly, this is nuts, as I can easily retrieve or alter menu
captions, disable anything, rearrange & move child windows/controls
all around a form, and get information from the child windows and
controls of other any other running, be it VB app, Explorer, IE, or
any other C app that exposes it's handles.  But no, GetModuleFileName
"isn't supported" in Win95.  Go figure.



Tue, 02 Feb 1999 03:00:00 GMT  
 Getting A Windows 95 Task List

Quote:

>Apparently, according to a ms C programmer, GetModuleFileName won't
>work in Win95 as apps are not supposed to be able to "invade" another
>apps memory space.  

>Frankly, this is nuts, as I can easily retrieve or alter menu
>captions, disable anything, rearrange & move child windows/controls
>all around a form, and get information from the child windows and
>controls of other any other running, be it VB app, Explorer, IE, or
>any other C app that exposes it's handles.  But no, GetModuleFileName
>"isn't supported" in Win95.  Go figure.

Bummer.

Dumb question: why do they have an example of a VB4 program to do this if this
isn't supported......oh....never-mind, it says "16-bit only".

Thanks.

-Tim

---
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_
| The information, opinions and worthless babblings in this|
| document were provided by a person of no significance, no|
| achievement, no value, no authority and no money.        |
| Basically, an all-around plain nobody.                   |
| ---------------> USE AT YOUR OWN RISK <----------------- |
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_



Fri, 05 Feb 1999 03:00:00 GMT  
 Getting A Windows 95 Task List


Quote:


>>Apparently, according to a ms C programmer, GetModuleFileName won't
>>work in Win95 as apps are not supposed to be able to "invade" another
>>apps memory space.  

>>Frankly, this is nuts, as I can easily retrieve or alter menu
>>captions, disable anything, rearrange & move child windows/controls
>>all around a form, and get information from the child windows and
>>controls of other any other running, be it VB app, Explorer, IE, or
>>any other C app that exposes it's handles.  But no, GetModuleFileName
>>"isn't supported" in Win95.  Go figure.

What REALLY BUGS ME is that Task Pro v2.0 can do it.  It  runs in Win95, it
shows full path and filename along with window handle, instance and module
handle.  It doesn't have any extra DLL files except one which only appears to
be for the display of the form.  It has to be doing something, using an API of
somesort or looking in a particular memory area to find this information.  It
is quite accurate.  Someone must know how to do it.

-Tim

---
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_
| The information, opinions and worthless babblings in this|
| document were provided by a person of no significance, no|
| achievement, no value, no authority and no money.        |
| Basically, an all-around plain nobody.                   |
| ---------------> USE AT YOUR OWN RISK <----------------- |
_-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-__-==-_



Sat, 06 Feb 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Getting a list of Running Tasks in Windows 98

2. Task Programmer in Windows 95/98

3. Windows 95 Task bar query

4. Disabling End Task in Windows 95

5. Terminating tasks in Windows 95 / 98

6. need help on ending a task in windows task list

7. Windows 95 B, Setup Wizard Issues Setup.EXE on Windows 95 A

8. Windows 95 B, Setup Wizard Issues Setup.EXE on Windows 95 A

9. Getting Disk Allocation Unit Size in VB5 on Windows 95 OSR2

10. Getting the Windows 95 Directory

11. Getting the Windows 95 directory

12. Getting Windows 95 user name with VB 3.0

 

 
Powered by phpBB® Forum Software