[Windows Mobile Apps and Games] camro:
next try:

all files from version 3.30 + your debug version.

test case:

1.) start programm csdevctrl.exe

2.) press "green" key for dialer

3.) press short time "1"

4.) press "green key" (start dialing)

durung the call - gesture unlock (from left to right direction =1)

5.) press "red key"

after these case:

6.) press "red key" to switch to home screen

after

7.) press "green" key for dialer

8.) press short time "3"

9.) press "green key" (start dialing)

10.) press "red key"

11.) stoping csdevctrl

so i had 2 test cases (2 dialing calls), but only the first call makes the "lock mode", the second doesn't do lock seqence.

here the log:

23:02:34 000983 Starting Up
23:02:41 003064 LINE STATE 8 200
23:02:41 003080 LINEDEVSTATE_OPEN
23:02:41 003122 Unsetting TIMER_ID_BLINK_BACKLIGHT
23:02:41 001525 1 == g_BackLightState
23:02:41 001563 optLockDuringCall Setting
23:02:41 001577 optLockDeviceDuringCall !DeviceLockedInCallFirstTime
23:02:41 003064 LINE STATE 8 800
23:02:42 001146 WM_GOT_LOCK_STATE TRUE
23:02:47 001925 TIMER_ID_TURN_ON_BACKLIGHT
23:02:47 001294 Got MouseSlideMove
23:02:47 002586 Unlock
23:02:47 001662 TIMER_ID_UNLOCK_2_STEP
23:02:47 001705 TIMER_ID_UNLOCK_3_STEP
23:02:48 001148 WM_GOT_LOCK_STATE FALSE
23:02:49 001525 1 == g_BackLightState
23:02:49 001563 optLockDuringCall Setting
23:02:50 003064 LINE STATE 8 800
23:02:51 003064 LINE STATE 8 400
23:02:51 003085 LINEDEVSTATE_CLOSE
23:02:51 003122 Unsetting TIMER_ID_BLINK_BACKLIGHT
23:03:10 003064 LINE STATE 8 200
23:03:10 003080 LINEDEVSTATE_OPEN
23:03:10 003122 Unsetting TIMER_ID_BLINK_BACKLIGHT
23:03:10 001525 1 == g_BackLightState
23:03:10 003064 LINE STATE 8 800
23:03:16 003064 LINE STATE 8 800
23:03:17 003064 LINE STATE 8 400
23:03:17 003085 LINEDEVSTATE_CLOSE
23:03:17 003122 Unsetting TIMER_ID_BLINK_BACKLIGHT
23:03:20 004030 optCallsToBlock=[]

23:03:20 004031 optIgnorePrograms=[]

23:03:20 004033 optLockAfterWake=[1]

23:03:20 004034 optShowTodayAfterLock=[0]

23:03:20 004035 optLockAndBackAfterToday=[0]

23:03:20 004036 optLockDuringCall=[1]

23:03:20 004037 optLockDeviceDuringCall=[0]

23:03:20 004038 optLockDeviceAlways=[0]

23:03:20 004039 optTurnOnBlueToothRingCall=[0]

23:03:20 004040 optTurnOffBlueToothifHeadSetNoCon=[0]

23:03:20 004041 optUnLockAfterCallOver=[1]

23:03:20 004042 optOpenSpeakPhone=[0]

23:03:20 004043 optLockDevicePhoneNotActive=[0]

23:03:20 004044 optResetExchangeServerPolicy=[0]

23:03:20 004045 optUnlockWhenKeyboardSlidedOut=[0]

23:03:20 004046 optUnlockWhenStylusOut=[0]

23:03:20 004047 optLockOnlyifTodayShown=[0]

23:03:20 004049 TurnedOnBlueTooth=[0]

23:03:20 004050 g_DeviceLockedInCall=[0]

23:03:20 004051 g_DeviceLocked=[0]

23:03:20 004052 TimerforBackLightEnabled=[0]

23:03:20 004053 CurrentBlinkBackLightOn=[0]

23:03:20 004054 DeviceLockedInCallFirstTime=[1]

23:03:20 004056 GotKeyWhileLocked=[0]

23:03:20 004057 DoUnlockSpeakerOnRelock=[0]

23:03:20 004058 DoUnlockHangupRelock=[0]

23:03:20 004059 TimerforBlinkActive=[0]

23:03:20 004060 SendingUnlockSequence=[0]

23:03:20 004061 LockedWhileInCall=[1]

23:03:20 004065 optDelayBeforeLockMs=[250]

23:03:20 004066 optDelayBeforeLockMsAfterWake=[250]

23:03:20 004067 optLockAfterIdleSeconds=[0]

23:03:20 004068 optLockAfterIdleSecondsInCall=[120]

23:03:20 004069 optReduceCarrierNameChars=[0]

23:03:20 004070 optUnLockFirstKey=[114]

23:03:20 004071 optUnLockSecondKey=[115]

23:03:20 004072 optHangupCallAfterSecs=[0]

23:03:20 004073 optTurnOnBackLightSecsWhileLocked=[30]

23:03:20 004074 optFlashBackLightWhenRingingms=[500]

23:03:20 004075 optVibratesNumAfterUnlock=[0]

23:03:20 004076 optKeyToExcludeWhenFullyLocked=[0]

23:03:20 004077 optSlideSensitivity=[120]

23:03:20 004078 optPowerOffWhenLockedSecs=[0]

23:03:20 004081 CurrentLineStatus=[400]

23:03:20 004082 g_LineStatusChecked=[0]

23:03:21 001257 WM_DESTROY

hope this helps