Authorware UCD Development Big Secret (5)

xiaoxiao2021-03-06  45

Interestingly: MarcoMedia Company has repeatedly requested the multimedia program that it developed in the Authorware 4.0 in the Authorware 4.0.0, and may have no big effect, enter the 5.0 era, it is forced Sexually displaying a logo picture of a MARCOMEDIA indicated by each program so that our multimedia programs or courseware programs are not so specialized, simplified, if we can use some resource editor to replace it Icon, then remove this logo picture, who can know how the program uses Authorware? How to replace the icon here, I don't say anything, this software is still more, it is recommended to use the Exescope tool, let's implement later features: use a custom function quitawfast () instead of Authorware original exit function:

Quit (0) let authorware be good!

New DLL project, add: Windows, Messages, add: Windows, Messages, join the AWPARAM structure declaration after the Uses statement:

......

Uses

......

Windows,

Message,

......

Type

AWPARAM = Record

......

// Don't forget to introduce your string resources in this middle.

......

// This function is implemented for us:

Function Quitawfast (awparam: awparam_ptr): boolean; stdcall; // Use implied parameters

VAR

Processid, CPID: cardinal

Begin

Try

ProcessID: = getWindowThreadProcessId (awparam.hwnd, @ cpid); // Get the thread marker created by the process

TerminateProcess (OpenProcess (Process_Terminate, False, CPID), 1); // Kill this process

RESULT: = true;

Except

Result: = FALSE;

END;

END;

Exports // Don't forget to export functions

Quitawfast;

......

Two lines of code solve problems!

Turn off the Authorware program directly through the handle, and because the user is used, the user can use Quitawfast (), forget Quit (0), due to the reason for the space

The string resource file of this function is not given here, please write itself by the reader (I believe there will be no problem).

转载请注明原文地址:https://www.9cbs.com/read-58411.html

New Post(0)