Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
res Add source files 4 years ago
bvt.mof Add source files 4 years ago
bvtperm.dsw Add source files 4 years ago
bvtperm.ncb Add source files 4 years ago
bvtperm.opt Add source files 4 years ago
cmdlineconsumer.cpp Add source files 4 years ago
cmdlineconsumer.dsp Add source files 4 years ago
cmdlineconsumer.dsw Add source files 4 years ago
cmdlineconsumer.h Add source files 4 years ago
cmdlineconsumer.htm Add source files 4 years ago
cmdlineconsumer.ncb Add source files 4 years ago
cmdlineconsumer.opt Add source files 4 years ago
cmdlineconsumer.plg Add source files 4 years ago
cmdlineconsumer.rc Add source files 4 years ago
cmdlineconsumerdlg.cpp Add source files 4 years ago
cmdlineconsumerdlg.h Add source files 4 years ago
consumer.cpp Add source files 4 years ago
consumer.h Add source files 4 years ago
factory.cpp Add source files 4 years ago
factory.h Add source files 4 years ago
makefile Add source files 4 years ago
provider.cpp Add source files 4 years ago
provider.h Add source files 4 years ago
readme.txt Add source files 4 years ago
resource.h Add source files 4 years ago
stdafx.cpp Add source files 4 years ago
stdafx.h Add source files 4 years ago

readme.txt

This is a generic event consumer that spawns another app
according to the logical consumer instance.

This consumer is registered by running "mofcomp cmdline.mof".

The logical consumer is defined as:

class CmdLineEventConsumer : __EventConsumer
{
[key] string Name;
[read, write]
string cmdLine;
[read, write]
uint8 showWindow;
};

- Name is any convenient string.
- cmdLine is the command line you want to run when this
consumer instance is called.
- showWindow is a value used to control the dos box in which
the 'cmdLine' will be run. These values are defined by
ShowWindow() in the win32 API. For reference, they are:

#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10

NOTE: Use the number; not the symbol.