网站首页  词典首页

请输入您要查询的函数:

 

术语 addfontmemresourceex
释义 AddFontMemResourceEx
语法:
HANDLE AddFontMemResourceEx(
__in PVOID pbFont,
__in DWORD cbFont,
__in PVOID pdv,
__in DWORD *pcFonts
);
AddFontMemResourceEx功能
该AddFontMemResourceEx函数中添加了一个内存映像到系统的字体资源。
参数
pbFont [in]
一个字体资源的指针。
cbFont [in]
在字体资源是指向pbFont字节数。
pdv [in]
保留。必须为0。
pcFonts [in]
一个变量,指定安装的字体数量指针。
返回值
如果函数成功,返回值指定的句柄字体增加。这个唯一标识处理那些在系统上安装的字体。如果函数失败,返回值是零。没有扩展的错误信息是可用。
备注
此函数允许应用程序获得一种字体的文件或网页嵌入。一个是由AddFontMemResourceEx添加字体始终是私有的进程发出的呼吁,不枚举。
内存图像可以包含多个字体。当这个函数执行成功,pcFonts是对一个DWORD值的指针,返回结果是系统增加字体后系统返回的一个数值。举例来说,这个数字可能是2的亚洲字体的纵向和横向的展现。
当函数成功,此函数的调用者可以释放内存指向pbFont因为系统作出了自己的内存拷贝。要删除已安装的,请RemoveFontMemResourceEx字体。但是,当这个进程退出,系统将卸载字体,即使程序没有调用RemoveFontMemResource。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
RemoveFontMemResourceEx
SendMessage消息
DESIGNVECTOR
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==AddFontMemResourceEx Function
The AddFontMemResourceEx function adds the font resource from a memory image to the system.
Syntax
HANDLE AddFontMemResourceEx(
__in PVOID pbFont,
__in DWORD cbFont,
__in PVOID pdv,
__in DWORD *pcFonts
);
Parameters
pbFont [in]
A pointer to a font resource.
cbFont [in]
The number of bytes in the font resource that is pointed to by pbFont.
pdv [in]
Reserved. Must be 0.
pcFonts [in]
A pointer to a variable that specifies the number of fonts installed.
Return Value
If the function succeeds, the return value specifies the handle to the font added. This handle uniquely identifies the fonts that were installed on the system. If the function fails, the return value is zero. No extended error information is available.
Remarks
This function allows an application to get a font that is embedded in a document or a Web page. A font that is added by AddFontMemResourceEx is always private to the process that made the call and is not enumerable.
A memory image can contain more than one font. When this function succeeds, pcFonts is a pointer to a DWORD whose value is the number of fonts added to the system as a result of this call. For example, this number could be 2 for the vertical and horizontal faces of an Asian font.
When the function succeeds, the caller of this function can free the memory pointed to by pbFont because the system has made its own copy of the memory. To remove the fonts that were installed, call RemoveFontMemResourceEx . However, when the process goes away, the system will unload the fonts even if the process did not call RemoveFontMemResource .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Fonts and Text Overview
Font and Text Functions
RemoveFontMemResourceEx
SendMessage
DESIGNVECTOR
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183325(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:28:16