#include "precomp.h"Go to the source code of this file.
Defines | |
| #define | DUMMY_TEXT_HANDLE (HANDLE)0x0001 |
| #define | DUMMY_DIB_HANDLE (HANDLE)0x0002 |
| #define | DUMMY_METARENDER_HANDLE (HANDLE)0x0003 |
| #define | DUMMY_METACLONE_HANDLE (HANDLE)0x0004 |
| #define | DUMMY_MAX_HANDLE (HANDLE)0x0004 |
| #define | PRIVATEFORMAT 0 |
| #define | GDIFORMAT 1 |
| #define | HANDLEFORMAT 2 |
| #define | METAFILEFORMAT 3 |
| #define | IsTextHandle(fmt, hdata) |
| #define | IsDibHandle(fmt, hdata) (((fmt) == CF_DIB) && ((hdata) != DUMMY_DIB_HANDLE)) |
| #define | IsMetaDummyHandle(hdata) ((hdata == DUMMY_METACLONE_HANDLE) || (hdata == DUMMY_METARENDER_HANDLE)) |
| #define | CCHFORMATNAME 256 |
| #define | lpbch ((LPBITMAPCOREHEADER)lpbih) |
Functions | |
| PWINDOWSTATION | CheckClipboardAccess (void) |
| HANDLE | _ConvertMemHandle (LPBYTE ccxlpData, int cbData) |
| BOOL | xxxOpenClipboard (PWND pwnd, LPBOOL lpfEmptyClient) |
| VOID | xxxDrawClipboard (PWINDOWSTATION pwinsta) |
| VOID | PasteScreenPalette (PWINDOWSTATION pwinsta) |
| VOID | MungeClipData (PWINDOWSTATION pwinsta) |
| BOOL | xxxCloseClipboard (PWINDOWSTATION pwinsta) |
| UINT | _EnumClipboardFormats (UINT fmt) |
| int | UT_GetFormatType (PCLIP pClip) |
| VOID | UT_FreeCBFormat (PCLIP pClip) |
| VOID | xxxSendClipboardMessage (PWINDOWSTATION pwinsta, UINT message) |
| BOOL | xxxEmptyClipboard (PWINDOWSTATION pwinsta) |
| BOOL | _SetClipboardData (UINT fmt, HANDLE hData, BOOL fGlobalHandle, BOOL fIncSerialNumber) |
| BOOL | InternalSetClipboardData (PWINDOWSTATION pwinsta, UINT fmt, HANDLE hData, BOOL fGlobalHandle, BOOL fIncSerialNumber) |
| HBITMAP | CreateScreenBitmap (int cx, int cy, UINT bpp) |
| DWORD | SizeOfDib (LPBITMAPINFOHEADER lpDib) |
| HBITMAP | DIBtoBMP (LPBITMAPINFOHEADER lpbih, HPALETTE hpal) |
| LPBITMAPINFOHEADER | BMPtoDIB (HBITMAP hbmp, HPALETTE hpal, DWORD *pcbSize) |
| LPBITMAPV5HEADER | DIBtoDIBV5 (LPBITMAPINFOHEADER lpDib, DWORD cbSize) |
| LPBITMAPV5HEADER | BMPtoDIBV5 (HBITMAP hbmp, HPALETTE hpal) |
| HANDLE | xxxGetDummyBitmap (PWINDOWSTATION pwinsta, PGETCLIPBDATA pgcd) |
| HANDLE | xxxGetDummyDib (PWINDOWSTATION pwinsta, PGETCLIPBDATA pgcd) |
| HANDLE | xxxGetDummyDibV5 (PWINDOWSTATION pwinsta, PGETCLIPBDATA pgcd) |
| HPALETTE | CreateDIBPalette (LPBITMAPINFOHEADER pbmih, UINT colors) |
| HANDLE | xxxGetDummyPalette (PWINDOWSTATION pwinsta, PGETCLIPBDATA pgcd) |
| HANDLE | xxxGetDummyText (PWINDOWSTATION pwinsta, UINT fmt, PGETCLIPBDATA pgcd) |
| HANDLE | xxxGetRenderData (PWINDOWSTATION pwinsta, UINT fmt) |
| HANDLE | xxxGetClipboardData (PWINDOWSTATION pwinsta, UINT fmt, PGETCLIPBDATA pgcd) |
| PCLIP | FindClipFormat (PWINDOWSTATION pwinsta, UINT format) |
| int | _GetPriorityClipboardFormat (PUINT lpPriorityList, int cfmts) |
| PWND | xxxSetClipboardViewer (PWND pwndClipViewerNew) |
| BOOL | xxxChangeClipboardChain (PWND pwndRemove, PWND pwndNewNext) |
| VOID | DisownClipboard (PWND pwndClipOwner) |
| VOID | ForceEmptyClipboard (PWINDOWSTATION pwinsta) |
|
|
Definition at line 1005 of file ntuser/kernel/clipbrd.c. Referenced by InternalSetClipboardData(). |
|
|
Definition at line 20 of file ntuser/kernel/clipbrd.c. Referenced by MungeClipData(), UT_FreeCBFormat(), xxxGetClipboardData(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), and xxxGetDummyPalette(). |
|
|
Definition at line 23 of file ntuser/kernel/clipbrd.c. Referenced by _SetClipboardData(), and xxxGetDummyPalette(). |
|
|
Definition at line 22 of file ntuser/kernel/clipbrd.c. Referenced by MungeClipData(). |
|
|
Definition at line 21 of file ntuser/kernel/clipbrd.c. Referenced by MungeClipData(), and xxxGetClipboardData(). |
|
|
Definition at line 19 of file ntuser/kernel/clipbrd.c. Referenced by _SetClipboardData(), DisownClipboard(), MungeClipData(), UT_FreeCBFormat(), xxxGetClipboardData(), and xxxGetDummyText(). |
|
|
Definition at line 26 of file ntuser/kernel/clipbrd.c. Referenced by UT_FreeCBFormat(), and UT_GetFormatType(). |
|
|
Definition at line 27 of file ntuser/kernel/clipbrd.c. Referenced by UT_FreeCBFormat(), and UT_GetFormatType(). |
|
|
Definition at line 34 of file ntuser/kernel/clipbrd.c. |
|
|
Definition at line 36 of file ntuser/kernel/clipbrd.c. Referenced by UT_FreeCBFormat(), and xxxGetClipboardData(). |
|
|
Value:
Definition at line 30 of file ntuser/kernel/clipbrd.c. Referenced by DisownClipboard(). |
|
|
|
|
|
Definition at line 28 of file ntuser/kernel/clipbrd.c. Referenced by UT_FreeCBFormat(), and UT_GetFormatType(). |
|
|
Definition at line 25 of file ntuser/kernel/clipbrd.c. Referenced by UT_FreeCBFormat(), and UT_GetFormatType(). |
|
||||||||||||
|
Definition at line 88 of file ntuser/kernel/clipbrd.c. References tagCLIPDATA::abData, tagCLIPDATA::cbData, CLIPDATA, FALSE, HMAllocObject(), HMFreeObject(), NULL, PCLIPDATA, PtoHq, and TYPE_CLIPDATA. Referenced by MungeClipData(), NtUserConvertMemHandle(), xxxGetDummyDib(), and xxxGetDummyDibV5().
|
|
|
Definition at line 597 of file ntuser/kernel/clipbrd.c. References CheckClipboardAccess(), tagWINDOWSTATION::cNumClipFormats, FindClipFormat(), tagCLIP::fmt, NULL, tagWINDOWSTATION::pClipBase, tagWINDOWSTATION::ptiClipLock, PtiCurrent, and UINT.
|
|
||||||||||||
|
Definition at line 2514 of file ntuser/kernel/clipbrd.c. References CheckClipboardAccess(), tagWINDOWSTATION::cNumClipFormats, tagCLIP::fmt, NULL, tagWINDOWSTATION::pClipBase, and UINT.
|
|
||||||||||||||||||||
|
Definition at line 953 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), DUMMY_MAX_HANDLE, DUMMY_TEXT_HANDLE, FALSE, InternalSetClipboardData(), and NULL. Referenced by NtUserSetClipboardData(), and xxxSnapWindow().
|
|
||||||||||||||||
|
Definition at line 1286 of file ntuser/kernel/clipbrd.c. References _SelectPalette(), DWORD, FALSE, gpDispInfo, GreGetDIBitsInternal(), tagDISPLAYINFO::hdcScreen, NULL, PtiCurrent, ThreadLockPool, ThreadUnlockPool, VER40, WIDTHBYTES, and xxxRealizePalette(). Referenced by BMPtoDIBV5(), and xxxGetDummyDib().
|
|
||||||||||||
|
Definition at line 1616 of file ntuser/kernel/clipbrd.c. References BMPtoDIB(), DIBtoDIBV5(), DWORD, and NULL. Referenced by xxxGetDummyDibV5().
|
|
|
||||||||||||
|
Definition at line 2041 of file ntuser/kernel/clipbrd.c. References BOOL, BYTE, HDCBITS, and NULL. Referenced by xxxGetDummyPalette().
|
|
||||||||||||||||
|
Definition at line 1114 of file ntuser/kernel/clipbrd.c. References cy, gpDispInfo, tagDISPLAYINFO::hdcScreen, and NULL. Referenced by BitmapFromDIB(), DIBtoBMP(), and LoadBmp().
|
|
||||||||||||
|
Definition at line 1189 of file ntuser/kernel/clipbrd.c. References _SelectPalette(), CreateScreenBitmap(), cy, FALSE, gpDispInfo, tagDISPLAYINFO::hdcScreen, lpbch, NULL, PBYTE, and xxxRealizePalette(). Referenced by xxxGetDummyBitmap().
|
|
||||||||||||
|
Definition at line 1450 of file ntuser/kernel/clipbrd.c. References abs, BOOL, BYTE, DWORD, FALSE, LCS_GM_IMAGES, NULL, TRUE, and WIDTHBYTES. Referenced by BMPtoDIBV5(), and xxxGetDummyDibV5().
|
|
|
Definition at line 2687 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), tagWINDOWSTATION::cNumClipFormats, DUMMY_TEXT_HANDLE, FALSE, tagWINDOWSTATION::fClipboardChanged, tagWINDOWSTATION::iClipSequenceNumber, IsTextHandle, MungeClipData(), NULL, tagWINDOWSTATION::pClipBase, PtiCurrent, tagWINDOWSTATION::spwndClipOwner, ThreadLockWinSta, ThreadUnlockWinSta, TRUE, Unlock, VOID(), xxxDrawClipboard(), and xxxSendClipboardMessage(). Referenced by xxxDW_SendDestroyMessages().
|
|
||||||||||||
|
Definition at line 2482 of file ntuser/kernel/clipbrd.c. References tagWINDOWSTATION::cNumClipFormats, tagCLIP::fmt, format, NULL, and tagWINDOWSTATION::pClipBase. Referenced by _EnumClipboardFormats(), InternalSetClipboardData(), MungeClipData(), NtUserIsClipboardFormatAvailable(), xxxGetClipboardData(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), xxxGetDummyPalette(), xxxGetDummyText(), and xxxGetRenderData().
|
|
|
Definition at line 2779 of file ntuser/kernel/clipbrd.c. References tagWINDOWSTATION::dwWSF_Flags, tagWINDOWSTATION::ptiClipLock, tagWINDOWSTATION::spwndClipOpen, tagWINDOWSTATION::spwndClipOwner, tagWINDOWSTATION::spwndClipViewer, Unlock, VOID(), WSF_DYING, xxxCloseClipboard(), and xxxEmptyClipboard(). Referenced by EndShutdown(), and FreeWindowStation().
|
|
||||||||||||||||||||||||
|
Definition at line 1007 of file ntuser/kernel/clipbrd.c. References BOOL, CCHFORMATNAME, CLIP, tagWINDOWSTATION::cNumClipFormats, DWORD, FALSE, tagWINDOWSTATION::fClipboardChanged, tagCLIP::fGlobalHandle, FindClipFormat(), tagWINDOWSTATION::fInDelayedRendering, tagCLIP::fmt, GETPTI, tagCLIP::hData, tagWINDOWSTATION::iClipSequenceNumber, tagWINDOWSTATION::iClipSerialNumber, NULL, tagWINDOWSTATION::pClipBase, tagWINDOWSTATION::ptiClipLock, PtiCurrent, tagWINDOWSTATION::spwndClipOwner, TRUE, UserAddAtom(), UserGetAtomName(), and UT_FreeCBFormat(). Referenced by _SetClipboardData(), MungeClipData(), and PasteScreenPalette().
|
|
|
Definition at line 335 of file ntuser/kernel/clipbrd.c. References _ConvertMemHandle(), DUMMY_DIB_HANDLE, DUMMY_METACLONE_HANDLE, DUMMY_METARENDER_HANDLE, DUMMY_TEXT_HANDLE, DWORD, FALSE, FindClipFormat(), tagCLIP::hData, tagKL::hkl, HMFreeObject(), HMValidateHandleNoRip(), InternalSetClipboardData(), NULL, PasteScreenPalette(), PtiCurrent, PUSIF_PALETTEDISPLAY, tagTHREADINFO::spklActive, TEST_PUSIF, TRUE, TYPE_CLIPDATA, and VOID(). Referenced by DisownClipboard(), and xxxCloseClipboard().
|
|
|
Definition at line 270 of file ntuser/kernel/clipbrd.c. References FALSE, gpDispInfo, tagDISPLAYINFO::hdcScreen, InternalSetClipboardData(), NULL, PUSIF_PALETTEDISPLAY, TEST_PUSIF, TRUE, and VOID(). Referenced by MungeClipData().
|
|
|
Definition at line 1132 of file ntuser/kernel/clipbrd.c. References abs, DWORD, and WIDTHBYTES. Referenced by xxxGetDummyDib(), and xxxGetDummyDibV5().
|
|
|
Definition at line 701 of file ntuser/kernel/clipbrd.c. References DUMMY_DIB_HANDLE, DUMMY_TEXT_HANDLE, tagCLIP::fGlobalHandle, GDIFORMAT, HANDLEFORMAT, tagCLIP::hData, HMFreeObject(), HMValidateHandleNoRip(), IsMetaDummyHandle, METAFILEFORMAT, NULL, PRIVATEFORMAT, TYPE_CLIPDATA, UT_GetFormatType(), and VOID(). Referenced by InternalSetClipboardData(), xxxEmptyClipboard(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), and xxxGetDummyPalette().
|
|
|
Definition at line 668 of file ntuser/kernel/clipbrd.c. References tagCLIP::fmt, GDIFORMAT, HANDLEFORMAT, METAFILEFORMAT, and PRIVATEFORMAT. Referenced by UT_FreeCBFormat().
|
|
||||||||||||
|
Definition at line 2618 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), CheckLock, FALSE, GETPTI, HW, Lock, NULL, PtiCurrent, tagWINDOWSTATION::spwndClipViewer, ThreadLockAlways, ThreadLockWinSta, ThreadUnlock, ThreadUnlockWinSta, TRUE, and xxxSendMessage(). Referenced by NtUserChangeClipboardChain().
|
|
|
Definition at line 538 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), FALSE, tagWINDOWSTATION::fClipboardChanged, MungeClipData(), NULL, tagWINDOWSTATION::ptiClipLock, PtiCurrent, tagWINDOWSTATION::spwndClipOpen, ThreadLockWinSta, ThreadUnlockWinSta, TRUE, Unlock, and xxxDrawClipboard(). Referenced by ForceEmptyClipboard(), NtUserCloseClipboard(), xxxDestroyThreadInfo(), and xxxSnapWindow().
|
|
|
Definition at line 220 of file ntuser/kernel/clipbrd.c. References FALSE, tagWINDOWSTATION::fClipboardChanged, HW, L, NULL, PtiCurrent, tagWINDOWSTATION::ptiDrawingClipboard, tagWINDOWSTATION::spwndClipOwner, tagWINDOWSTATION::spwndClipViewer, ThreadLockAlways, ThreadUnlock, TIF_16BIT, VOID(), xxxSendMessage(), and xxxSendNotifyMessage(). Referenced by DisownClipboard(), xxxCloseClipboard(), and xxxSetClipboardViewer().
|
|
|
Definition at line 851 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), tagWINDOWSTATION::cNumClipFormats, tagWINDOWSTATION::dwWSF_Flags, FALSE, tagWINDOWSTATION::fClipboardChanged, tagWINDOWSTATION::fInDelayedRendering, tagCLIP::fmt, tagWINDOWSTATION::iClipSequenceNumber, tagWINDOWSTATION::iClipSerialNumber, Lock, NULL, tagWINDOWSTATION::pClipBase, tagWINDOWSTATION::ptiClipLock, tagWINDOWSTATION::spwndClipOpen, tagWINDOWSTATION::spwndClipOwner, ThreadLockWinSta, ThreadUnlockWinSta, TRUE, UserDeleteAtom(), UT_FreeCBFormat(), WSF_DYING, and xxxSendClipboardMessage(). Referenced by ForceEmptyClipboard(), NtUserEmptyClipboard(), and xxxSnapWindow().
|
|
||||||||||||||||
|
Definition at line 2356 of file ntuser/kernel/clipbrd.c. References DUMMY_DIB_HANDLE, DUMMY_METARENDER_HANDLE, DUMMY_TEXT_HANDLE, tagGETCLIPBDATA::fGlobalHandle, tagCLIP::fGlobalHandle, FindClipFormat(), tagCLIP::hData, IsMetaDummyHandle, NULL, tagWINDOWSTATION::ptiClipLock, PtiCurrent, xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), xxxGetDummyPalette(), xxxGetDummyText(), and xxxGetRenderData(). Referenced by NtUserGetClipboardData(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), xxxGetDummyPalette(), and xxxGetDummyText().
|
|
||||||||||||
|
Definition at line 1658 of file ntuser/kernel/clipbrd.c. References tagCLIPDATA::abData, tagCLIPDATA::cbData, DIBtoBMP(), DUMMY_DIB_HANDLE, FindClipFormat(), tagCLIP::hData, HMValidateHandleNoRip(), tagGETCLIPBDATA::hPalette, NULL, PGETCLIPBDATA, PUSIF_PALETTEDISPLAY, TEST_PUSIF, TYPE_CLIPDATA, tagGETCLIPBDATA::uFmtRet, UT_FreeCBFormat(), and xxxGetClipboardData(). Referenced by xxxGetClipboardData().
|
|
||||||||||||
|
Definition at line 1784 of file ntuser/kernel/clipbrd.c. References _ConvertMemHandle(), BMPtoDIB(), DUMMY_DIB_HANDLE, DWORD, FindClipFormat(), tagCLIP::hData, HMFreeObject(), HMValidateHandleNoRip(), tagGETCLIPBDATA::hPalette, NULL, PUSIF_PALETTEDISPLAY, SizeOfDib(), TEST_PUSIF, TYPE_CLIPDATA, tagGETCLIPBDATA::uFmtRet, UT_FreeCBFormat(), and xxxGetClipboardData(). Referenced by xxxGetClipboardData().
|
|
||||||||||||
|
Definition at line 1907 of file ntuser/kernel/clipbrd.c. References _ConvertMemHandle(), tagCLIPDATA::abData, BMPtoDIBV5(), tagCLIPDATA::cbData, DIBtoDIBV5(), DUMMY_DIB_HANDLE, DWORD, FindClipFormat(), tagCLIP::hData, HMFreeObject(), HMValidateHandleNoRip(), NULL, PUSIF_PALETTEDISPLAY, SizeOfDib(), TEST_PUSIF, TYPE_CLIPDATA, tagGETCLIPBDATA::uFmtRet, UT_FreeCBFormat(), and xxxGetClipboardData(). Referenced by xxxGetClipboardData().
|
|
||||||||||||
|
Definition at line 2111 of file ntuser/kernel/clipbrd.c. References tagCLIPDATA::abData, CreateDIBPalette(), DUMMY_DIB_HANDLE, DUMMY_MAX_HANDLE, FindClipFormat(), tagCLIP::hData, HMValidateHandle(), NULL, TYPE_CLIPDATA, UINT, UT_FreeCBFormat(), and xxxGetClipboardData(). Referenced by xxxGetClipboardData().
|
|
||||||||||||||||
|
Definition at line 2200 of file ntuser/kernel/clipbrd.c. References BOOL, DUMMY_TEXT_HANDLE, FALSE, FindClipFormat(), tagCLIP::fmt, tagCLIP::hData, tagGETCLIPBDATA::hLocale, NULL, TRUE, tagGETCLIPBDATA::uFmtRet, UINT, and xxxGetClipboardData(). Referenced by xxxGetClipboardData().
|
|
||||||||||||
|
Definition at line 2303 of file ntuser/kernel/clipbrd.c. References BOOL, FALSE, tagWINDOWSTATION::fClipboardChanged, FindClipFormat(), tagWINDOWSTATION::fInDelayedRendering, tagCLIP::hData, L, NULL, tagWINDOWSTATION::spwndClipOwner, ThreadLockAlways, ThreadUnlock, TRUE, and xxxSendMessage(). Referenced by xxxGetClipboardData().
|
|
||||||||||||
|
Definition at line 124 of file ntuser/kernel/clipbrd.c. References BOOL, CheckClipboardAccess(), CheckLock, FALSE, GETPTI, tagPROCESSINFO::iClipSerialNumber, tagWINDOWSTATION::iClipSerialNumber, Lock, NULL, tagTHREADINFO::ppi, tagWINDOWSTATION::ptiClipLock, PtiCurrent, tagWINDOWSTATION::spwndClipOpen, tagWINDOWSTATION::spwndClipOwner, TestWF, TIF_16BIT, tagTHREADINFO::TIF_flags, TRUE, and WFDESTROYED. Referenced by NtUserOpenClipboard(), and xxxSnapWindow().
|
|
||||||||||||
|
Definition at line 783 of file ntuser/kernel/clipbrd.c. References L, NULL, PtiCurrent, tagWINDOWSTATION::spwndClipOwner, ThreadLockAlways, ThreadUnlock, TIF_16BIT, VOID(), xxxSendMessage(), xxxSendMessageTimeout(), and xxxSendNotifyMessage(). Referenced by DisownClipboard(), and xxxEmptyClipboard().
|
|
|
Definition at line 2572 of file ntuser/kernel/clipbrd.c. References CheckClipboardAccess(), CheckLock, HW, Lock, NULL, PtiCurrent, RevalidateHwnd, tagWINDOWSTATION::spwndClipViewer, ThreadLockWinSta, ThreadUnlockWinSta, and xxxDrawClipboard(). Referenced by NtUserSetClipboardViewer().
|
1.3.7