Writing a version 2 registration resource file is similar to writing a standard registration resource file.
All the variables required to write a standard registration resource file must be set. In addition:
The following example gives a resource registration file for an implementation collection with two implementations. The first implementation cannot be overridden by a RAM-based plug-in and the second can be overridden by a RAM-based plug-in.
// 10009DB1.RSS // #include "RegistryInfoV2.rh" RESOURCE REGISTRY_INFO theInfo { // resource_format_version must always be set as follows resource_format_version = RESOURCE_FORMAT_VERSION_2; // Normal plug-in parameters dll_uid = 0x10009DB5; interfaces = { INTERFACE_INFO { interface_uid = 0x10009DC9; implementations = { IMPLEMENTATION_INFO { implementation_uid = 0x10009DCA; version_no = 1; display_name = "Example Implementation - ROM-only "; default_data = "text/wml"; opaque_data = ""; // This implementation CANNOT be overridden by a RAM-based plug-in rom_only = 1; }, IMPLEMENTATION_INFO { implementation_uid = 0x10009DCB; version_no = 1; display_name = "Example Implementation - not ROM-only "; default_data = "text/wml"; opaque_data = ""; // This implementation CAN be overridden by a RAM-based plug-in rom_only = 0; } }; } }; }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.