?
Solved

CREATE_SEPARATE_WOW_VDM Constant

Posted on 1998-06-08
2
Medium Priority
?
413 Views
Last Modified: 2008-03-10
Hi there,

I want to use a CreateProcess API create a shelled process.  I can achieve this fine but also want to create the process in it's own WOW VDM - anyone know what the constant value of CREATE_SEPARATE_WOW_VDM is???  I've seen it mentioned all over the place and it's even documented in the Win32 API book - but unfortunately they don't tell you what the value actually is!!

Thanks

Pete
0
Comment
Question by:peterwest
[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 Comments
 
LVL 4

Accepted Solution

by:
yowkee earned 400 total points
ID: 1462810
In win32 documentation, using CREATE_SEPARATE_WOW_VDM in API CreateProcess:

Windows NT only: This flag is valid only when starting a 16-bit Windows-based application. If set, the new process is run in a private Virtual DOS Machine (VDM). By default, all 16-bit Windows-based applications are run as threads in a single, shared VDM. The advantage of running separately is that a crash only kills the single VDM; any other programs running in distinct VDMs continue to function normally. Also, 16-bit Windows-based applications that are run in separate VDMs have separate input queues. That means that if one application hangs momentarily, applications in separate VDMs continue to receive input.

*** And its value is:
Const CREATE_SEPARATE_WOW_VDM = &H800

Note: you could find it in file winbase.h if you have VC installed.
0
 
LVL 2

Author Comment

by:peterwest
ID: 1462811
Thanks very much - just what I needed - my application no longer crashes with WOW error messages!!!

Cheers

Pete

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

771 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