Windows-specific utility methods are only available for plug-ins.
These methods allow a plug-in to:
- Manipulate modal and modeless dialog boxes.
- Get the color palette.
- Control the AVAppIdle timer.
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define _WINHFT_IS_BETA 0
File: WinCalls.h |
Line: 87 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define _WINHFT_LATEST_VERSION 0x00090000
File: WinCalls.h |
Line: 86 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROCALLBACK
File: UnixPlatform.h |
Line: 104 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROCALLBACK __loadds
DescriptionA macro used when declaring function prototypes. Its definition is platform-dependent. Use this macro in every function prototype you declare. Use
before the return value in a function prototype.
See Also
ACCB2 A macro
used when declaring function prototypes. Its definition is platform-dependent. Use this macro in every function prototype you declare. Use
after the return value in a function prototype.
ACCB2
File: WinPltfm.h |
Line: 106 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROCALLBACKPROTO
File: WinPltfm.h |
Line: 68 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORT
File: UnixPlatform.h |
Line: 100 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROEXPORT AVEX1
DescriptionA macro used when declaring callback functions. Its definition is platform-dependent. Use this macro in every callback function you declare. Use
before the return value in a function declaration.
See Also
File: WinPltfm.h |
Line: 122 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORTCDECL
File: UnixPlatform.h |
Line: 101 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROEXPORTCDECL __cdecl __loadds __export
File: WinPltfm.h |
Line: 140 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORTDATA
File: UnixPlatform.h |
Line: 102 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROEXPORTDATA __export
File: WinPltfm.h |
Line: 141 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORTDATA1
File: UnixPlatform.h |
Line: 121 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORTDATA2
File: UnixPlatform.h |
Line: 122 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROEXPORTPRIV
File: UnixPlatform.h |
Line: 103 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROEXPORTPRIV __loadds __export
File: WinPltfm.h |
Line: 139 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROIMPORTDATA extern
File: WinPltfm.h |
Line: 142 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROIMPORTDATA1
File: UnixPlatform.h |
Line: 123 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROIMPORTDATA1
File: WinPltfm.h |
Line: 143 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define ACROIMPORTDATA2
File: UnixPlatform.h |
Line: 124 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ACROIMPORTDATA2
File: WinPltfm.h |
Line: 144 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ANSI_C 1
File: WinPltfm.h |
Line: 181 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh |
Syntax
#define AS_LITTLEENDIAN TARGET_RT_LITTLE_ENDIAN
File: MacPlatform.h |
Line: 24 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define AS_LITTLEENDIAN 0
File: UnixPlatform.h |
Line: 79 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define AS_LITTLEENDIAN 1
File: WinPltfm.h |
Line: 26 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define AVEX1
File: UnixPlatform.h |
Line: 109 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define AVEX1
File: WinPltfm.h |
Line: 64 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define AVEX2
File: UnixPlatform.h |
Line: 110 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define AVEX2 __export
File: WinPltfm.h |
Line: 65 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define CAROUSEL 1
File: WinPltfm.h |
Line: 180 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define ENVIRONMENT h"
File: WinPltfm.h |
Line: 179 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define FRACT_DEFINED 0
File: UnixPlatform.h |
Line: 90 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define FRACT_DEFINED 0
File: WinPltfm.h |
Line: 30 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define HUGEPTRTYPE
File: UnixPlatform.h |
Line: 94 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define HUGEPTRTYPE __huge
File: WinPltfm.h |
Line: 48 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh |
Syntax
#define IEEEFLOAT 0
File: MacPlatform.h |
Line: 25 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define IEEEFLOAT 1
File: UnixPlatform.h |
Line: 68 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define IEEEFLOAT 0
File: WinPltfm.h |
Line: 27 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh |
Syntax
#define IEEESOFT 0
File: MacPlatform.h |
Line: 26 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define IEEESOFT 0
File: UnixPlatform.h |
Line: 87 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define IEEESOFT 0
File: WinPltfm.h |
Line: 28 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define MEMCPY_IMPLEMENTED 1
File: WinPltfm.h |
Line: 37 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define MEMSET_IMPLEMENTED 1
File: WinPltfm.h |
Line: 36 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define nENDLINE_CHARS 1
File: UnixPlatform.h |
Line: 95 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define nENDLINE_CHARS 2
File: WinPltfm.h |
Line: 52 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define nENDLINE_CHARS_UCS 2
File: UnixPlatform.h |
Line: 97 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define REPLACEABLE
File: UnixPlatform.h |
Line: 99 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define REPLACEABLE
File: WinPltfm.h |
Line: 55 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define sENDLINE "\n"
File: UnixPlatform.h |
Line: 96 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define sENDLINE "\015\012"
File: WinPltfm.h |
Line: 53 |
Product availability: Acrobat, Reader |
Platform availability: UNIX |
Syntax
#define sENDLINE_UCS "\0\n"
File: UnixPlatform.h |
Line: 98 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WIN 1
File: WinPltfm.h |
Line: 182 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WIN_PLATFORM 1
Description(Windows only, previously known as WIN_ENV
) Defined if the client is being compiled for a Windows machine, undefined otherwise. MAC_PLATFORM, WIN_PLATFORM, and UNIX_PLATFORM should be used by client developers to conditionally compile platform-dependent code.
WIN_PLATFORM must be defined in the arguments to the C compiler. The make files for the sample clients in the Acrobat SDK do this automatically.
See Also
File: WinPltfm.h |
Line: 156 |
Product availability: Acrobat, Reader, PDFL |
Platform availability: Windows |
Syntax
#define WINAPI _far _pascal
File: PIExcept.h |
Line: 45 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINDOWS h>
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINHFT_LATEST_VERSION _WINHFT_LATEST_VERSION)
File: WinCalls.h |
Line: 90 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINHFT_VERSION_4 0x00040000
File: WinCalls.h |
Line: 92 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINHFT_VERSION_5 0x00050000
File: WinCalls.h |
Line: 93 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINHFT_VERSION_8 0x00080000
File: WinCalls.h |
Line: 94 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
#define WINHFT_VERSION_9 WINHFT_LATEST_VERSION
File: WinCalls.h |
Line: 95 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
IDispatch * (*COMServerGetIDispatchProcType)(void)
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
IDispatch * (*COMServerGetIDispatchProcTypeEx)(void *clientData)
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
ASAtom (*COMServerGetNameProcTypeEx)(void *clientData)
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
BOOL WinAppEnableIdleTimer(BOOL enable) |
(Windows only) Allows a plug-in to turn the AVAppIdle
timer on and off, which is needed when a plug-in calls another process and thus blocks Acrobat for an extended period of time.
Parameters
| enable — | IN/OUT true to turn the timer on, false to turn it off. |
Returns
| The previous state of the AVAppIdle timer. |
Since
File: winprocs.h |
Line: 60 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
HWND WinAppGetModalParent(AVDoc doc) |
(Windows only) Gets appropriate parent for any modal dialog boxes created by a plug-in. This method is only useful if there is an AVDoc; it cannot be used, for example, to put up a modal dialog box while a file is being opened.
In circumstances where there is no AVDoc, use the gHWND
provided in PIMAIN.C. Although this does not give perfect results in some cases, there is no real alternative. For example, if a file is opened in an external application's window, the dialog box is not hidden if the external application is hidden.
Parameters
| doc — | IN/OUT The AVDoc for a PDF file if the dialog box is acting on an PDF document, which is generally the case. The AVDoc must be provided so that for external documents, the viewer can parent the dialog box of the external application instead of the viewer. |
Returns
| The HWND for the modal dialog box' parent. |
See Also
Since
File: winprocs.h |
Line: 85 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
HWND WinAppGetModelessParent() |
(Windows only) Gets the appropriate parent for any modeless dialog boxes created by a plug-in.
In previous versions of Acrobat, the correct parent was always gHWND
and was provided in PIMAIN.C.
Returns
| The HWND for the modeless dialog box' parent. |
See Also
Since
File: winprocs.h |
Line: 155 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
HPALETTE WinAppGetPalette() |
(Windows only) Gets the application's color palette in the case where the system is running in 256-color mode or less. Used when you want to set and realize a palette in an external window before drawing to it.
Do not release this palette handle: it may be in use by other plug-ins.
Returns
| The application's color palette. It is NULL if the system is running direct colors (15/ 16/ 24/ 32-bit) or no palette is being used. |
Since
File: winprocs.h |
Line: 101 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
HDC WinAppGetPrinterHDC() |
Gets the device context for a printer, which is the HDC
used to print a document.
It is used if you need to modify the device context Acrobat creates when printing to a non-PostScript printer. You should register for the notification PDDocWillPrintPage() and acquire the printer DC
for the page you wish to modify.
Returns
| The printer device context. |
Since
File: winprocs.h |
Line: 117 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
void WinAppLockViewer(BOOL lock) |
This API is used to ensure that the application does not quit until the work that needs to be done by the interface registered with WinAppRegisterInterface() is done.
Parameters
| lock — | TRUE locks the Viewer, preventing it from quitting. FALSE allows the Viewer to quit. Calling WinAppLockViewer() with FALSE does not automatically quit the Viewer; it decrements an a reference count.
|
See Also
Since
File: winprocs.h |
Line: 141 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
BOOL WinAppRegisterInterface(COMServer pServer) |
(Windows only) Register a COM interface.
Parameters
Returns
| true if the interface was registered with Acrobat, false otherwise.
|
Since
File: winprocs.h |
Line: 128 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
void WinAppRegisterModelessDialog(HWND dialog) |
(Windows only) Registers modeless dialog boxes with the viewer so that the dialog box gets the correct messages.
Parameters
| dialog — | IN/OUT The HWND for the dialog box to register. |
See Also
Since
File: winprocs.h |
Line: 38 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
void WinAppUnregisterInterface(COMServer pServer) |
(Windows only) Unregisters a COM interface.
Parameters
Since
File: winprocs.h |
Line: 162 |
Product availability: Acrobat, Reader |
Platform availability: Windows |
Syntax
void WinAppUnRegisterModelessDialog(HWND dialog) |
(Windows only) Un-registers modeless dialog boxes with the viewer.
Parameters
| dialog — | IN/OUT The HWND for the dialog box to un-register. |
See Also
Since
File: winprocs.h |
Line: 47 |
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST