void PinResource(Resource* pres);
PinResource pins a resource in the memory and the resource remains alive and sharable.