The UnlockResource function is obsolete. This function is provided only for compatibility with 16-bit versions of Windows. It is not necessary for Win32-based applications to unlock resources.
Resources Overview, Resource Functions, LoadResource, LockResource