59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
/*++ BUILD Version: 0002
|
|
*
|
|
* WOW v1.0
|
|
*
|
|
* Copyright (c) 1991, Microsoft Corporation
|
|
*
|
|
* WOWINFO.H
|
|
* 16-bit Kernel API argument structures
|
|
*
|
|
* History:
|
|
* Created 1-jun-1992 by Matt Felton (mattfe)
|
|
--*/
|
|
|
|
// the following UNALIGNED definition is required because wowinfo.h is
|
|
// included in 'wowexec.c'
|
|
//
|
|
// these lines are from ntdef.h
|
|
//
|
|
|
|
#ifndef UNALIGNED
|
|
|
|
#if defined(MIPS) || defined(_ALPHA_) // winnt
|
|
#define UNALIGNED __unaligned // winnt
|
|
#else // winnt
|
|
#define UNALIGNED // winnt
|
|
#endif // winnt
|
|
|
|
#endif
|
|
|
|
/* XLATOFF */
|
|
#pragma pack(2)
|
|
/* XLATON */
|
|
|
|
typedef struct _WOWINFO { /**/
|
|
LPSTR lpCmdLine;
|
|
LPSTR lpAppName;
|
|
LPSTR lpEnv;
|
|
DWORD iTask;
|
|
USHORT CmdLineSize;
|
|
USHORT AppNameSize;
|
|
USHORT EnvSize;
|
|
USHORT CurDrive;
|
|
LPSTR lpCurDir;
|
|
USHORT CurDirSize;
|
|
USHORT wShowWindow;
|
|
} WOWINFO;
|
|
typedef WOWINFO UNALIGNED *PWOWINFO;
|
|
|
|
#define MAXENVIRONMENTSIZE 2048 // Max Size of Environment coped with.
|
|
|
|
|
|
/* XLATOFF */
|
|
#pragma pack()
|
|
/* XLATON */
|
|
|
|
#define WM_WOWEXECSTARTAPP (WM_USER) // also in windows\inc\vdmapi.h
|
|
#define WM_WOWEXECHEARTBEAT (WM_USER+1) // To deliver timer ticks
|
|
#define WM_WOWEXECEXITEXEC (WM_USER+2) // To help do ExitWindowsExec()
|