On Windows Mobile, how does one bring up the text message (MMS) interface and fill in the corresponding fields in the program?
The problem has been fixed. Share:
Bool lanchsystemsmseditor (const tchar * smsreceiver, const tchar * smscontent, tchar *
Smssubject)
{
Tchar CommandLine [max_path];
Tchar szappname [max_path];
Lstrcpy (szappname, _ T ("tmail.exe "));
Process_information procinfo;
If (! CreateProcess (szappname, _ T ("-service/" SMS/""), null, null, false,
Create_new_console, null, & procinfo ))
{
Return false;
}
Swprintf (CommandLine, _ T ("mailto: % s? Body = % S & subject = % s "), smsreceiver, smscontent,
Smssubject );
If (! CreateProcess (szappname, CommandLine, null, null, false, create_new_console, null,
Null, null, & procinfo ))
{
Return false;
}
Waitforsingleobject (procinfo. hprocess, infinite );
Return true;
}
Bool lanchsymtememaileditor (const tchar * emailaddress, const tchar * subject, const tchar *
Emailbody)
{
Tchar CommandLine [max_path];
Tchar szappname [max_path];
Lstrcpy (szappname, _ T ("tmail.exe "));
Process_information procinfo;
If (! CreateProcess (szappname, _ T ("-service/" ActiveSync/""), null, null, false,
Create_new_console, null, & procinfo ))
{
Return false;
}
Swprintf (CommandLine, _ T ("mailto: % s? Subject = % S & Body = % s "), emailaddress, subject,
Emailbody );
If (! CreateProcess (szappname, CommandLine, null, null, false, create_new_console, null,
Null, null, & procinfo ))
{
Return false;
}
Waitforsingleobject (procinfo. hprocess, infinite );
Return true;
}
Bool lanchsystemmmseditor (const tchar * smsreceiver, const tchar * smscontent, tchar *
Smssubject)
{
Tchar CommandLine [max_path];
Tchar szappname [max_path];
Lstrcpy (szappname, _ T ("tmail.exe "));
Process_information procinfo;
If (! CreateProcess (szappname, _ T ("-service/" MMS/""), null, null, false,
Create_new_console, null, & procinfo ))
{
Return false;
}
Swprintf (CommandLine, _ T ("mailto: % s? Body = % S & subject = % s "), smsreceiver, smscontent,
Smssubject );
If (! CreateProcess (szappname, CommandLine, null, null, false, create_new_console, null,
Null, null, & procinfo ))
{
Return false;
}
Waitforsingleobject (procinfo. hprocess, infinite );
Return true;
}
-----------------------------------------------
How PPC hides running applications
Showwindow (hwnd, sw_hide );
-----------------------------------------------
How to extract text from an edit box and assign a value to another edit box
Getwindowtext ()
Setwindowtext ()
You can use these two functions.
-----------------------------------------------
How to enumerate connections in wm5
Dmprocessconfigxml can be used to obtain the connection settings, including cm_uplsentries, cm_pppentries, and cm_vpnentries,
The GUID of each returned item indicates which network the connection belongs,
You can use dmprocessconfigxml, cm_networks, or the connmgrenumdestinations mentioned earlier,
The cmplanner can directly select a connection through a specific connection instead of connecting to the network by using the connmgrmapconref function.
The number is obtained by the name of the connection and The GUID is used to connect, bypassing the cmplanner.
The following problem is how to monitor the connection status (monitor other programs to create connections, disconnect connections, and connect ).
Connected traffic)
------------------------------------------------
Windows API problems with wm5.0 battery usage
Header: WINBASE. h.
Link Library: coredll. Lib.
System_power_status_ex2 state;
Getsystempowerstatusex2 (& state, sizeof (state), true );
State. aclinestatus
State. batteryflag
--------------------------------------------------
Rassetentryproperties, rassetentrydialparams, and create a dial-up connection
Rasvalidateentryname: whether the dial exists!
--------------------------------------------------
Capture all phone records through wm_dbnotification
The development tool is C ++ of vs2005. Now we can use wm_dbnotification to capture all phone records.
Capture SMS messages to process SMS records.
The test shows that the wince5.0 phone and SMS records are stored in the PIM. Vol file.
Find the following code:
Case wm_dbnotification:
Pcalllognotification = (cenotification *) (lparam );
If (pcalllognotification-> utype = db_policy_record_created)
{...}
Since the text message record is also saved in the PIM. Vol file, if you can capture messages sent or received by SMS messages, can you still use
Db_policy_record_created to locate the corresponding SMS message records?
I just got in touch with the development of wince. I used to develop some projects using vc6 (both MFC and Win32). I feel that the wince framework and MFC
Similar and easy to use. It is best to tell me how to implement it with vc8. Thank you for your advice.
If I know it is a telephone record, query the clog. DB database. The data structure of the returned record set pcepropval is roughly as follows:
Pcepropval [1]. Val. filetime Start Time (GMT, + 8 required in China)
Pcepropval [2]. Val. filetime End Time (GMT time, + 8 required in China)
Pcepropval [3]. Val. lval indicates the phone type.
Outbound Connections are 7
The number of outgoing connections is 5.
Dial-in is 6
The number of incoming connections is 4.
Cepropval [4]. Val. lpwstr is the outgoing/incoming phone number.