Tips for using wince driver debugging assistant in Windows Mobile

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.