uid
[uid2] [uid3 ]
Use the uid
statement to specify the UIDs for a project.
Each executable has three UIDs. The first is dictated by the target type of the project (whether an EXE or DLL), so is never specified in an MMP file. The second and third are optional. An MMP file may define none, one or two. See How to use UIDs for details.
UIDs may be specified in either hex or decimal.
Under WINSCW, a separate source file is created with the generated
makefile containing code to incorporate UIDs into the executable. The name of
this file is created by taking the basename of the executable and adding the
extension .uid.cpp
.
In OS versions with platform security, the Secure ID for a binary is taken to be the same as the third UID for that file. If no UID statement appears in an MMP file, then zero is used for uid3. If an application (EXE) has a Secure ID of zero, this means 'undefined', and has several consequences, including lack of privacy for data used by that application. See the Platform security concepts section in Symbian OS Guide/Platform security/Symbian OS v9.0 Security Architecture.