Trick: Make Use of Hal Class (Symbian)

xiaoxiao2021-03-06  37

THIS CLASS IS Used To Get and Set Miscellaneous Device-Specific Information and State, Eg Machine ID, Avaible Runtime Ram ETC

IF we want to distinguish WHETHER THE CURRENT HANDSET IS P900 OR P800, USE

Tint MachineUID = 0;

Hal :: get (Haldata :: emachineuid, machineuid);

The nightuish.

P800: 0x101f408b

P900: 0x101fb2ae

P910: 0x10200ac6

Notes: you have to link with hal.lib.

For more depth, drill into header files: hal.h and hal_data.h

转载请注明原文地址:https://www.9cbs.com/read-62332.html

New Post(0)