Solved

WINOLDAP-VM ID Link at VxD Ring 0 level

Posted on 1998-03-28
4
345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 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