The driver debugging assistant is designed for Windows CE and has some problems when used in Windows Mobile. The most important thing is that the menu bar is hidden by the taskbar of Windows Mobile, as shown in.
As a matter of fact, you only need to hide the system taskbar. It seems feasible to experiment on the simulator today. Only after the taskbar is hidden, a screen is displayed in the corresponding area, as shown in.
I don't know if the screen is a simulator. The menu of the driver debugging assistant is vaguely visible, and the registry search function is also tested, as shown in.
The actual usage is as follows, to help a wmdm.exeProgramAfter the dm.exein the same directory is started and the dm.exe exited, the system taskbar is restored,CodeAs follows.
1 Hwnd;
2 DWORD dwlen;
3 Process_information PI;
4 Tchar szpath [max_path];
5
6 Dwlen = Getmodulefilename (null, szpath, max_path );
7 If ( ! Dwlen)
8 {
9 Return 0 ;
10 }
11
12 While (Szpath [ -- Dwlen] ! = _ T ( ' \\ ' ))
13 {
14 Szpath [dwlen] = _ T ( ' \ 0 ' );
15 }
16 Wcscat (szpath, _ T ( " Dm.exe " ));
17
18 Hwnd = Findwindow (_ T ( " Hhtaskbar " ), Null );
19 If (Hwnd)
20 {
21 Enablewindow (hwnd, false );
22 Showwindow (hwnd, sw_hide );
23 }
24
25 If (CreateProcess (szpath, null, null, 0 , False, 0 , Null, & Pi ))
26 {
27 Waitforsingleobject (PI. hprocess, infinite );
28 Closehandle (PI. hthread );
29 Closehandle (PI. hprocess );
30 }
31
32 Enablewindow (hwnd, true );
33 Showwindow (hwnd, sw_show );
Wmdm: Invalid.