什么是AKU?

What is an AKU?

An Adoption Kit Update (AKU) is an update to the Windows Mobile operating system which is akin to a service pack for a desktop version of Microsoft Windows. An AKU is usually a vehicle to ship an extra feature or fix required by a specific Windows Mobile device under development.

Typically the features enabled by an AKU require specific hardware (such as a new type of keyboard) meaning it does not make sense to make AKUs available to older devices. Occasionally an AKU enables significant features which are of a software nature. For example AKU 2.0 for Windows Mobile 5.0 introduced the Messaging and Security Feature Pack (MSFP) which enabled closer integration with Exchange Server 2003.

 

 

Determining the AKU

Since an AKU typically needs specific hardware and generally doesn’t alter the end user behaviour of a device it isn’t typical to need to detect a device’s AKU. However when you must detect the AKU of a device you can look within the HKLM\SYSTEM\Versions registry key for a string value called not surprisingly Aku.

An example of how you may access this registry value is shown below:

 

 

using Microsoft.Win32;

 

private string GetAKUVersion()

{

RegistryKey key = null;

string aku;

 

try

{

key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\Versions");

aku = (string)key.GetValue("Aku");

// Most of the time the AKU string is prefixed with a .

// so remove it.

if (aku.StartsWith("."))

aku = aku.Substring(1);

}

finally

{

if (key != null)

key.Close();

}

 

return aku;

}

 

 

The Channel9 Windows Mobile Developer Wiki contains a list of AKUs that enables you to match up AKUs with OS build numbers which is another way to determine which AKU is present.

 

以上文字来源于: http://www.christec.co.nz/blog/archives/category/general-development

你可能感兴趣的:(a)