Kernel32EndUpdateResource(SafeModuleHandle, Boolean) Method
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool EndUpdateResource(
SafeModuleHandle hUpdate,
bool discard
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function EndUpdateResource (
hUpdate As SafeModuleHandle,
discard As Boolean
) As Boolean
Dim hUpdate As SafeModuleHandle
Dim discard As Boolean
Dim returnValue As Boolean
returnValue = Kernel32.EndUpdateResource(hUpdate,
discard)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool EndUpdateResource(
SafeModuleHandle^ hUpdate,
bool discard
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member EndUpdateResource :
hUpdate : SafeModuleHandle *
discard : bool -> bool
No code example is currently available or this language may not be supported.
- hUpdate SafeModuleHandle
-
A module handle returned by the BeginUpdateResource(String, Boolean) function,
and used by UpdateResource(SafeModuleHandle, ResourceType, IntPtr, UInt16, IntPtr, UInt32), referencing the file to be updated.
- discard Boolean
-
Indicates whether to write the resource updates to the file.
If this parameter is , no changes are made.
If it is , the changes are made: the resource updates will take effect.
Boolean
Returns
if the function succeeds;
otherwise.
If the function succeeds and
discard parameter is
,
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
GetLastWin32Error.