Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "UpdateResource" in [All]

kernel32

.
Summary
.

static extern IntPtr BeginUpdateResource(string pFileName,

.

    Public Shared Function BeginUpdateResource(ByVal pFileName As String, _

.

   IntPtr hResource = BeginUpdateResource(mFileName, false);

.

     if (UpdateResource(hResource, "FILE", fileName,

.

   if (EndUpdateResource(hResource, false) == false) {

.
Documentation
[BeginUpdateResource] on MSDN
.
Summary
.

static extern bool EndUpdateResource(IntPtr hUpdate, bool fDiscard);

.

Public Shared Function EndUpdateResource(ByVal hUpdate As IntPtr, ByVal fDiscard As Boolean) As Boolean

.

hUpdate is returned from BeginUpdateResource.

.
Documentation
[EndUpdateResource] on MSDN
.
Summary
.

static extern bool UpdateResource(IntPtr hUpdate, IntPtr lpType, IntPtr lpName, ushort wLanguage, IntPtr lpData, uint cbData);

.

<DllImport("kernel32.dll", EntryPoint:="UpdateResource", SetLastError:=True)> _

.

Friend Shared Function UpdateResource(hUpdate As IntPtr, lpType As IntPtr, lpName As IntPtr, wLanguage As UShort, <MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=5)> lpData As Byte(), cbData As UInteger) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

See BeginUpdateResource to get a handle for hUpdate, and EndUpdateResource to apply the update changes.

.
Documentation
[UpdateResource] on MSDN

 
Access PInvoke.net directly from VS: