网站首页  词典首页

请输入您要查询的函数:

 

术语 getclipboarddata
释义 GetClipboardData
语法:
HANDLE GetClipboardData( UINT uFormat
);
GetClipboardData函数
该GetClipboardData函数检索从指定格式剪贴板数据。剪贴板必须已经开放以前。
参数
uFormat
[in]指定剪贴板格式。对于一个标准的剪贴板格式的说明,见标准剪贴板格式。
返回值
如果函数成功,返回值是一个句柄指定的格式剪贴板对象。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
应用程序可以列举提前使用EnumClipboardFormats函数可用的格式。
剪贴板控制处理的GetClipboardData函数返回,而不是应用程序。应用程序应该立即复制数据。应用程序必须在处理不自由,也不离开它锁定。应用程序不能使用的处理后,EmptyClipboard或CloseClipboard函数被调用,或在SetClipboardData功能是相同的剪贴板格式要求。
该系统隐式数据执行某些剪贴板格式之间的格式转换时,应用程序调用GetClipboardData函数。例如,如果CF_OEMTEXT格式剪贴板是一个窗口,可以检索的CF_TEXT格式的数据。关于剪贴板格式转换为按需请求的格式。有关更多信息,请参阅合成剪贴板格式。
Windows 95/98/Me的:在微软的Unicode层(MSLU)支持GetClipboardData为合成剪贴板格式的支持。有关更多信息,请参阅合成剪贴板格式。使用这种GetClipboardData版本,您必须添加一些文件到您的应用,概述了对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版本。
参见
剪贴板概述,CloseClipboard,EmptyClipboard,EnumClipboardFormats,SetClipboardData
==英文原文==GetClipboardData Function
The GetClipboardData function retrieves data from the clipboard in a specified format. The clipboard must have been opened previously.
Syntax
HANDLE GetClipboardData( UINT uFormat
);
Parameters
uFormat
[in] Specifies a clipboard format. For a description of the standard clipboard formats, see Standard Clipboard Formats .
Return Value
If the function succeeds, the return value is the handle to a clipboard object in the specified format.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
An application can enumerate the available formats in advance by using the EnumClipboardFormats function.
The clipboard controls the handle that the GetClipboardData function returns, not the application. The application should copy the data immediately. The application must not free the handle nor leave it locked. The application must not use the handle after the EmptyClipboard or CloseClipboard function is called, or after the SetClipboardData function is called with the same clipboard format.
The system performs implicit data format conversions between certain clipboard formats when an application calls the GetClipboardData function. For example, if the CF_OEMTEXT format is on the clipboard, a window can retrieve data in the CF_TEXT format. The format on the clipboard is converted to the requested format on demand. For more information, see Synthesized Clipboard Formats .
Windows 95/98/Me: The Microsoft Layer for Unicode (MSLU) supports GetClipboardData to provide support for synthetic clipboard formats. For more information, see Synthesized Clipboard Formats . To use this version of GetClipboardData, 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 Copying Information to the Clipboard .
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 , CloseClipboard , EmptyClipboard , EnumClipboardFormats , SetClipboardData
==原始网址==http://msdn.microsoft.com/en-us/library/ms649039(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:20:25