Using Win32 functions in Visual FoxPro Image Gallery
Clipboard
..msdn
AddClipboardFormatListener
ChangeClipboardChain
CloseClipboard
CountClipboardFormats
EmptyClipboard
EnumClipboardFormats
GetClipboardData
GetClipboardFormatName
GetClipboardOwner
GetClipboardSequenceNumber
GetClipboardViewer
GetOpenClipboardWindow
GetPriorityClipboardFormat
GetUpdatedClipboardFormats
IsClipboardFormatAvailable
OpenClipboard
RegisterClipboardFormat
RemoveClipboardFormatListener
SetClipboardData
SetClipboardViewer
Code examples:
GetUpdatedClipboardFormats
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the currently supported clipboard formats.
Code examples:
Declaration:
BOOL WINAPI GetUpdatedClipboardFormats(
  _Out_  PUINT lpuiFormats,
  _In_   UINT cFormats,
  _Out_  PUINT pcFormatsOut
);

FoxPro declaration:
DECLARE INTEGER GetUpdatedClipboardFormats IN user32;
    STRING @lpuiFormats,;
    INTEGER cFormats,;
    INTEGER @pcFormatsOut
Parameters:
lpuiFormats [out]
Type: PUINT
An array of clipboard formats. Each element of the array is a DWORD.

cFormats [in]
Type: UINT
The number of entries in the array pointed to by lpuiFormats.

pcFormatsOut [out]
Type: PUINT
The actual number of clipboard formats in the array pointed to by lpuiFormats.
Return value:
The function returns TRUE if successful; otherwise, FALSE.
Usage:
nSize = 255
cBuffer = REPLICATE(CHR(0), nSize * 4)
nCount = 0

IF GetUpdatedClipboardFormats(@cBuffer, m.nSize, @nCount) = 0
    ? GetLastError()
ENDIF

* enumerates changed clipboard formats
FOR nIndex=1 TO nCount
    ? buf2dword(SUBSTR(cBuffer, (nIndex-1) * 4 + 1, 4))
NEXT

My comment:
If I am not mistaken, this is clipboard format enumeration performed in a single call, rather than via multiple EnumClipboardFormats calls.

See also: EnumClipboardFormats, CountClipboardFormats, IsClipboardFormatAvailable
Word Index links for the GetUpdatedClipboardFormats :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-01-28 17:48:49
Modified: 2015-01-28 17:57:19
Visited in last 7 days: 16
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.136.62)
17 sec.Function: 'StrToInt'
34 sec.Function: 'StartService'
50 sec.Function: 'SetSysColors'
1.1 min.Function: 'GdipSetPathGradientCenterPointI'
1.35 min.Function: 'FormatMessage'
1.6 min.Function: 'FreeLibrary'
1.85 min.Function: 'GetAncestor'
2.13 min.Function: 'GlobalUnlock'
2.4 min.Function: 'AVIStreamLength'
Function group: 'Windows Multimedia'
2.68 min.Function: 'SQLGetInfo'
Google
Advertise here!