Desktop Functions: Smart Device Functions:
|
UpdateResource (kernel32)
C# Signature:
[DllImport("kernel32.dll", SetLastError=true)] VB.NET Signature:
<DllImport("kernel32.dll", SetLastError = True)> _ User-Defined Types:None. Notes:see BeginUpdateResource to get a handle for hUpdate, and EndUpdateResource to apply the update changes. sending NULL (probably 0) to lpData will delete the file named at lpName. Most if not all windows resource names are actually numbers, not strings (but some utilities such as Resource Hacker do not show the data type of the resource name). I'm not actually sure if the data type is unsigned 16 bit, but that's the most conservative choice and it does work. Tips & Tricks:Please add some! You can also send a byte[] to lpData with the content of the resource (with byte[] instead of IntPtr as the type for lpData), but I'm not sure how safe this is. Sample Code:Please add some! Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|