예제 #1
0
 private static extern bool UpdateResource(
     UpdateResourceHandle hUpdate,
     nint lpType,
     string lpName,
     ushort wLanguage,
     byte[] lpData,
     int cb);
예제 #2
0
 public ResourceUpdater(FileInfo peFile)
 {
     handle = BeginUpdateResource(peFile.FullName, false);
     if (handle.IsInvalid)
     {
         throw new Win32Exception(Marshal.GetLastPInvokeError(), peFile.FullName);
     }
 }
예제 #3
0
 public static extern bool EndUpdateResource([In] UpdateResourceHandle hUpdate, [MarshalAs(UnmanagedType.Bool)] bool fDiscard);
예제 #4
0
 public static extern bool UpdateResource([In] UpdateResourceHandle hUpdate, string lpType, string lpName, ushort wLanguage, [In] IntPtr lpData, uint cbData);