网站首页  词典首页

请输入您要查询的函数:

 

术语 getpriorityclipboardformat
释义 GetPriorityClipboardFormat
语法:
int GetPriorityClipboardFormat( UINT *paFormatPriorityList,
int cFormats
);
GetPriorityClipboardFormat功能
该GetPriorityClipboardFormat函数检索指定列表中的第一个可用的剪贴板格式。
参数
paFormatPriorityList
[in]指向一个确定剪贴板格式符号整数数组,优先顺序。对于一个标准的剪贴板格式的说明,见标准剪贴板格式。
cFormats
[in]指定条目的paFormatPriorityList个数。此值不能大于列表中的条目数量。
返回值
如果函数成功,返回值是列表中的数据,它推出的第一批剪贴板格式。如果剪贴板为空,则返回值为NULL。如果剪贴板中的数据,但在没有任何规定的格式,返回值是-1。为了获得更多错误信息,调用GetLastError。
备注
举例说,看到一个剪贴板查看示例。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
剪贴板,CountClipboardFormats,EnumClipboardFormats,GetClipboardFormatName,IsClipboardFormatAvailable,RegisterClipboardFormat
==英文原文==GetPriorityClipboardFormat Function
The GetPriorityClipboardFormat function retrieves the first available clipboard format in the specified list.
Syntax
int GetPriorityClipboardFormat( UINT *paFormatPriorityList,
int cFormats
);
Parameters
paFormatPriorityList
[in] Pointer to an array of unsigned integers identifying clipboard formats, in priority order. For a description of the standard clipboard formats, see Standard Clipboard Formats .
cFormats
[in] Specifies the number of entries in the paFormatPriorityList array. This value must not be greater than the number of entries in the list.
Return Value
If the function succeeds, the return value is the first clipboard format in the list for which data is available. If the clipboard is empty, the return value is NULL. If the clipboard contains data, but not in any of the specified formats, the return value is –1. To get extended error information, call GetLastError .
Remarks
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
See Also
Clipboard , CountClipboardFormats , EnumClipboardFormats , GetClipboardFormatName , IsClipboardFormatAvailable , RegisterClipboardFormat
==原始网址==http://msdn.microsoft.com/en-us/library/ms649045(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 13:26:30