网站首页  词典首页

请输入您要查询的函数:

 

术语 enumclipboardformats
释义 EnumClipboardFormats
语法:
UINT EnumClipboardFormats( UINT format
);
EnumClipboardFormats功能
该EnumClipboardFormats函数枚举数据格式目前在剪贴板可用。
剪贴板的数据格式存储在一个有序列表。要执行的剪贴板数据格式枚举,您对一个函数调用EnumClipboardFormats系列。对于每个调用,格式参数指定一个可用剪贴板格式,该函数返回下一个可用的剪贴板格式。
参数
格式
[in]指定剪贴板格式是已知可用。
要启动一个枚举的剪贴板格式,格式设置为零。当格式是零,函数检索第一个可用的剪贴板格式。但是,在以后调用枚举期间,设置格式的前EnumClipboardFormats调用的结果。
返回值
如果函数成功,返回值是剪贴板格式如下指定的格式,即下一个可用剪贴板格式。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。如果没有打开剪贴板,函数失败。
如果没有更多的剪贴板格式枚举,返回值是零。在这种情况下,GetLastError函数返回值ERROR_SUCCESS。这使您可以区分功能衰竭,在统计结束。
备注
您必须打开它的文件格式之前,列举剪贴板。使用OpenClipboard函数打开剪贴板。该EnumClipboardFormats函数失败,如果没有打开剪贴板。
枚举函数的EnumClipboardFormats在他们放置在剪贴板上以格式。如果您要复制到剪贴板上的信息,以增加从最描述剪贴板格式剪贴板对象至少描述剪贴板格式。如果您是从剪贴板粘贴信息,取第一个剪贴板格式,您可以处理。这将是最描述剪贴板格式,您可以处理。
该系统提供了一定的剪贴板格式的自动类型转换。在这种模式下,这个函数枚举指定的格式,然后列举了它所可以转换格式。有关更多信息,请参阅标准剪贴板格式和合成剪贴板格式。
Windows 95/98/Me的:在微软的Unicode层(MSLU)支持EnumClipboardFormats为合成剪贴板格式的支持。有关更多信息,请参阅合成剪贴板格式。使用这种EnumClipboardFormats版本,您必须添加一些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
例如
举例说,看到一个剪贴板查看示例。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
剪贴板概述,CountClipboardFormats,OpenClipboard,RegisterClipboardFormat
==英文原文==EnumClipboardFormats Function
The EnumClipboardFormats function enumerates the data formats currently available on the clipboard.
Clipboard data formats are stored in an ordered list. To perform an enumeration of clipboard data formats, you make a series of calls to the EnumClipboardFormats function. For each call, the format parameter specifies an available clipboard format, and the function returns the next available clipboard format.
Syntax
UINT EnumClipboardFormats( UINT format
);
Parameters
format
[in] Specifies a clipboard format that is known to be available.
To start an enumeration of clipboard formats, set format to zero. When format is zero, the function retrieves the first available clipboard format. For subsequent calls during an enumeration, set format to the result of the previous EnumClipboardFormats call.
Return Value
If the function succeeds, the return value is the clipboard format that follows the specified format, namely the next available clipboard format.
If the function fails, the return value is zero. To get extended error information, call GetLastError . If the clipboard is not open, the function fails.
If there are no more clipboard formats to enumerate, the return value is zero. In this case, the GetLastError function returns the value ERROR_SUCCESS. This lets you distinguish between function failure and the end of enumeration.
Remarks
You must open the clipboard before enumerating its formats. Use the OpenClipboard function to open the clipboard. The EnumClipboardFormats function fails if the clipboard is not open.
The EnumClipboardFormats function enumerates formats in the order that they were placed on the clipboard. If you are copying information to the clipboard, add clipboard objects in order from the most descriptive clipboard format to the least descriptive clipboard format. If you are pasting information from the clipboard, retrieve the first clipboard format that you can handle. That will be the most descriptive clipboard format that you can handle.
The system provides automatic type conversions for certain clipboard formats. In the case of such a format, this function enumerates the specified format, then enumerates the formats to which it can be converted. For more information, see Standard Clipboard Formats and Synthesized Clipboard Formats .
Windows 95/98/Me: The Microsoft Layer for Unicode (MSLU) supports EnumClipboardFormats to provide support for synthetic clipboard formats. For more information, see Synthesized Clipboard Formats . To use this version of EnumClipboardFormats, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Example
For an example, see Example of a Clipboard Viewer .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Clipboard Overview , CountClipboardFormats , OpenClipboard , RegisterClipboardFormat
==原始网址==http://msdn.microsoft.com/en-us/library/ms649038(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:22:53