Application Program Interface (API) for Pocket Soft's
.RTPatch DLL for Windows (TM)
Version 3.20
(c) Copyright 1994-1996 Pocket Soft, Inc.
ALL RIGHTS RESERVED
-----------------------------------------------------
The application program calls the DLL entry point as follows:
UINT CALLBACK
RTPatchApply( LPSTR lpszCmdLine,
LPVOID (CALLBACK *lpfCallBack)( UINT Id,
LPVOID lpParm ),
BOOL WaitFlag
);
lpszCmdLine is a string containing a PATCH command line (including
any desired options)
lpfCallBack is the address of the callback procedure (which must
be EXPORTed and in most cases needs to be created with
MakeProcInstance) described below.
WaitFlag is a flag determining the behavior of the DLL if it's
busy (already performing a patch for another task). If the
flag is nonzero, it will wait until the other task completes.
If the flag is zero, it will return immediately with an error
return code of 0x8000.
the return value from RTPatchApply is an error return code.
0 indicates a successful patch application
1-38, 101-112, 137-138 indicate errors in the application process.
0x8000 indicates a busy DLL (only if WaitFlag is zero).
0x8001 indicates a user abort.
NOTE: the 32-bit version of the DLL (patchw32.dll) has the same
calling sequence as above, but the function name is
RTPatchApply32
the CallBack function whose value is passed to the DLL has the
calling sequence:
LPVOID CALLBACK __export CallBack( UINT Id, LPVOID Parm );
Id designates the particular callback being made,
Parm is a far pointer to a callback-dependent structure of parameters,
The return value is callback-dependent also.
评论0