CommCtrl.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:320k
- #define MAKEIPRANGE(low, high) ((LPARAM)(WORD)(((BYTE)(high) << 8) + (BYTE)(low)))
- // And this is a useful macro for making the IP Address to be passed
- // as a LPARAM.
- #define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
- // Get individual number
- #define FIRST_IPADDRESS(x) ((x>>24) & 0xff)
- #define SECOND_IPADDRESS(x) ((x>>16) & 0xff)
- #define THIRD_IPADDRESS(x) ((x>>8) & 0xff)
- #define FOURTH_IPADDRESS(x) (x & 0xff)
- #endif // NOIPADDRESS
- //---------------------------------------------------------------------------------------
- //---------------------------------------------------------------------------------------
- /// ====================== Pager Control =============================
- //---------------------------------------------------------------------------------------
- //---------------------------------------------------------------------------------------
- #ifndef NOPAGESCROLLER
- //Pager Class Name
- #define WC_PAGESCROLLERW L"SysPager"
- #define WC_PAGESCROLLERA "SysPager"
- #ifdef UNICODE
- #define WC_PAGESCROLLER WC_PAGESCROLLERW
- #else
- #define WC_PAGESCROLLER WC_PAGESCROLLERA
- #endif
- //---------------------------------------------------------------------------------------
- // Pager Control Styles
- //---------------------------------------------------------------------------------------
- // begin_r_commctrl
- #define PGS_VERT 0x00000000
- #define PGS_HORZ 0x00000001
- #define PGS_AUTOSCROLL 0x00000002
- #define PGS_DRAGNDROP 0x00000004
- // end_r_commctrl
- //---------------------------------------------------------------------------------------
- // Pager Button State
- //---------------------------------------------------------------------------------------
- //The scroll can be in one of the following control State
- #define PGF_INVISIBLE 0 // Scroll button is not visible
- #define PGF_NORMAL 1 // Scroll button is in normal state
- #define PGF_GRAYED 2 // Scroll button is in grayed state
- #define PGF_DEPRESSED 4 // Scroll button is in depressed state
- #define PGF_HOT 8 // Scroll button is in hot state
- // The following identifiers specifies the button control
- #define PGB_TOPORLEFT 0
- #define PGB_BOTTOMORRIGHT 1
- //---------------------------------------------------------------------------------------
- // Pager Control Messages
- //---------------------------------------------------------------------------------------
- #define PGM_SETCHILD (PGM_FIRST + 1) // lParam == hwnd
- #define Pager_SetChild(hwnd, hwndChild)
- (void)SNDMSG((hwnd), PGM_SETCHILD, 0, (LPARAM)(hwndChild))
- #define PGM_RECALCSIZE (PGM_FIRST + 2)
- #define Pager_RecalcSize(hwnd)
- (void)SNDMSG((hwnd), PGM_RECALCSIZE, 0, 0)
- #define PGM_FORWARDMOUSE (PGM_FIRST + 3)
- #define Pager_ForwardMouse(hwnd, bForward)
- (void)SNDMSG((hwnd), PGM_FORWARDMOUSE, (WPARAM)(bForward), 0)
- #define PGM_SETBKCOLOR (PGM_FIRST + 4)
- #define Pager_SetBkColor(hwnd, clr)
- (COLORREF)SNDMSG((hwnd), PGM_SETBKCOLOR, 0, (LPARAM)(clr))
- #define PGM_GETBKCOLOR (PGM_FIRST + 5)
- #define Pager_GetBkColor(hwnd)
- (COLORREF)SNDMSG((hwnd), PGM_GETBKCOLOR, 0, 0)
- #define PGM_SETBORDER (PGM_FIRST + 6)
- #define Pager_SetBorder(hwnd, iBorder)
- (int)SNDMSG((hwnd), PGM_SETBORDER, 0, (LPARAM)(iBorder))
- #define PGM_GETBORDER (PGM_FIRST + 7)
- #define Pager_GetBorder(hwnd)
- (int)SNDMSG((hwnd), PGM_GETBORDER, 0, 0)
- #define PGM_SETPOS (PGM_FIRST + 8)
- #define Pager_SetPos(hwnd, iPos)
- (int)SNDMSG((hwnd), PGM_SETPOS, 0, (LPARAM)(iPos))
- #define PGM_GETPOS (PGM_FIRST + 9)
- #define Pager_GetPos(hwnd)
- (int)SNDMSG((hwnd), PGM_GETPOS, 0, 0)
- #define PGM_SETBUTTONSIZE (PGM_FIRST + 10)
- #define Pager_SetButtonSize(hwnd, iSize)
- (int)SNDMSG((hwnd), PGM_SETBUTTONSIZE, 0, (LPARAM)(iSize))
- #define PGM_GETBUTTONSIZE (PGM_FIRST + 11)
- #define Pager_GetButtonSize(hwnd)
- (int)SNDMSG((hwnd), PGM_GETBUTTONSIZE, 0,0)
- #define PGM_GETBUTTONSTATE (PGM_FIRST + 12)
- #define Pager_GetButtonState(hwnd, iButton)
- (DWORD)SNDMSG((hwnd), PGM_GETBUTTONSTATE, 0, (LPARAM)(iButton))
- #define PGM_GETDROPTARGET CCM_GETDROPTARGET
- #define Pager_GetDropTarget(hwnd, ppdt)
- (void)SNDMSG((hwnd), PGM_GETDROPTARGET, 0, (LPARAM)(ppdt))
- //---------------------------------------------------------------------------------------
- //Pager Control Notification Messages
- //---------------------------------------------------------------------------------------
- // PGN_SCROLL Notification Message
- #define PGN_SCROLL (PGN_FIRST-1)
- #define PGF_SCROLLUP 1
- #define PGF_SCROLLDOWN 2
- #define PGF_SCROLLLEFT 4
- #define PGF_SCROLLRIGHT 8
- //Keys down
- #define PGK_SHIFT 1
- #define PGK_CONTROL 2
- #define PGK_MENU 4
- #ifdef _WIN32
- #include <pshpack1.h>
- #endif
- // This structure is sent along with PGN_SCROLL notifications
- typedef struct {
- NMHDR hdr;
- WORD fwKeys; // Specifies which keys are down when this notification is send
- RECT rcParent; // Contains Parent Window Rect
- int iDir; // Scrolling Direction
- int iXpos; // Horizontal scroll position
- int iYpos; // Vertical scroll position
- int iScroll; // [in/out] Amount to scroll
- }NMPGSCROLL, *LPNMPGSCROLL;
- #ifdef _WIN32
- #include <poppack.h>
- #endif
- // PGN_CALCSIZE Notification Message
- #define PGN_CALCSIZE (PGN_FIRST-2)
- #define PGF_CALCWIDTH 1
- #define PGF_CALCHEIGHT 2
- typedef struct {
- NMHDR hdr;
- DWORD dwFlag;
- int iWidth;
- int iHeight;
- }NMPGCALCSIZE, *LPNMPGCALCSIZE;
- // PGN_HOTITEMCHANGE Notification Message
- #define PGN_HOTITEMCHANGE (PGN_FIRST-3)
- /*
- The PGN_HOTITEMCHANGE notification uses these notification
- flags defined in TOOLBAR:
- #define HICF_ENTERING 0x00000010 // idOld is invalid
- #define HICF_LEAVING 0x00000020 // idNew is invalid
- */
- // Structure for PGN_HOTITEMCHANGE notification
- //
- typedef struct tagNMPGHOTITEM
- {
- NMHDR hdr;
- int idOld;
- int idNew;
- DWORD dwFlags; // HICF_*
- } NMPGHOTITEM, * LPNMPGHOTITEM;
- #endif // NOPAGESCROLLER
- ////====================== End Pager Control ==========================================
- //
- // === Native Font Control ===
- //
- #ifndef NONATIVEFONTCTL
- //NativeFont Class Name
- #define WC_NATIVEFONTCTLW L"NativeFontCtl"
- #define WC_NATIVEFONTCTLA "NativeFontCtl"
- #ifdef UNICODE
- #define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW
- #else
- #define WC_NATIVEFONTCTL WC_NATIVEFONTCTLA
- #endif
- // begin_r_commctrl
- // style definition
- #define NFS_EDIT 0x0001
- #define NFS_STATIC 0x0002
- #define NFS_LISTCOMBO 0x0004
- #define NFS_BUTTON 0x0008
- #define NFS_ALL 0x0010
- #define NFS_USEFONTASSOC 0x0020
- // end_r_commctrl
- #endif // NONATIVEFONTCTL
- // === End Native Font Control ===
- /// ====================== Button Control =============================
- #ifndef NOBUTTON
- #ifdef _WIN32
- // Button Class Name
- #define WC_BUTTONA "Button"
- #define WC_BUTTONW L"Button"
- #ifdef UNICODE
- #define WC_BUTTON WC_BUTTONW
- #else
- #define WC_BUTTON WC_BUTTONA
- #endif
- #else
- #define WC_BUTTON "Button"
- #endif
- #if (_WIN32_WINNT >= 0x501)
- #define BUTTON_IMAGELIST_ALIGN_LEFT 0
- #define BUTTON_IMAGELIST_ALIGN_RIGHT 1
- #define BUTTON_IMAGELIST_ALIGN_TOP 2
- #define BUTTON_IMAGELIST_ALIGN_BOTTOM 3
- #define BUTTON_IMAGELIST_ALIGN_CENTER 4 // Doesn't draw text
- typedef struct
- {
- HIMAGELIST himl; // Index: Normal, hot pushed, disabled. If count is less than 4, we use index 1
- RECT margin; // Margin around icon.
- UINT uAlign;
- } BUTTON_IMAGELIST, *PBUTTON_IMAGELIST;
- #define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001)
- #define Button_GetIdealSize(hwnd, psize)
- (BOOL)SNDMSG((hwnd), BCM_GETIDEALSIZE, 0, (LPARAM)(psize))
- #define BCM_SETIMAGELIST (BCM_FIRST + 0x0002)
- #define Button_SetImageList(hwnd, pbuttonImagelist)
- (BOOL)SNDMSG((hwnd), BCM_SETIMAGELIST, 0, (LPARAM)(pbuttonImagelist))
- #define BCM_GETIMAGELIST (BCM_FIRST + 0x0003)
- #define Button_GetImageList(hwnd, pbuttonImagelist)
- (BOOL)SNDMSG((hwnd), BCM_GETIMAGELIST, 0, (LPARAM)(pbuttonImagelist))
- #define BCM_SETTEXTMARGIN (BCM_FIRST + 0x0004)
- #define Button_SetTextMargin(hwnd, pmargin)
- (BOOL)SNDMSG((hwnd), BCM_SETTEXTMARGIN, 0, (LPARAM)(pmargin))
- #define BCM_GETTEXTMARGIN (BCM_FIRST + 0x0005)
- #define Button_GetTextMargin(hwnd, pmargin)
- (BOOL)SNDMSG((hwnd), BCM_GETTEXTMARGIN, 0, (LPARAM)(pmargin))
- typedef struct tagNMBCHOTITEM
- {
- NMHDR hdr;
- DWORD dwFlags; // HICF_*
- } NMBCHOTITEM, * LPNMBCHOTITEM;
- #define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001)
- #define BST_HOT 0x0200
- #endif
- #endif // NOBUTTON
- /// ===================== End Button Control =========================
- /// ====================== Static Control =============================
- #ifndef NOSTATIC
- #ifdef _WIN32
- // Static Class Name
- #define WC_STATICA "Static"
- #define WC_STATICW L"Static"
- #ifdef UNICODE
- #define WC_STATIC WC_STATICW
- #else
- #define WC_STATIC WC_STATICA
- #endif
- #else
- #define WC_STATIC "Static"
- #endif
- #endif // NOSTATIC
- /// ===================== End Static Control =========================
- /// ====================== Edit Control =============================
- #ifndef NOEDIT
- #ifdef _WIN32
- // Edit Class Name
- #define WC_EDITA "Edit"
- #define WC_EDITW L"Edit"
- #ifdef UNICODE
- #define WC_EDIT WC_EDITW
- #else
- #define WC_EDIT WC_EDITA
- #endif
- #else
- #define WC_EDIT "Edit"
- #endif
- #if (_WIN32_WINNT >= 0x501)
- #define EM_SETCUEBANNER (ECM_FIRST + 1) // Set the cue banner with the lParm = LPCWSTR
- #define Edit_SetCueBannerText(hwnd, lpcwText)
- (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, 0, (LPARAM)(lpcwText))
- #define EM_GETCUEBANNER (ECM_FIRST + 2) // Set the cue banner with the lParm = LPCWSTR
- #define Edit_GetCueBannerText(hwnd, lpwText, cchText)
- (BOOL)SNDMSG((hwnd), EM_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cchText))
- typedef struct _tagEDITBALLOONTIP
- {
- DWORD cbStruct;
- LPCWSTR pszTitle;
- LPCWSTR pszText;
- INT ttiIcon; // From TTI_*
- } EDITBALLOONTIP, *PEDITBALLOONTIP;
- #define EM_SHOWBALLOONTIP (ECM_FIRST + 3) // Show a balloon tip associated to the edit control
- #define Edit_ShowBalloonTip(hwnd, peditballoontip)
- (BOOL)SNDMSG((hwnd), EM_SHOWBALLOONTIP, 0, (LPARAM)(peditballoontip))
- #define EM_HIDEBALLOONTIP (ECM_FIRST + 4) // Hide any balloon tip associated with the edit control
- #define Edit_HideBalloonTip(hwnd)
- (BOOL)SNDMSG((hwnd), EM_HIDEBALLOONTIP, 0, 0)
- #endif
- #endif // NOEDIT
- /// ===================== End Edit Control =========================
- /// ====================== Listbox Control =============================
- #ifndef NOLISTBOX
- #ifdef _WIN32
- // Listbox Class Name
- #define WC_LISTBOXA "ListBox"
- #define WC_LISTBOXW L"ListBox"
- #ifdef UNICODE
- #define WC_LISTBOX WC_LISTBOXW
- #else
- #define WC_LISTBOX WC_LISTBOXA
- #endif
- #else
- #define WC_LISTBOX "ListBox"
- #endif
- #endif // NOLISTBOX
- /// ===================== End Listbox Control =========================
- /// ====================== Combobox Control =============================
- #ifndef NOCOMBOBOX
- #ifdef _WIN32
- // Combobox Class Name
- #define WC_COMBOBOXA "ComboBox"
- #define WC_COMBOBOXW L"ComboBox"
- #ifdef UNICODE
- #define WC_COMBOBOX WC_COMBOBOXW
- #else
- #define WC_COMBOBOX WC_COMBOBOXA
- #endif
- #else
- #define WC_COMBOBOX "ComboBox"
- #endif
- #endif // NOCOMBOBOX
- #if (_WIN32_WINNT >= 0x501)
- // custom combobox control messages
- #define CB_SETMINVISIBLE (CBM_FIRST + 1)
- #define CB_GETMINVISIBLE (CBM_FIRST + 2)
- #define ComboBox_SetMinVisible(hwnd, iMinVisible)
- (BOOL)SNDMSG((hwnd), CB_SETMINVISIBLE, (WPARAM)iMinVisible, 0)
- #define ComboBox_GetMinVisible(hwnd)
- (int)SNDMSG((hwnd), CB_GETMINVISIBLE, 0, 0)
- #endif
- /// ===================== End Combobox Control =========================
- /// ====================== Scrollbar Control ============================
- #ifndef NOSCROLLBAR
- #ifdef _WIN32
- // Scrollbar Class Name
- #define WC_SCROLLBARA "ScrollBar"
- #define WC_SCROLLBARW L"ScrollBar"
- #ifdef UNICODE
- #define WC_SCROLLBAR WC_SCROLLBARW
- #else
- #define WC_SCROLLBAR WC_SCROLLBARA
- #endif
- #else
- #define WC_SCROLLBAR "ScrollBar"
- #endif
- #endif // NOSCROLLBAR
- /// ===================== End Scrollbar Control =========================
- //====== SysLink control =========================================
- #ifdef _WIN32
- #if (_WIN32_WINNT >= 0x501)
- #define INVALID_LINK_INDEX (-1)
- #define MAX_LINKID_TEXT 48
- #define L_MAX_URL_LENGTH (2048 + 32 + sizeof("://"))
- #define WC_LINK L"SysLink"
- #define LWS_TRANSPARENT 0x0001
- #define LWS_IGNORERETURN 0x0002
- #define LIF_ITEMINDEX 0x00000001
- #define LIF_STATE 0x00000002
- #define LIF_ITEMID 0x00000004
- #define LIF_URL 0x00000008
- #define LIS_FOCUSED 0x00000001
- #define LIS_ENABLED 0x00000002
- #define LIS_VISITED 0x00000004
- typedef struct tagLITEM
- {
- UINT mask ;
- int iLink ;
- UINT state ;
- UINT stateMask ;
- WCHAR szID[MAX_LINKID_TEXT] ;
- WCHAR szUrl[L_MAX_URL_LENGTH] ;
- } LITEM, * PLITEM ;
- typedef struct tagLHITTESTINFO
- {
- POINT pt ;
- LITEM item ;
- } LHITTESTINFO, *PLHITTESTINFO ;
- typedef struct tagNMLINK
- {
- NMHDR hdr;
- LITEM item ;
- } NMLINK, *PNMLINK;
- // SysLink notifications
- // NM_CLICK // wParam: control ID, lParam: PNMLINK, ret: ignored.
- // LinkWindow messages
- #define LM_HITTEST (WM_USER+0x300) // wParam: n/a, lparam: PLHITTESTINFO, ret: BOOL
- #define LM_GETIDEALHEIGHT (WM_USER+0x301) // wParam: n/a, lparam: n/a, ret: cy
- #define LM_SETITEM (WM_USER+0x302) // wParam: n/a, lparam: LITEM*, ret: BOOL
- #define LM_GETITEM (WM_USER+0x303) // wParam: n/a, lparam: LITEM*, ret: BOOL
- #endif
- #endif // _WIN32
- //====== End SysLink control =========================================
- //
- // === MUI APIs ===
- //
- #ifndef NOMUI
- void WINAPI InitMUILanguage(LANGID uiLang);
- LANGID WINAPI GetMUILanguage(void);
- #endif // NOMUI
- #endif // _WIN32_IE >= 0x0400
- #ifdef _WIN32
- //====== TrackMouseEvent =====================================================
- #ifndef NOTRACKMOUSEEVENT
- //
- // If the messages for TrackMouseEvent have not been defined then define them
- // now.
- //
- #ifndef WM_MOUSEHOVER
- #define WM_MOUSEHOVER 0x02A1
- #define WM_MOUSELEAVE 0x02A3
- #endif
- //
- // If the TRACKMOUSEEVENT structure and associated flags havent been declared
- // then declare them now.
- //
- #ifndef TME_HOVER
- #define TME_HOVER 0x00000001
- #define TME_LEAVE 0x00000002
- #if (WINVER >= 0x0500)
- #define TME_NONCLIENT 0x00000010
- #endif /* WINVER >= 0x0500 */
- #define TME_QUERY 0x40000000
- #define TME_CANCEL 0x80000000
- #define HOVER_DEFAULT 0xFFFFFFFF
- typedef struct tagTRACKMOUSEEVENT {
- DWORD cbSize;
- DWORD dwFlags;
- HWND hwndTrack;
- DWORD dwHoverTime;
- } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
- #endif // !TME_HOVER
- //
- // Declare _TrackMouseEvent. This API tries to use the window manager's
- // implementation of TrackMouseEvent if it is present, otherwise it emulates.
- //
- WINCOMMCTRLAPI
- BOOL
- WINAPI
- _TrackMouseEvent(
- LPTRACKMOUSEEVENT lpEventTrack);
- #endif // !NOTRACKMOUSEEVENT
- #if (_WIN32_IE >= 0x0400)
- //====== Flat Scrollbar APIs=========================================
- #ifndef NOFLATSBAPIS
- #define WSB_PROP_CYVSCROLL 0x00000001L
- #define WSB_PROP_CXHSCROLL 0x00000002L
- #define WSB_PROP_CYHSCROLL 0x00000004L
- #define WSB_PROP_CXVSCROLL 0x00000008L
- #define WSB_PROP_CXHTHUMB 0x00000010L
- #define WSB_PROP_CYVTHUMB 0x00000020L
- #define WSB_PROP_VBKGCOLOR 0x00000040L
- #define WSB_PROP_HBKGCOLOR 0x00000080L
- #define WSB_PROP_VSTYLE 0x00000100L
- #define WSB_PROP_HSTYLE 0x00000200L
- #define WSB_PROP_WINSTYLE 0x00000400L
- #define WSB_PROP_PALETTE 0x00000800L
- #define WSB_PROP_MASK 0x00000FFFL
- #define FSB_FLAT_MODE 2
- #define FSB_ENCARTA_MODE 1
- #define FSB_REGULAR_MODE 0
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_EnableScrollBar(HWND, int, UINT);
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_ShowScrollBar(HWND, int code, BOOL);
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollRange(HWND, int code, LPINT, LPINT);
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollInfo(HWND, int code, LPSCROLLINFO);
- WINCOMMCTRLAPI int WINAPI FlatSB_GetScrollPos(HWND, int code);
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollProp(HWND, int propIndex, LPINT);
- #ifdef _WIN64
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollPropPtr(HWND, int propIndex, PINT_PTR);
- #else
- #define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp
- #endif
- WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollPos(HWND, int code, int pos, BOOL fRedraw);
- WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollInfo(HWND, int code, LPSCROLLINFO, BOOL fRedraw);
- WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollRange(HWND, int code, int min, int max, BOOL fRedraw);
- WINCOMMCTRLAPI BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT index, INT_PTR newValue, BOOL);
- #define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp
- WINCOMMCTRLAPI BOOL WINAPI InitializeFlatSB(HWND);
- WINCOMMCTRLAPI HRESULT WINAPI UninitializeFlatSB(HWND);
- #endif // NOFLATSBAPIS
- #endif // _WIN32_IE >= 0x0400
- #endif /* _WIN32 */
- #endif // _WIN32_IE >= 0x0300
- #if (_WIN32_WINNT >= 0x501)
- //
- // subclassing stuff
- //
- typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND hWnd, UINT uMsg, WPARAM wParam,
- LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData);
- BOOL WINAPI SetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdSubclass,
- DWORD_PTR dwRefData);
- BOOL WINAPI GetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdSubclass,
- DWORD_PTR *pdwRefData);
- BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass,
- UINT_PTR uIdSubclass);
- LRESULT WINAPI DefSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
- #endif
- #if (_WIN32_WINNT >= 0x501)
- int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, RECT* prc, DWORD dwFlags, COLORREF crText, COLORREF crShadow,
- int ixOffset, int iyOffset);
- #endif
- #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
- #if ISOLATION_AWARE_ENABLED
- #if !defined(ISOLATION_AWARE_INLINE)
- #if defined(__cplusplus)
- #define ISOLATION_AWARE_INLINE inline
- #else
- #define ISOLATION_AWARE_INLINE __inline
- #endif
- #endif
- FARPROC WINAPI CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL(LPCSTR pszProcName);
- void WINAPI IsolationAwareInitCommonControls(void);
- BOOL WINAPI IsolationAwareInitCommonControlsEx(LPINITCOMMONCONTROLSEX unnamed1);
- HIMAGELIST WINAPI IsolationAwareImageList_Create(int cx,int cy,UINT flags,int cInitial,int cGrow);
- BOOL WINAPI IsolationAwareImageList_Destroy(HIMAGELIST himl);
- int WINAPI IsolationAwareImageList_GetImageCount(HIMAGELIST himl);
- BOOL WINAPI IsolationAwareImageList_SetImageCount(HIMAGELIST himl,UINT uNewCount);
- int WINAPI IsolationAwareImageList_Add(HIMAGELIST himl,HBITMAP hbmImage,HBITMAP hbmMask);
- int WINAPI IsolationAwareImageList_ReplaceIcon(HIMAGELIST himl,int i,HICON hicon);
- COLORREF WINAPI IsolationAwareImageList_SetBkColor(HIMAGELIST himl,COLORREF clrBk);
- COLORREF WINAPI IsolationAwareImageList_GetBkColor(HIMAGELIST himl);
- BOOL WINAPI IsolationAwareImageList_SetOverlayImage(HIMAGELIST himl,int iImage,int iOverlay);
- BOOL WINAPI IsolationAwareImageList_Draw(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,UINT fStyle);
- BOOL WINAPI IsolationAwareImageList_Replace(HIMAGELIST himl,int i,HBITMAP hbmImage,HBITMAP hbmMask);
- int WINAPI IsolationAwareImageList_AddMasked(HIMAGELIST himl,HBITMAP hbmImage,COLORREF crMask);
- BOOL WINAPI IsolationAwareImageList_DrawEx(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,int dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT fStyle);
- BOOL WINAPI IsolationAwareImageList_DrawIndirect(IMAGELISTDRAWPARAMS*pimldp);
- BOOL WINAPI IsolationAwareImageList_Remove(HIMAGELIST himl,int i);
- HICON WINAPI IsolationAwareImageList_GetIcon(HIMAGELIST himl,int i,UINT flags);
- HIMAGELIST WINAPI IsolationAwareImageList_LoadImageA(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags);
- HIMAGELIST WINAPI IsolationAwareImageList_LoadImageW(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags);
- BOOL WINAPI IsolationAwareImageList_Copy(HIMAGELIST himlDst,int iDst,HIMAGELIST himlSrc,int iSrc,UINT uFlags);
- BOOL WINAPI IsolationAwareImageList_BeginDrag(HIMAGELIST himlTrack,int iTrack,int dxHotspot,int dyHotspot);
- void WINAPI IsolationAwareImageList_EndDrag(void);
- BOOL WINAPI IsolationAwareImageList_DragEnter(HWND hwndLock,int x,int y);
- BOOL WINAPI IsolationAwareImageList_DragLeave(HWND hwndLock);
- BOOL WINAPI IsolationAwareImageList_DragMove(int x,int y);
- BOOL WINAPI IsolationAwareImageList_SetDragCursorImage(HIMAGELIST himlDrag,int iDrag,int dxHotspot,int dyHotspot);
- BOOL WINAPI IsolationAwareImageList_DragShowNolock(BOOL fShow);
- HIMAGELIST WINAPI IsolationAwareImageList_GetDragImage(POINT*ppt,POINT*pptHotspot);
- #if defined(__IStream_INTERFACE_DEFINED__)
- HIMAGELIST WINAPI IsolationAwareImageList_Read(LPSTREAM pstm);
- BOOL WINAPI IsolationAwareImageList_Write(HIMAGELIST himl,LPSTREAM pstm);
- #if defined(__IStream_INTERFACE_DEFINED__) && (_WIN32_WINNT >= 0x0501)
- HRESULT WINAPI IsolationAwareImageList_ReadEx(DWORD dwFlags,LPSTREAM pstm,REFIID riid,PVOID*ppv);
- HRESULT WINAPI IsolationAwareImageList_WriteEx(HIMAGELIST himl,DWORD dwFlags,LPSTREAM pstm);
- #endif /* defined(__IStream_INTERFACE_DEFINED__) && (_WIN32_WINNT >= 0x0501) */
- #endif /* defined(__IStream_INTERFACE_DEFINED__) */
- BOOL WINAPI IsolationAwareImageList_GetIconSize(HIMAGELIST himl,int*cx,int*cy);
- BOOL WINAPI IsolationAwareImageList_SetIconSize(HIMAGELIST himl,int cx,int cy);
- BOOL WINAPI IsolationAwareImageList_GetImageInfo(HIMAGELIST himl,int i,IMAGEINFO*pImageInfo);
- HIMAGELIST WINAPI IsolationAwareImageList_Merge(HIMAGELIST himl1,int i1,HIMAGELIST himl2,int i2,int dx,int dy);
- HIMAGELIST WINAPI IsolationAwareImageList_Duplicate(HIMAGELIST himl);
- HWND WINAPI IsolationAwareCreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize);
- HBITMAP WINAPI IsolationAwareCreateMappedBitmap(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,LPCOLORMAP lpColorMap,int iNumMaps);
- void WINAPI IsolationAwareDrawStatusTextA(HDC hDC,LPRECT lprc,LPCSTR pszText,UINT uFlags);
- void WINAPI IsolationAwareDrawStatusTextW(HDC hDC,LPRECT lprc,LPCWSTR pszText,UINT uFlags);
- HWND WINAPI IsolationAwareCreateStatusWindowA(long style,LPCSTR lpszText,HWND hwndParent,UINT wID);
- HWND WINAPI IsolationAwareCreateStatusWindowW(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID);
- void WINAPI IsolationAwareMenuHelp(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs);
- BOOL WINAPI IsolationAwareShowHideMenuCtl(HWND hWnd,UINT_PTR uFlags,LPINT lpInfo);
- void WINAPI IsolationAwareGetEffectiveClientRect(HWND hWnd,LPRECT lprc,LPINT lpInfo);
- BOOL WINAPI IsolationAwareMakeDragList(HWND hLB);
- void WINAPI IsolationAwareDrawInsert(HWND handParent,HWND hLB,int nItem);
- int WINAPI IsolationAwareLBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll);
- HWND WINAPI IsolationAwareCreateUpDownControl(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos);
- void WINAPI IsolationAwareInitMUILanguage(LANGID uiLang);
- LANGID WINAPI IsolationAwareGetMUILanguage(void);
- #if !defined(NOTRACKMOUSEEVENT)
- BOOL WINAPI IsolationAware_TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);
- #endif /* !defined(NOTRACKMOUSEEVENT) */
- BOOL WINAPI IsolationAwareFlatSB_EnableScrollBar(HWND unnamed1,int unnamed2,UINT unnamed3);
- BOOL WINAPI IsolationAwareFlatSB_ShowScrollBar(HWND unnamed1,int code,BOOL unnamed2);
- BOOL WINAPI IsolationAwareFlatSB_GetScrollRange(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3);
- BOOL WINAPI IsolationAwareFlatSB_GetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2);
- int WINAPI IsolationAwareFlatSB_GetScrollPos(HWND unnamed1,int code);
- BOOL WINAPI IsolationAwareFlatSB_GetScrollProp(HWND unnamed1,int propIndex,LPINT unnamed2);
- BOOL WINAPI IsolationAwareFlatSB_GetScrollPropPtr(HWND unnamed1,int propIndex,PINT_PTR unnamed2);
- int WINAPI IsolationAwareFlatSB_SetScrollPos(HWND unnamed1,int code,int pos,BOOL fRedraw);
- int WINAPI IsolationAwareFlatSB_SetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2,BOOL fRedraw);
- int WINAPI IsolationAwareFlatSB_SetScrollRange(HWND unnamed1,int code,int min,int max,BOOL fRedraw);
- BOOL WINAPI IsolationAwareFlatSB_SetScrollProp(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2);
- BOOL WINAPI IsolationAwareInitializeFlatSB(HWND unnamed1);
- HRESULT WINAPI IsolationAwareUninitializeFlatSB(HWND unnamed1);
- #if (_WIN32_IE >= 0x560)
- BOOL WINAPI IsolationAwareSetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR dwRefData);
- BOOL WINAPI IsolationAwareGetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR*pdwRefData);
- BOOL WINAPI IsolationAwareRemoveWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass);
- #endif /* (_WIN32_IE >= 0x560) */
- LRESULT WINAPI IsolationAwareDefSubclassProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
- int WINAPI IsolationAwareDrawShadowText(HDC hdc,LPCWSTR pszText,UINT cch,RECT*prc,DWORD dwFlags,COLORREF crText,COLORREF crShadow,int ixOffset,int iyOffset);
- #if defined(UNICODE)
- #define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowW
- #define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextW
- #define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageW
- #else /* UNICODE */
- #define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowA
- #define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextA
- #define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageA
- #endif /* UNICODE */
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareInitCommonControls(void)
- {
- typedef void (WINAPI* PFN)(void);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("InitCommonControls");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn();
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareInitCommonControlsEx(LPINITCOMMONCONTROLSEX unnamed1)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(LPINITCOMMONCONTROLSEX unnamed1);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("InitCommonControlsEx");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Create(int cx,int cy,UINT flags,int cInitial,int cGrow)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(int cx,int cy,UINT flags,int cInitial,int cGrow);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Create");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(cx,cy,flags,cInitial,cGrow);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Destroy(HIMAGELIST himl)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Destroy");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_GetImageCount(HIMAGELIST himl)
- {
- int nResult = 0 ;
- typedef int (WINAPI* PFN)(HIMAGELIST himl);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetImageCount");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(himl);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetImageCount(HIMAGELIST himl,UINT uNewCount)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,UINT uNewCount);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_SetImageCount");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,uNewCount);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_Add(HIMAGELIST himl,HBITMAP hbmImage,HBITMAP hbmMask)
- {
- int nResult = -1;
- typedef int (WINAPI* PFN)(HIMAGELIST himl,HBITMAP hbmImage,HBITMAP hbmMask);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Add");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(himl,hbmImage,hbmMask);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == -1);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_ReplaceIcon(HIMAGELIST himl,int i,HICON hicon)
- {
- int nResult = -1;
- typedef int (WINAPI* PFN)(HIMAGELIST himl,int i,HICON hicon);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_ReplaceIcon");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(himl,i,hicon);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == -1);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE COLORREF WINAPI IsolationAwareImageList_SetBkColor(HIMAGELIST himl,COLORREF clrBk)
- {
- COLORREF colorResult = RGB(0,0,0);
- typedef COLORREF (WINAPI* PFN)(HIMAGELIST himl,COLORREF clrBk);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return colorResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_SetBkColor");
- if (s_pfn == NULL)
- __leave;
- }
- colorResult = s_pfn(himl,clrBk);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (colorResult == RGB(0,0,0));
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return colorResult;
- }
- ISOLATION_AWARE_INLINE COLORREF WINAPI IsolationAwareImageList_GetBkColor(HIMAGELIST himl)
- {
- COLORREF colorResult = RGB(0,0,0);
- typedef COLORREF (WINAPI* PFN)(HIMAGELIST himl);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return colorResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetBkColor");
- if (s_pfn == NULL)
- __leave;
- }
- colorResult = s_pfn(himl);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (colorResult == RGB(0,0,0));
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return colorResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetOverlayImage(HIMAGELIST himl,int iImage,int iOverlay)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int iImage,int iOverlay);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_SetOverlayImage");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,iImage,iOverlay);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Draw(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,UINT fStyle)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,UINT fStyle);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Draw");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,i,hdcDst,x,y,fStyle);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Replace(HIMAGELIST himl,int i,HBITMAP hbmImage,HBITMAP hbmMask)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HBITMAP hbmImage,HBITMAP hbmMask);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Replace");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,i,hbmImage,hbmMask);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareImageList_AddMasked(HIMAGELIST himl,HBITMAP hbmImage,COLORREF crMask)
- {
- int nResult = -1;
- typedef int (WINAPI* PFN)(HIMAGELIST himl,HBITMAP hbmImage,COLORREF crMask);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_AddMasked");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(himl,hbmImage,crMask);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == -1);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DrawEx(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,int dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT fStyle)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,HDC hdcDst,int x,int y,int dx,int dy,COLORREF rgbBk,COLORREF rgbFg,UINT fStyle);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DrawEx");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,i,hdcDst,x,y,dx,dy,rgbBk,rgbFg,fStyle);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DrawIndirect(IMAGELISTDRAWPARAMS*pimldp)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(IMAGELISTDRAWPARAMS*pimldp);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DrawIndirect");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(pimldp);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Remove(HIMAGELIST himl,int i)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Remove");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,i);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE HICON WINAPI IsolationAwareImageList_GetIcon(HIMAGELIST himl,int i,UINT flags)
- {
- HICON iconResult = NULL;
- typedef HICON (WINAPI* PFN)(HIMAGELIST himl,int i,UINT flags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return iconResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetIcon");
- if (s_pfn == NULL)
- __leave;
- }
- iconResult = s_pfn(himl,i,flags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (iconResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return iconResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_LoadImageA(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_LoadImageA");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_LoadImageW(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_LoadImageW");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Copy(HIMAGELIST himlDst,int iDst,HIMAGELIST himlSrc,int iSrc,UINT uFlags)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himlDst,int iDst,HIMAGELIST himlSrc,int iSrc,UINT uFlags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Copy");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himlDst,iDst,himlSrc,iSrc,uFlags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_BeginDrag(HIMAGELIST himlTrack,int iTrack,int dxHotspot,int dyHotspot)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himlTrack,int iTrack,int dxHotspot,int dyHotspot);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_BeginDrag");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himlTrack,iTrack,dxHotspot,dyHotspot);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareImageList_EndDrag(void)
- {
- typedef void (WINAPI* PFN)(void);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_EndDrag");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn();
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragEnter(HWND hwndLock,int x,int y)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hwndLock,int x,int y);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DragEnter");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hwndLock,x,y);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragLeave(HWND hwndLock)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hwndLock);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DragLeave");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hwndLock);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragMove(int x,int y)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(int x,int y);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DragMove");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(x,y);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetDragCursorImage(HIMAGELIST himlDrag,int iDrag,int dxHotspot,int dyHotspot)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himlDrag,int iDrag,int dxHotspot,int dyHotspot);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_SetDragCursorImage");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himlDrag,iDrag,dxHotspot,dyHotspot);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_DragShowNolock(BOOL fShow)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(BOOL fShow);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_DragShowNolock");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(fShow);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_GetDragImage(POINT*ppt,POINT*pptHotspot)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(POINT*ppt,POINT*pptHotspot);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetDragImage");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(ppt,pptHotspot);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- #if defined(__IStream_INTERFACE_DEFINED__)
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Read(LPSTREAM pstm)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(LPSTREAM pstm);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Read");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(pstm);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_Write(HIMAGELIST himl,LPSTREAM pstm)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,LPSTREAM pstm);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Write");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,pstm);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- #if defined(__IStream_INTERFACE_DEFINED__) && (_WIN32_WINNT >= 0x0501)
- ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareImageList_ReadEx(DWORD dwFlags,LPSTREAM pstm,REFIID riid,PVOID*ppv)
- {
- HRESULT result = S_OK;
- typedef HRESULT (WINAPI* PFN)(DWORD dwFlags,LPSTREAM pstm,REFIID riid,PVOID*ppv);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- goto ExitWin32ToHresult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_ReadEx");
- if (s_pfn == NULL)
- goto ExitWin32ToHresult;
- }
- result = s_pfn(dwFlags,pstm,riid,ppv);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return result;
- ExitWin32ToHresult:
- {
- DWORD dwLastError = GetLastError();
- if (dwLastError == NO_ERROR)
- dwLastError = ERROR_INTERNAL_ERROR;
- result = HRESULT_FROM_WIN32(dwLastError);
- return result;
- }
- }
- ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareImageList_WriteEx(HIMAGELIST himl,DWORD dwFlags,LPSTREAM pstm)
- {
- HRESULT result = S_OK;
- typedef HRESULT (WINAPI* PFN)(HIMAGELIST himl,DWORD dwFlags,LPSTREAM pstm);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- goto ExitWin32ToHresult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_WriteEx");
- if (s_pfn == NULL)
- goto ExitWin32ToHresult;
- }
- result = s_pfn(himl,dwFlags,pstm);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return result;
- ExitWin32ToHresult:
- {
- DWORD dwLastError = GetLastError();
- if (dwLastError == NO_ERROR)
- dwLastError = ERROR_INTERNAL_ERROR;
- result = HRESULT_FROM_WIN32(dwLastError);
- return result;
- }
- }
- #endif /* defined(__IStream_INTERFACE_DEFINED__) && (_WIN32_WINNT >= 0x0501) */
- #endif /* defined(__IStream_INTERFACE_DEFINED__) */
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_GetIconSize(HIMAGELIST himl,int*cx,int*cy)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int*cx,int*cy);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetIconSize");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,cx,cy);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_SetIconSize(HIMAGELIST himl,int cx,int cy)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int cx,int cy);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_SetIconSize");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,cx,cy);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareImageList_GetImageInfo(HIMAGELIST himl,int i,IMAGEINFO*pImageInfo)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HIMAGELIST himl,int i,IMAGEINFO*pImageInfo);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_GetImageInfo");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(himl,i,pImageInfo);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Merge(HIMAGELIST himl1,int i1,HIMAGELIST himl2,int i2,int dx,int dy)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(HIMAGELIST himl1,int i1,HIMAGELIST himl2,int i2,int dx,int dy);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Merge");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(himl1,i1,himl2,i2,dx,dy);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE HIMAGELIST WINAPI IsolationAwareImageList_Duplicate(HIMAGELIST himl)
- {
- HIMAGELIST imagelistResult = NULL;
- typedef HIMAGELIST (WINAPI* PFN)(HIMAGELIST himl);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return imagelistResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ImageList_Duplicate");
- if (s_pfn == NULL)
- __leave;
- }
- imagelistResult = s_pfn(himl);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (imagelistResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return imagelistResult;
- }
- ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize)
- {
- HWND windowResult = NULL;
- typedef HWND (WINAPI* PFN)(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return windowResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("CreateToolbarEx");
- if (s_pfn == NULL)
- __leave;
- }
- windowResult = s_pfn(hwnd,ws,wID,nBitmaps,hBMInst,wBMID,lpButtons,iNumButtons,dxButton,dyButton,dxBitmap,dyBitmap,uStructSize);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (windowResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return windowResult;
- }
- ISOLATION_AWARE_INLINE HBITMAP WINAPI IsolationAwareCreateMappedBitmap(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,LPCOLORMAP lpColorMap,int iNumMaps)
- {
- HBITMAP bitmapResult = NULL;
- typedef HBITMAP (WINAPI* PFN)(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,LPCOLORMAP lpColorMap,int iNumMaps);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return bitmapResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("CreateMappedBitmap");
- if (s_pfn == NULL)
- __leave;
- }
- bitmapResult = s_pfn(hInstance,idBitmap,wFlags,lpColorMap,iNumMaps);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (bitmapResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return bitmapResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawStatusTextA(HDC hDC,LPRECT lprc,LPCSTR pszText,UINT uFlags)
- {
- typedef void (WINAPI* PFN)(HDC hDC,LPRECT lprc,LPCSTR pszText,UINT uFlags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("DrawStatusTextA");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(hDC,lprc,pszText,uFlags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawStatusTextW(HDC hDC,LPRECT lprc,LPCWSTR pszText,UINT uFlags)
- {
- typedef void (WINAPI* PFN)(HDC hDC,LPRECT lprc,LPCWSTR pszText,UINT uFlags);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("DrawStatusTextW");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(hDC,lprc,pszText,uFlags);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateStatusWindowA(long style,LPCSTR lpszText,HWND hwndParent,UINT wID)
- {
- HWND windowResult = NULL;
- typedef HWND (WINAPI* PFN)(long style,LPCSTR lpszText,HWND hwndParent,UINT wID);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return windowResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("CreateStatusWindowA");
- if (s_pfn == NULL)
- __leave;
- }
- windowResult = s_pfn(style,lpszText,hwndParent,wID);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (windowResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return windowResult;
- }
- ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateStatusWindowW(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID)
- {
- HWND windowResult = NULL;
- typedef HWND (WINAPI* PFN)(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return windowResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("CreateStatusWindowW");
- if (s_pfn == NULL)
- __leave;
- }
- windowResult = s_pfn(style,lpszText,hwndParent,wID);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (windowResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return windowResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareMenuHelp(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs)
- {
- typedef void (WINAPI* PFN)(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,UINT*lpwIDs);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("MenuHelp");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(uMsg,wParam,lParam,hMainMenu,hInst,hwndStatus,lpwIDs);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareShowHideMenuCtl(HWND hWnd,UINT_PTR uFlags,LPINT lpInfo)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hWnd,UINT_PTR uFlags,LPINT lpInfo);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("ShowHideMenuCtl");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hWnd,uFlags,lpInfo);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareGetEffectiveClientRect(HWND hWnd,LPRECT lprc,LPINT lpInfo)
- {
- typedef void (WINAPI* PFN)(HWND hWnd,LPRECT lprc,LPINT lpInfo);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("GetEffectiveClientRect");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(hWnd,lprc,lpInfo);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareMakeDragList(HWND hLB)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hLB);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("MakeDragList");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hLB);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareDrawInsert(HWND handParent,HWND hLB,int nItem)
- {
- typedef void (WINAPI* PFN)(HWND handParent,HWND hLB,int nItem);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("DrawInsert");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(handParent,hLB,nItem);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareLBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll)
- {
- int nResult = -1;
- typedef int (WINAPI* PFN)(HWND hLB,POINT pt,BOOL bAutoScroll);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("LBItemFromPt");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(hLB,pt,bAutoScroll);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == -1);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE HWND WINAPI IsolationAwareCreateUpDownControl(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos)
- {
- HWND windowResult = NULL;
- typedef HWND (WINAPI* PFN)(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return windowResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("CreateUpDownControl");
- if (s_pfn == NULL)
- __leave;
- }
- windowResult = s_pfn(dwStyle,x,y,cx,cy,hParent,nID,hInst,hBuddy,nUpper,nLower,nPos);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (windowResult == NULL);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return windowResult;
- }
- ISOLATION_AWARE_INLINE void WINAPI IsolationAwareInitMUILanguage(LANGID uiLang)
- {
- typedef void (WINAPI* PFN)(LANGID uiLang);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("InitMUILanguage");
- if (s_pfn == NULL)
- __leave;
- }
- s_pfn(uiLang);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return;
- }
- ISOLATION_AWARE_INLINE LANGID WINAPI IsolationAwareGetMUILanguage(void)
- {
- LANGID languageIdResult = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);
- typedef LANGID (WINAPI* PFN)(void);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return languageIdResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("GetMUILanguage");
- if (s_pfn == NULL)
- __leave;
- }
- languageIdResult = s_pfn();
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (languageIdResult == MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL));
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return languageIdResult;
- }
- #if !defined(NOTRACKMOUSEEVENT)
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAware_TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(LPTRACKMOUSEEVENT lpEventTrack);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("_TrackMouseEvent");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(lpEventTrack);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- #endif /* !defined(NOTRACKMOUSEEVENT) */
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_EnableScrollBar(HWND unnamed1,int unnamed2,UINT unnamed3)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int unnamed2,UINT unnamed3);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_EnableScrollBar");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,unnamed2,unnamed3);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_ShowScrollBar(HWND unnamed1,int code,BOOL unnamed2)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,BOOL unnamed2);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_ShowScrollBar");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,code,unnamed2);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollRange(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_GetScrollRange");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,code,unnamed2,unnamed3);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO unnamed2);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_GetScrollInfo");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,code,unnamed2);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_GetScrollPos(HWND unnamed1,int code)
- {
- int nResult = 0 ;
- typedef int (WINAPI* PFN)(HWND unnamed1,int code);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_GetScrollPos");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(unnamed1,code);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollProp(HWND unnamed1,int propIndex,LPINT unnamed2)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,LPINT unnamed2);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_GetScrollProp");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,propIndex,unnamed2);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_GetScrollPropPtr(HWND unnamed1,int propIndex,PINT_PTR unnamed2)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,PINT_PTR unnamed2);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL(
- #if defined(_WIN64)
- "FlatSB_GetScrollPropPtr"
- #else
- "FlatSB_GetScrollProp"
- #endif
- );
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,propIndex,unnamed2);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollPos(HWND unnamed1,int code,int pos,BOOL fRedraw)
- {
- int nResult = 0 ;
- typedef int (WINAPI* PFN)(HWND unnamed1,int code,int pos,BOOL fRedraw);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_SetScrollPos");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(unnamed1,code,pos,fRedraw);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2,BOOL fRedraw)
- {
- int nResult = 0 ;
- typedef int (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO unnamed2,BOOL fRedraw);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_SetScrollInfo");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(unnamed1,code,unnamed2,fRedraw);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareFlatSB_SetScrollRange(HWND unnamed1,int code,int min,int max,BOOL fRedraw)
- {
- int nResult = 0 ;
- typedef int (WINAPI* PFN)(HWND unnamed1,int code,int min,int max,BOOL fRedraw);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_SetScrollRange");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(unnamed1,code,min,max,fRedraw);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareFlatSB_SetScrollProp(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("FlatSB_SetScrollProp");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1,index,newValue,unnamed2);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareInitializeFlatSB(HWND unnamed1)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND unnamed1);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("InitializeFlatSB");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(unnamed1);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE HRESULT WINAPI IsolationAwareUninitializeFlatSB(HWND unnamed1)
- {
- HRESULT result = S_OK;
- typedef HRESULT (WINAPI* PFN)(HWND unnamed1);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- goto ExitWin32ToHresult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("UninitializeFlatSB");
- if (s_pfn == NULL)
- goto ExitWin32ToHresult;
- }
- result = s_pfn(unnamed1);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- }
- }
- return result;
- ExitWin32ToHresult:
- {
- DWORD dwLastError = GetLastError();
- if (dwLastError == NO_ERROR)
- dwLastError = ERROR_INTERNAL_ERROR;
- result = HRESULT_FROM_WIN32(dwLastError);
- return result;
- }
- }
- #if (_WIN32_IE >= 0x560)
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareSetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR dwRefData)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR dwRefData);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("SetWindowSubclass");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass,dwRefData);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareGetWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR*pdwRefData)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass,DWORD_PTR*pdwRefData);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("GetWindowSubclass");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass,pdwRefData);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- ISOLATION_AWARE_INLINE BOOL WINAPI IsolationAwareRemoveWindowSubclass(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass)
- {
- BOOL fResult = FALSE;
- typedef BOOL (WINAPI* PFN)(HWND hWnd,SUBCLASSPROC pfnSubclass,UINT_PTR uIdSubclass);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return fResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("RemoveWindowSubclass");
- if (s_pfn == NULL)
- __leave;
- }
- fResult = s_pfn(hWnd,pfnSubclass,uIdSubclass);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (fResult == FALSE);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return fResult;
- }
- #endif /* (_WIN32_IE >= 0x560) */
- ISOLATION_AWARE_INLINE LRESULT WINAPI IsolationAwareDefSubclassProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
- {
- LRESULT result = 0 ;
- typedef LRESULT (WINAPI* PFN)(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return result;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("DefSubclassProc");
- if (s_pfn == NULL)
- __leave;
- }
- result = s_pfn(hWnd,uMsg,wParam,lParam);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (result == 0 );
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return result;
- }
- ISOLATION_AWARE_INLINE int WINAPI IsolationAwareDrawShadowText(HDC hdc,LPCWSTR pszText,UINT cch,RECT*prc,DWORD dwFlags,COLORREF crText,COLORREF crShadow,int ixOffset,int iyOffset)
- {
- int nResult = -1;
- typedef int (WINAPI* PFN)(HDC hdc,LPCWSTR pszText,UINT cch,RECT*prc,DWORD dwFlags,COLORREF crText,COLORREF crShadow,int ixOffset,int iyOffset);
- static PFN s_pfn;
- ULONG_PTR ulpCookie = 0;
- const BOOL fActivateActCtxSuccess = IsolationAwarePrivateG_FqbjaLEiEL || IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- return nResult;
- __try
- {
- if (s_pfn == NULL)
- {
- s_pfn = (PFN)CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL("DrawShadowText");
- if (s_pfn == NULL)
- __leave;
- }
- nResult = s_pfn(hdc,pszText,cch,prc,dwFlags,crText,crShadow,ixOffset,iyOffset);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- const BOOL fPreserveLastError = (nResult == -1);
- const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (fPreserveLastError)
- SetLastError(dwLastError);
- }
- }
- return nResult;
- }
- ISOLATION_AWARE_INLINE FARPROC WINAPI CommctrlIsolationAwarePrivatetEgCebCnDDeEff_pbMCgLDC_DLL(LPCSTR pszProcName)
- /* This function is shared by the other stubs in this header. */
- {
- FARPROC proc = NULL;
- static HMODULE s_module;
- BOOL fActivateActCtxSuccess = FALSE;
- ULONG_PTR ulpCookie = 0;
- __try
- {
- if (s_module == NULL)
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL)
- {
- fActivateActCtxSuccess = IsolationAwarePrivatenCgIiAgEzlnCgpgk(&ulpCookie);
- if (!fActivateActCtxSuccess)
- __leave;
- }
- s_module = LoadLibraryW(L"Comctl32.dll");
- if (s_module == NULL)
- {
- if (GetLastError() != ERROR_CALL_NOT_IMPLEMENTED)
- __leave;
- s_module = LoadLibraryA("Comctl32.dll");
- if (s_module == NULL)
- __leave;
- }
- }
- proc = GetProcAddress(s_module, pszProcName);
- }
- __finally
- {
- if (!IsolationAwarePrivateG_FqbjaLEiEL && fActivateActCtxSuccess)
- {
- const DWORD dwLastError = (proc == NULL) ? GetLastError() : NO_ERROR;
- (void)IsolationAwareDeactivateActCtx(0, ulpCookie);
- if (proc == NULL)
- SetLastError(dwLastError);
- }
- }
- return proc;
- }
- #define CreateMappedBitmap IsolationAwareCreateMappedBitmap
- #define CreateStatusWindowA IsolationAwareCreateStatusWindowA
- #define CreateStatusWindowW IsolationAwareCreateStatusWindowW
- #define CreateToolbarEx IsolationAwareCreateToolbarEx
- #define CreateUpDownControl IsolationAwareCreateUpDownControl
- #define DefSubclassProc IsolationAwareDefSubclassProc
- #define DrawInsert IsolationAwareDrawInsert
- #define DrawShadowText IsolationAwareDrawShadowText
- #define DrawStatusTextA IsolationAwareDrawStatusTextA
- #define DrawStatusTextW IsolationAwareDrawStatusTextW
- #define FlatSB_EnableScrollBar IsolationAwareFlatSB_EnableScrollBar
- #define FlatSB_GetScrollInfo IsolationAwareFlatSB_GetScrollInfo
- #define FlatSB_GetScrollPos IsolationAwareFlatSB_GetScrollPos
- #define FlatSB_GetScrollProp IsolationAwareFlatSB_GetScrollProp
- #if defined(FlatSB_GetScrollPropPtr)
- #undef FlatSB_GetScrollPropPtr
- #endif
- #define FlatSB_GetScrollPropPtr IsolationAwareFlatSB_GetScrollPropPtr
- #define FlatSB_GetScrollRange IsolationAwareFlatSB_GetScrollRange
- #define FlatSB_SetScrollInfo IsolationAwareFlatSB_SetScrollInfo
- #define FlatSB_SetScrollPos IsolationAwareFlatSB_SetScrollPos
- #define FlatSB_SetScrollProp IsolationAwareFlatSB_SetScrollProp
- #define FlatSB_SetScrollRange IsolationAwareFlatSB_SetScrollRange
- #define FlatSB_ShowScrollBar IsolationAwareFlatSB_ShowScrollBar
- #define GetEffectiveClientRect IsolationAwareGetEffectiveClientRect
- #define GetMUILanguage IsolationAwareGetMUILanguage
- #define GetWindowSubclass IsolationAwareGetWindowSubclass
- #define ImageList_Add IsolationAwareImageList_Add
- #define ImageList_AddMasked IsolationAwareImageList_AddMasked
- #define ImageList_BeginDrag IsolationAwareImageList_BeginDrag
- #define ImageList_Copy IsolationAwareImageList_Copy
- #define ImageList_Create IsolationAwareImageList_Create
- #define ImageList_Destroy IsolationAwareImageList_Destroy
- #define ImageList_DragEnter IsolationAwareImageList_DragEnter
- #define ImageList_DragLeave IsolationAwareImageList_DragLeave
- #define ImageList_DragMove IsolationAwareImageList_DragMove
- #define ImageList_DragShowNolock IsolationAwareImageList_DragShowNolock
- #define ImageList_Draw IsolationAwareImageList_Draw
- #define ImageList_DrawEx IsolationAwareImageList_DrawEx
- #define ImageList_DrawIndirect IsolationAwareImageList_DrawIndirect
- #define ImageList_Duplicate IsolationAwareImageList_Duplicate
- #define ImageList_EndDrag IsolationAwareImageList_EndDrag
- #define ImageList_GetBkColor IsolationAwareImageList_GetBkColor
- #define ImageList_GetDragImage IsolationAwareImageList_GetDragImage
- #define ImageList_GetIcon IsolationAwareImageList_GetIcon
- #define ImageList_GetIconSize IsolationAwareImageList_GetIconSize
- #define ImageList_GetImageCount IsolationAwareImageList_GetImageCount
- #define ImageList_GetImageInfo IsolationAwareImageList_GetImageInfo
- #define ImageList_LoadImageA IsolationAwareImageList_LoadImageA
- #define ImageList_LoadImageW IsolationAwareImageList_LoadImageW
- #define ImageList_Merge IsolationAwareImageList_Merge
- #define ImageList_Read IsolationAwareImageList_Read
- #define ImageList_ReadEx IsolationAwareImageList_ReadEx
- #define ImageList_Remove IsolationAwareImageList_Remove
- #define ImageList_Replace IsolationAwareImageList_Replace
- #define ImageList_ReplaceIcon IsolationAwareImageList_ReplaceIcon
- #define ImageList_SetBkColor IsolationAwareImageList_SetBkColor
- #define ImageList_SetDragCursorImage IsolationAwareImageList_SetDragCursorImage
- #define ImageList_SetIconSize IsolationAwareImageList_SetIconSize
- #define ImageList_SetImageCount IsolationAwareImageList_SetImageCount
- #define ImageList_SetOverlayImage IsolationAwareImageList_SetOverlayImage
- #define ImageList_Write IsolationAwareImageList_Write
- #define ImageList_WriteEx IsolationAwareImageList_WriteEx
- #define InitCommonControls IsolationAwareInitCommonControls
- #define InitCommonControlsEx IsolationAwareInitCommonControlsEx
- #define InitMUILanguage IsolationAwareInitMUILanguage
- #define InitializeFlatSB IsolationAwareInitializeFlatSB
- #define LBItemFromPt IsolationAwareLBItemFromPt
- #define MakeDragList IsolationAwareMakeDragList
- #define MenuHelp IsolationAwareMenuHelp
- #define RemoveWindowSubclass IsolationAwareRemoveWindowSubclass
- #define SetWindowSubclass IsolationAwareSetWindowSubclass
- #define ShowHideMenuCtl IsolationAwareShowHideMenuCtl
- #define UninitializeFlatSB IsolationAwareUninitializeFlatSB
- #define _TrackMouseEvent IsolationAware_TrackMouseEvent
- #endif /* ISOLATION_AWARE_ENABLED */
- #endif /* RC */
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif // _INC_COMMCTRL