Those undocumented values now don't have that "still verifying" note in the
v7 SDK.
Since they are not part of the spec, I will just use an enum defined in my
own app rather than supplying a patch.
[Flags]
public enum RuntimeImage : uint
{
Unknown = 0x00000,
ILOnly = 0x00001,
F32BitsRequired = 0x00002,
ILLibrary = 0x00004,
StrongNameSigned = 0x00008,
NativeEntrypoint = 0x00010,
TrackDebugData = 0x10000,
}
On Wed, Jun 10, 2009 at 5:19 PM, Jonathon Rossi <[email protected]> wrote:
> Oops, I must have been half asleep writing that, I meant to write managed
> C++, we have 2 of these libraries in our product.
>
>
> On Wed, Jun 10, 2009 at 5:04 PM, Fabian Schmied
> <[email protected]>wrote:
>
>>
>> Hi!
>>
>> > I just noticed before that Cecil returns different numbers for unmanaged
>> > C++, these numbers are not in ECMA-335.
>>
>> Why are you loading unmanaged C++ DLLs with Cecil? Unmanaged DLLs
>> don't contain a CLI header, so they probably won't contain any
>> COMIMAGE_FLAGS (= RuntimeImage flags) either. Or are you talking about
>> mixed DLLs?
>>
>> > I have created an enum in my own code with these additional numbers,
>> however
>> > I don't have any idea what they mean, does anyone know where I could
>> find
>> > out these undocumented details?
>> >
>> > Thanks
>> >
>> > [Flags]
>> > public enum RuntimeImage : uint
>> > {
>> > Unmanaged = 0x0000000,
>> > ILOnly = 0x0000001,
>> > F32BitsRequired = 0x0000002,
>> > StrongNameSigned = 0x0000008,
>> > Unmanaged2 = 0x0000016,
>> > TrackDebugData = 0x00010000,
>> > }
>>
>> In the .NET SDK (CorHdr.h), there seem to be the following additional
>> values:
>> 0x00000004 => IL_LIBRARY
>> 0x00000010 => NATIVE_ENTRYPOINT (whose "general usage" somebody is
>> "still verifying")
>>
>> Also, don't forget those are flags, so they can be combined.
>>
>> But, as I said, these only make sense for files that have a CLI header...
>>
>> Fabian
>>
>> >>
>>
>
>
> --
> Jono
>
--
Jono
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---