网站首页  词典首页

请输入您要查询的函数:

 

术语 endupdateresource
释义 EndUpdateResource
语法:
BOOL EndUpdateResource( HANDLE hUpdate,
BOOL fDiscard
);
EndUpdateResource功能
提交或丢弃之前作出更改,以UpdateResource电话。
参数
hUpdate
[中]模块句柄返回的BeginUpdateResource功能,以及UpdateResource,参考用文件被更新。
fDiscard
[in]指定是否写入资源更新的文件。如果此参数为TRUE,没有更改。如果它是假的更改:在资源更新生效。
返回值
返回TRUE,如果函数成功,否则返回FALSE。如果函数成功和fDiscard为TRUE,则没有资源更新的文件作出的,否则,所有成功的资源更新了该文件。为了获得更多错误信息,调用GetLastError。
备注
在您调用此函数,请确保所有其他文件句柄比BeginUpdateResource返回的被关闭。
在Windows 95/98/Me:EndUpdateResourceW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
此功能模块内可更新资源,同时包含代码和资源。而我们在法律公告文件,资源更新和限制。MUI文件,都包含了资源配置的数据,详细的限制,在功能的UpdateResource参考。
例如
有关示例,请参见更新资源。
功能信息
最低DLL版本 kernel32.dll
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryKernel32.lib
最低经营systemsWindows新台币3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
资源概况,BeginUpdateResource,UpdateResource
==英文原文==EndUpdateResource Function
Commits or discards changes made prior to a call to UpdateResource .
Syntax
BOOL EndUpdateResource( HANDLE hUpdate,
BOOL fDiscard
);
Parameters
hUpdate
[in] A module handle returned by the BeginUpdateResource function, and used by UpdateResource, referencing the file to be updated.
fDiscard
[in] Specifies whether to write the resource updates to the file. If this parameter is TRUE, no changes are made. If it is FALSE, the changes are made: the resource updates will take effect.
Return Value
Returns TRUE if the function succeeds; FALSE otherwise. If the function succeeds and fDiscard is TRUE, then no resource updates are made to the file; otherwise all successful resource updates are made to the file. To get extended error information, call GetLastError .
Remarks
Before you call this function, make sure all file handles other than the one returned by BeginUpdateResource are closed.
Windows 95/98/Me: EndUpdateResourceW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
This function can update resources within modules that contain both code and resources. There are restrictions on resource updates in LN files and .mui files, both of which contain Resource Configuration data; details of the restrictions are in the reference for the UpdateResource function.
Example
For an example, see Updating Resources .
Function Information
Minimum DLL Versionkernel32.dll
HeaderDeclared in Winbase.h, include Windows.h
Import libraryKernel32.lib
Minimum operating systemsWindows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Resources Overview , BeginUpdateResource , UpdateResource
==原始网址==http://msdn.microsoft.com/en-us/library/ms648032(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:44