Patent ID: 7650600

Claim:
In a managed computing system including a processor and system memory, a method of exposing unique identifiers of an unmanaged code for providing a reflection type mechanism—without heavyweight functions that unnecessarily impede system performance and working set—by resolving lightweight unique identifiers to their respective file format representation, in memory runtime representation, or both, in order to bridge the gap between the file format and in memory runtime representations, the method comprising acts of: determining a unique identifier corresponding to a member of an object for a program application; accessing both a runtime representation of the member and an in memory member info representing file format metadata for the member, wherein the file format metadata for the member and the runtime representation of the member are used to create the member, and wherein the runtime representation of the member is a data structure that includes one or more elements used at runtime to execute the member; mapping the unique identifier to the runtime representation of the member, the in memory member info, or both, such that the unique identifier can be used to identify at least a portion of the runtime representation of the member, the in memory member info, or both, and the runtime representation of the member, the in memory member info, or both, can be used to identify the unique identifier; determining the equivalence between a unique identifier of the runtime representation of the member and a unique identifier of the in memory member info without having to search for member names; based on the determination that the unique identifiers are equivalent, comparing the unique identifier corresponding to the member of the object to one or more other known unique identifiers to determine, at runtime, whether the member is malicious and whether the member is to be loaded and run; and based on a runtime determination indicating that the member is malicious, bypassing loading and execution of the member.