Desktop Functions: Smart Device Functions:
|
Search Results for "UpdateResource" in [All]kernel32
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) {
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.
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. |