The information in this article applies to:
SUMMARY
To directly register a Windows KERNEL function in a Viewer title, you
must specify either KRNL286 or KRNL386 for the first parameter in
RegisterRoutine(). KRNL286 should be used if the Viewer title will be
run under standard mode Windows; KRNL386 should be used if the title
will be run under enhanced mode Windows. If the title might be run
under either enhanced or standard mode Windows, then the KERNEL
function cannot be directly registered in the Viewer title.
Sample Code
This WinExecWrap() function should be exported from the DLL so that it
can be called from the Viewer title. For this example, let's assume
the filename of the DLL is MYKRNL.DLL.
The function would be registered in the [CONFIG] section of the Viewer title's .MVP file as follows:
WinExecWrap() can then be called from anywhere within the Viewer
title. A typical call would look like the following:
This would launch the Clock application in a normal window.
Because the title can use the WinExecWrap() wrapper function in place of WinExec(), it no longer needs to register or call WinExec() directly from within the title. Additional query words: 2.00 2.00a
Keywords : |
|
Last Reviewed: November 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |