Hello i want to use win32 following api's in my program to replace the resource in .dll or .exe

BeginUpdateResource
UpdateResource
EndUpdateResource
FindResource

The resource type maybe string table or bitmap image or .jpg image so please give me example for all

Please give me code as quickly as possible