00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <ssm/ssmcmd.rh>
00020 #include <ssm/ssmsubstates.hrh>
00021 #include <ssm/cmdpersistreboots.rh>
00022 #include <ssm/cmdpersistreboots.hrh>
00023 #include "dummy_diskstatus_swppolicy.hrh"
00024
00025 UID2 KUidSsmCommandListResourceFile
00026
00027
00028
00029 RESOURCE SSM_COMMAND_LIST_ROOT
00030 {
00031 command_list_mapping = r_command_list_mapping;
00032 }
00033
00034 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping
00035 {
00036 mappings =
00037 {
00038 SSM_COMMANDLISTID_TO_RESOURCEID
00039 {
00040 command_list_id = ESsmNormalSubState;
00041 resource_id = r_normal_command;
00042 }
00043 };
00044 }
00045
00046 RESOURCE SSM_COMMAND_LIST r_normal_command
00047 {
00048 commands =
00049 {
00050 r_rendezvous_with_estart,
00051 r_command_publish_state,
00052 r_command_create_example_swp,
00053 r_reset_boot_count
00054 };
00055 }
00056
00057 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_state
00058 {
00059 severity = ECmdCriticalSeverity;
00060 }
00061
00062 RESOURCE SSM_START_CUSTOM_COMMAND r_reset_boot_count
00063 {
00064 severity = ECmdCriticalSeverity;
00065 execution_behaviour = ESsmWaitForSignal;
00066 dllname = "cmncustomcmds.dll";
00067 ordinal = 1;
00068 dll_data = r_reset;
00069 }
00070
00071 RESOURCE SSM_COMMAND_PERSIST_REBOOTS r_reset
00072 {
00073 val = EResetBootCount;
00074 }
00075
00076 RESOURCE SSM_START_CUSTOM_COMMAND r_rendezvous_with_estart
00077 {
00078 severity = ECmdCriticalSeverity;
00079 dllname = "cmncustomcmds.dll";
00080 ordinal = 2;
00081 }
00082
00083 RESOURCE SSM_CREATE_SYSTEM_WIDE_PROPERTY r_command_create_example_swp
00084 {
00085 severity = ECmdCriticalSeverity;
00086 key = EExampleSwPKey;
00087 value = EExampleSwPValue;
00088 filename = "ssm.swp.policy.dummy.diskstatus.dll";
00089 }