Solved

WINOLDAP-VM ID Link at VxD Ring 0 level

Posted on 1998-03-28
4
342 Views
Last Modified: 2013-12-03
At ring0 you can obtain thru THREADHANDLE the information of the current process. But when the active application is a DOS box, no information is in there THREADHANDLE. A WinOldAp thread is started with each DOS box. I need to know how a THREADHANDLE of a VM ID is linked to is WINOLDAP process at ring0 level.
0
Comment
Question by:cessi0g
  • 2
4 Comments
 
LVL 1

Expert Comment

by:rayofunreal
ID: 1412397
Which compiler U are using ?
0
 
LVL 2

Author Comment

by:cessi0g
ID: 1412398
I'm using VToolsD with Microsoft Visual C++ v5.0.
0
 
LVL 1

Expert Comment

by:rayofunreal
ID: 1412399
I try to find it in my docs, if here is any exception with virtual dos machines. I mean that there can be problem with VMM. You know that without Bill, we have no fun ;-)
0
 
LVL 2

Accepted Solution

by:
tonp earned 100 total points
ID: 1412400
Your question isn't totally clear about what you want. As I understand it, you want to know how a threadhandle is linked to a winoldapp. However, there is no thread hanlde for a dos-program running in a dos box. There's only the winoldapp thread, the dos program isn't running as a win32 process.

What you need to do is the following:

1. First see if the current process is a dos program.

use Get_Cur_VM_Handle and test the cb_vm_status
test    [ebx+cb_vm_status],vmstat_pm_app

If not a PM app, we have a dos program

2. Use Get_Set_Real_DOS_PSP to get the dos PSP, which is the equivalent of your win32 thread handle.

Ton

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Enable Clear Text in Win 8.1 7 47
Asp.net Form view Pager Template First Record 2 95
Convert GUI app into console app for Win32 Env 5 125
windbg taking it's time 32 100
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question