Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Programming on multiprocessor computer Pin
Tomasz Sowinski13-Mar-02 2:42
Tomasz Sowinski13-Mar-02 2:42 
GeneralRe: Programming on multiprocessor computer Pin
Dang Xuan Ky14-Mar-02 5:35
Dang Xuan Ky14-Mar-02 5:35 
GeneralRe: Programming on multiprocessor computer Pin
Tomasz Sowinski14-Mar-02 5:50
Tomasz Sowinski14-Mar-02 5:50 
QuestionHow to get network card serial number? Pin
Ales Krajnc13-Mar-02 0:15
Ales Krajnc13-Mar-02 0:15 
AnswerRe: How to get network card serial number? Pin
Jon Hulatt13-Mar-02 1:45
Jon Hulatt13-Mar-02 1:45 
AnswerSendARP Pin
13-Mar-02 4:49
suss13-Mar-02 4:49 
GeneralEnumerate handles Pin
Don Miguel13-Mar-02 0:05
Don Miguel13-Mar-02 0:05 
GeneralRe: Enumerate handles Pin
Stephen Kellett13-Mar-02 8:02
Stephen Kellett13-Mar-02 8:02 
There is no publicly documented Win32 API to do this.

However there are some functions which will do this in the api for ntdll.dll. The book Windows NT/2000 Native API Reference documents these functions and gives examples of how to use them.

Search for NtQuerySystemInformation() on the web.

You want to query for class SystemHandleInformation, this has a value of 16.

Then to determine the handle type, call NtQueryObject()

Note that these APIs or the data input/returned may change between NT/2000/XP/etc.

There are some classes on CodeGuru that do examples of this work, but they are broken, as the data structures used to query the APIs are incomplete and incorrect - compare with the book and you'll see what I mean.

Cheers


Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.

GeneralRe: Enumerate handles Pin
Carlos Antollini13-Mar-02 8:26
Carlos Antollini13-Mar-02 8:26 
GeneralRe: Enumerate handles Pin
Don Miguel13-Mar-02 21:00
Don Miguel13-Mar-02 21:00 
GeneralRemoving application icon from alt+tab list Pin
KGS12-Mar-02 22:53
KGS12-Mar-02 22:53 
GeneralRe: Removing application icon from alt+tab list Pin
Tomasz Sowinski12-Mar-02 22:54
Tomasz Sowinski12-Mar-02 22:54 
GeneralRe: Removing application icon from alt+tab list Pin
KGS12-Mar-02 23:47
KGS12-Mar-02 23:47 
GeneralHelp! Pin
Jacky Wu12-Mar-02 22:27
Jacky Wu12-Mar-02 22:27 
GeneralUse Stingray Objective Grid 97 Pin
Simon Roth12-Mar-02 21:12
Simon Roth12-Mar-02 21:12 
GeneralRe: Use Stingray Objective Grid 97 Pin
Tomasz Sowinski12-Mar-02 23:04
Tomasz Sowinski12-Mar-02 23:04 
GeneralWindows CE and System font Pin
12-Mar-02 20:56
suss12-Mar-02 20:56 
QuestionHow to get highlighted text by double click? Pin
Pony12-Mar-02 20:07
Pony12-Mar-02 20:07 
AnswerRe: How to get highlighted text by double click? Pin
Tomasz Sowinski12-Mar-02 23:12
Tomasz Sowinski12-Mar-02 23:12 
GeneralRe: How to get highlighted text by double click? Pin
Pony13-Mar-02 6:22
Pony13-Mar-02 6:22 
QuestionCListCtrl -Max Visible text length 260? Pin
12-Mar-02 18:45
suss12-Mar-02 18:45 
AnswerRe: CListCtrl -Max Visible text length 260? Pin
Tomasz Sowinski12-Mar-02 22:57
Tomasz Sowinski12-Mar-02 22:57 
Generalwriting a plugin Pin
Dor12-Mar-02 14:34
Dor12-Mar-02 14:34 
GeneralRe: writing a plugin Pin
alex.barylski12-Mar-02 19:36
alex.barylski12-Mar-02 19:36 
GeneralCEvent Syncronization Class! Pin
MarkPQ12-Mar-02 13:58
MarkPQ12-Mar-02 13:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.