Ignore:
Timestamp:
Mar 18, 2011, 4:53:58 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

xsystray: Provide function pointer declarations to simplify importing API from the DLL at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/os2/xsystray/apilib/xsystray.h

    r837 r838  
    3333#endif
    3434
     35
     36
     37
     38
     39
    3540#ifdef XSTAPI_IMPL
    36 #define XSTAPI __declspec(dllexport) EXPENTRY
     41#
    3742#else
    38 #define XSTAPI EXPENTRY
     43# if defined(XSTAPI_FPTRS)
     44#  define XSTAPI(rt,fn) rt (* EXPENTRY fn)
     45# elif defined(XSTAPI_FPTRS_STATIC)
     46#  define XSTAPI(rt,fn) static rt (* EXPENTRY fn)
     47# else
     48#  define XSTAPI(rt,fn) rt EXPENTRY fn
     49# endif
    3950#endif
    4051
     
    97108 */
    98109
    99 BOOL XSTAPI xstQuerySysTrayVersion(PULONG pulMajor, PULONG pulMinor,
    100                                    PULONG pulRevision);
     110(PULONG pulMajor, PULONG pulMinor,
     111                                   PULONG pulRevision);
    101112
    102113/*
     
    141152 */
    142153
    143 BOOL XSTAPI xstAddSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon,
    144                               PCSZ pcszToolTip, ULONG ulMsgId, ULONG ulFlags);
     154(HWND hwnd, USHORT usId, HPOINTER hIcon,
     155                              PCSZ pcszToolTip, ULONG ulMsgId, ULONG ulFlags);
    145156
    146157/*
     
    153164 */
    154165
    155 BOOL XSTAPI xstReplaceSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon);
     166(HWND hwnd, USHORT usId, HPOINTER hIcon);
    156167
    157168/*
     
    164175 */
    165176
    166 BOOL XSTAPI xstRemoveSysTrayIcon(HWND hwnd, USHORT usId);
     177(HWND hwnd, USHORT usId);
    167178
    168179/*
     
    183194 */
    184195
    185 BOOL XSTAPI xstSetSysTrayIconToolTip(HWND hwnd, USHORT usId, PCSZ pcszToolTip);
     196(HWND hwnd, USHORT usId, PCSZ pcszToolTip);
    186197
    187198/*
     
    191202 */
    192203
    193 BOOL XSTAPI xstShowSysTrayIconBalloon(HWND hwnd, USHORT usId, PCSZ pcszTitle,
     204(HWND hwnd, USHORT usId, PCSZ pcszTitle,
    194205                                      PCSZ pcszText, ULONG ulFlags,
    195206                                      ULONG ulTimeout);
     
    201212 */
    202213
    203 BOOL XSTAPI xstHideSysTrayIconBalloon(HWND hwnd, USHORT usId);
     214(HWND hwnd, USHORT usId);
    204215
    205216/*
     
    212223 */
    213224
    214 BOOL XSTAPI xstQuerySysTrayIconRect(HWND hwnd, USHORT usId, PRECTL prclRect);
     225(HWND hwnd, USHORT usId, PRECTL prclRect);
    215226
    216227/*
     
    226237 */
    227238
    228 ULONG XSTAPI xstGetSysTrayCreatedMsgId();
     239();
    229240
    230241/*
     
    246257 */
    247258
    248 ULONG XSTAPI xstGetSysTrayMaxTextLen();
     259();
    249260
    250261#if __cplusplus
Note: See TracChangeset for help on using the changeset viewer.