Solved

CREATE_SEPARATE_WOW_VDM Constant

Posted on 1998-06-08
2
392 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
2 Comments
 
LVL 4

Accepted Solution

by:
yowkee earned 100 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now