Deleting registry keys after uninstall on a .NETCF app
Hi !
I have a problem to certify my Pocket PC App made with .NET Compact
Framework against the "Designed for Windows Mobile Logo". It requires
to delete all created registry keys after uninstall, which I can't
achieve. I found some informations about a Setup.dll at this address :
http://www.pocketpcdn.com/articles/setupdll.html. It seems to be what I
want but I don't know anything about C++ :(
Furthermore, I noticed that even the .NET Compact Framework doesn't
delete its registry keys after uninstall (keys in
"\HKLM\SOFTWARE\Apps\Microsoft .NET Compact Framework" always stay
after uninstall). It seems that Microsoft wants us to do what they say
but not what they do (and it's the same for SQLCe 2.0 and every other
program I've tested) :p
Here is a list of the keys created during install :
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\CabFile
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\CmdFile
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\InstallDir
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\Instl
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\InstlDir
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\InstlDirCnt
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\IsvFile
And here is what remains on my Pocket PC after I uninstall my program
with Active Sync or the "Add/Remove program" :
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\CabFile
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\CmdFile
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\InstallDir
- \HKLM\SOFTWARE\Apps\<MyCompany> <AppName>\IsvFile
So my question is : is it really necessary to delete these keys to get
the Windows Mobile Logo ?
Thanks in advance.
Laurent Tag: passthru driver Tag: 106705
Windows CE vs. Windows Mobile
I am beginner in PocketPC development. Can you tell me what is the
difference between Windows CE and Windows Mobile? Is Windows CE older and
surpassed OS with far less functionality then Windows Mobile? Tag: passthru driver Tag: 106702
Bluetooth woes
Hi.
I'm new to Bluetooth and am discovering quite quickly how to lose 90% of
one's hair in less than a week.
I have an iPAQhx2700 PPC. I will soon also have a Dell PPC. Both with
bluetooth and Wifi.
I am trying to discover the bluetooth devices that the iPAQ sees. So, I
tried out the sample code in MSDN :
#define MAX_NAME 248
WSAQUERYSET wsaq;
HANDLE hLookup;
FILE *file;
int tries=0;
union {
CHAR buf[5000];
double __unused; // ensure proper alignment
};
file=_tfopen(_T("/Temp/dump.txt"), _T("w"));
LPWSAQUERYSET pwsaResults = (LPWSAQUERYSET) buf;
DWORD dwSize = sizeof(buf);
BOOL bHaveName;
pwsaResults = (LPWSAQUERYSET) buf;
dwSize = sizeof(buf);
ZeroMemory(&wsaq, sizeof(wsaq));
wsaq.dwSize = sizeof(wsaq);
wsaq.dwNameSpace = NS_BTH;
wsaq.lpcsaBuffer = NULL;
if (ERROR_SUCCESS != WSALookupServiceBegin (&wsaq, LUP_CONTAINERS,
&hLookup))
{
_ftprintf(file, L"WSALookupServiceBegin failed %d\r\n", GetLastError());
if (tries == 10) {
fclose(file);
return FALSE;
} else {
Sleep(100);
}
}
ZeroMemory(pwsaResults, sizeof(WSAQUERYSET));
pwsaResults->dwSize = sizeof(WSAQUERYSET);
pwsaResults->dwNameSpace = NS_BTH;
pwsaResults->lpBlob = NULL;
while (ERROR_SUCCESS == WSALookupServiceNext (hLookup,
LUP_RETURN_NAME | LUP_RETURN_ADDR, &dwSize, pwsaResults))
{
ASSERT (pwsaResults->dwNumberOfCsAddrs == 1);
BT_ADDR b = ((SOCKADDR_BTH
*)pwsaResults->lpcsaBuffer->RemoteAddr.lpSockaddr)->btAddr;
bHaveName = pwsaResults->lpszServiceInstanceName &&
*(pwsaResults->lpszServiceInstanceName);
_ftprintf (file, _T("%s%s%04x%08x%s\n"), bHaveName ?
pwsaResults->lpszServiceInstanceName : L"",
bHaveName ? L"(" : L"", GET_NAP(b), GET_SAP(b), bHaveName ? L")" :
L"");
}
fclose(file);
WSALookupServiceEnd(hLookup);
return TRUE;
Systematically the WSALookupServiceBegin() function fails with error
10108. From what I read, I'm not the only one encountering this error.
The problem is that I don't understand *why* I'm getting this error.
Is it because the iPAQ has a Widcomm BT stack? In this case, is there
some other way to discover BT devices without having to buy the SDK? And
especially, is there some way of detecting the devices that would work
on *ALL* PPCs? With Widcomm or Microsoft stack?
In advance, thanks. Tag: passthru driver Tag: 106701
Cannot call my WebServie from Emulator
Hi,
now that the PPC emulator of VS2005 is detected again by ActiveSync I'm
facing the next problem: I cannot call my WebService from within the
emulator.
The emulator has network connection and I can surf the web. If I run my
WebService client on my desktop PC everything is fine but the PPC keeps
stating "Could not establish connection to network". For testing purposes I
would like to call my ChatClient.asmx file from within the Pocket Explorer
but this doesn't work either. I tried on the local IP of my desktop PC
(http://192.168.178.1:3220/WebSite1/ChatService.asmx), as well as on
http://Taz:3220/... and on http://localhost:3220/...
If anybody has an idea please post here. :-)
Thanks.
René Tag: passthru driver Tag: 106698
open file from network
Hello NG,
the OpenFileDialog only shows local directories. Is there another control or
dialog available to browse on a shared network folder like the "file
explorer" does and select a file there?
It is a C# Project on WM 2003 SE with VS 2005.
Thanks in advance,
Jürgen Tag: passthru driver Tag: 106697
PDA SQL Sync Architecture VS2005
Hi,
I am looking to develop a PocketPC App using VB.Net or C# and a mobile SQL
database. I will then need to Sync mobile changes back to main server. I'll
then try to go one step further and push changes from server back to PDA.
Before diving head first I am trying to get an idea of overall best practice
for architecture/technology to use, specifically for synchronisation between
PDAs and a main SQL server. I will eventually want to be able to synchronise
whilst docked and while connected GPRS (or other live connection).
I had a quick read on ActiveSync which at every turn looked like a C++
nightmare of 'ActiveSync Providers' for my own objects/tables.
Can anyone supply a basic mud-map of options here, suggest best practice or
point to an idiot's guide to synchrnisation?
TIA
Simon Tag: passthru driver Tag: 106695
Treo w700 Power Managment
Hello,
I have an media player application that comes up at certain time and play
mp3 file. I use SystemIdleTimerReset to prevent the Treo from going to
suspend mode. It works find if the KeyGuard is not Active. However, if the
application starts from sleep mode and the Keyaguard mode is on, then
SystemIdleTimerReset does not work and the device suspend after specific
time.
Can someone shed some light on this problem and what is the work around? I
know there must be a way because Active sync does ot and prevents the device
from suspending.even the keyguard is on.
Your help is greatly appreciated... Tag: passthru driver Tag: 106694
Windows Mobile 5 applications from Visual Studio 2003
I am currently developing applications using visual studio 2003. Can I
still make WIndow Mobile 5 compatible applications, that use RAPI or do
I have to upgrade?
How do I configure the security settings? What are the options? Is
there a guide on how to do it?
Thanks
John Tag: passthru driver Tag: 106693
Windows Mobile 5 Security Model
Hi,
I am quite new to RAPI development. Can someone send me a program that
disables the security settings?
Can someone also assist me in creating certificates and signing cabs?
Thank you
John Tag: passthru driver Tag: 106692
ActiveSync 4.1 does not offer DMA connection to emulator
Hi,
I'm rather new to Visual Studio 2005. I wrote a small WebService and tried
to call it within the PPC 2003 SE emulator but without succes. Sneaking
around on the web I figured out that ActiveSync has to be installed. I
accidently installed version 3.8 instead of 4.1 but at least the emulator
was detected when I set it to be cradled.
Shortly after this I uninstalled 3.8 and installed ActiveSync 4.1 - now the
emulator won't be detected any longer. In the connection combobox of
ActiveSync I can only choose between "COM1" and "COM5". There is no such
thing like a "DMA" entry.
Damn, this has been bugging me for too long...any hints are welcome!
Regards,
René Tag: passthru driver Tag: 106686
Open html in Pocket IE from C++ line
How can I open an html file on PocketPC on the Pocket Internet Explorer? How
can I call the Pocket Internet Explorer exe? In general, how can I run
external applications from c++/MFC code? Tag: passthru driver Tag: 106683
Registry Key For PIE ?????
To all.
Is there a registry entry to disable Internet Explorer to detect a
connection through connection manager???
I have another method of connecting instead of using connection manager,
however Internet explorer will not recognize this connection and brings up
connection manager do dial up another connection. ANY help would be much
appreciated. Thanks
Karl Tag: passthru driver Tag: 106682
What happened to WM_HELPINFO PPC2k3/VS2k5?
I tried converting an MFC dialog-based app from eVC to 2k5, but apparently
WM_HELPINFO is no longer supported? Am I doing something wrong or has MS
decided to do away with it? Tag: passthru driver Tag: 106681
VS2005 PocketPC2003 Second Edition Menubar on Dialog
Hi, I've searched pocketpcdn and found the article. But following method
doesn't work. It returns false. Can you give me any idea why? IDR_MENU_MAP is
a menu I created with the resource editor. This code is inside
OnInitDialog().
SHMENUBARINFO info;
info.cbSize = sizeof(info);
info.hwndParent = m_hWnd;
info.dwFlags = 0;
info.nToolBarId = IDR_MENU_MAP;
info.hInstRes = ::AfxGetInstanceHandle();
info.nBmpId = 0;
info.cBmpImages = 0;
if(SHCreateMenuBar(&info))
AfxMessageBox(_T("true"));
else
AfxMessageBox(_T("false")); Tag: passthru driver Tag: 106678
Call History
Where is call history log file placed on PPC Phone Edition? I saw functions
on MSDN for reading, storeing, etc. but there is no function for deleting
the call history? How can I delete all of them programatically? Thanks for
replying! Tag: passthru driver Tag: 106677
MySQL
Hi!
Is it possible to connect to a MySQL database from a VB.net application?
I tried this:
Dim Conn As System.Data.SqlClient.SqlConnection
Conn = New System.Data.SqlClient.SqlConnection( _
"Driver={MySQL ODBC 3.51 Driver}; " & _
"Server=***; " & _
"Database=***; " & _
"User ID=***;" & _
"Password=***;")
But that does not seem to work. The emulator gets a error, that the
option driver is unknown.
Alex. Tag: passthru driver Tag: 106672
how to detemine free memory?
Folks,
I'm looking for a way to programmatically query the amount of free memory on
a Pocket PC. Basically, I want the figures that appear as "Storage Free" and
"Program Free" under the Main tab in Settings | Memory. I'd like to do this
in C#, if possible.
Also, if a device had an internal hard drive, would this appear as "Storage"
memory, or as a permanently mounted memory card?
Thanks much,
Matthew Fleming
DermVision, LLC Tag: passthru driver Tag: 106661
Windows Mobile 5 and secchk.lib
I'm trying to add a WM5 target to my PPC2003 solution (Visual Studio
2005). I installed the SDK, added a new build type (I derived it from
my PPC2003 build type), and chose the correct emulator for the target
device.
The problem is that even if I have /GS- in the compiler settings
(disable security checks), I am still getting LNK1104 for secchk.lib.
As far as I can tell, secchk.lib doesn't even exist in the WM5 SDK.
I can't find any explicit references to secchk.lib anywhere in the
project. Does anyone know where I went wrong, or what the solution is? Tag: passthru driver Tag: 106660
Picturebox in windows control dispalys as Red 'X'
Hi,
I have an embedded windows usercontrol in IE. I am using a picturebox
in the windows control.
I am using embedded resource to load the image using
GetManifestResourceStream...
The image loads up most of the time but at times under load I get a big
red 'X" instead of the image.
The only option I have is to close the browser and log back in again.
Any help towards this issue is appreciated.
Thanks
Luck Tag: passthru driver Tag: 106658
WiFi Connectivity Problem with using WinCE 5.0/O2-Atom
Hi,
I am trying to browse the website hosted on my laptop... but the IE (on
mobile) is unable to find the website.
However, the two machines are able to ping each each.
Do I need to customize some entries?
--
Cheers,
Gaurav Tag: passthru driver Tag: 106656
WM_CTLCOLOR
I'm traping WM_CTLCOLOR to color my CEdit control (with ReadOnly property
set) placed on a dialog, below's the code I'm using and it doesn't work
well, so if you would be so kind and point me out the right solution...
HBRUSH CDialog1::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor){
CEdit *pEditReadOnly = (CEdit*)GetDlgItem(IDC_EDIT1);
static CBrush brBkg;
brBkg.CreateSysColorBrush(RGB(255,255,255));
HWND hWndReadOnly = pEditReadOnly->GetSafeHwnd();
if(nCtlColor == CTLCOLOR_STATIC && hWndReadOnly == pWnd->GetSafeHwnd()){
pDC->SetBkColor(RGB(255,255,255));
pDC->SetTextColor(RGB(255,255,255));
return brBkg;
}
HBRUSH hbr = CDialog1::OnCtlColor(pDC, pWnd,nCtlColor);
return hbr;
} Tag: passthru driver Tag: 106654
MTOM for Windows mobile ?
Hi,
I've been searching for information about MTOM support on Windows Mobile
devices, with not much sucess. Does anyone know if .NET CF 2.0 supports
MTOM?
Cheers,
Lionel Tag: passthru driver Tag: 106653
standard sizes
I create my icons in standard form 16x16 + 32x32 when I'm developing for
QVGA resolutions (320x240), but when I want to create that same icons for
VGA resolutions I don't know in what format I need to create them so they
doesn't look streched (e.g. when I place shortcut in Start->Programs)? How
do you people solve this? Thanks for replying. Tag: passthru driver Tag: 106648
How to adjust backlight brightness programmatically on Windows Mobile 2005
Hello,
I have a HP iPAQ 2490 with Windows Mobile 2005 OS. It seems that
Microsoft has changed the way you adjust brightness programmatically.
On PocketPC 2003 you changed system registry:
[HKEY_CURRENT_USER\ControlPanel\Backlight]
"ACBrightNess"
"BrightNess"
Then...
SystemParametersInfo(WM_SETTINGCHANGE, 0, 0, SPIF_UPDATEINIFILE);
//Notify close event...
HANDLE hEvent = CreateEvent(NULL, FALSE, FALSE,
T("BackLightChangeEvent"));PulseEvent(hEvent);
CloseHandle(hEvent);
But this has changed in the Windows Mobile 2005 OS.
Anyone who knows how this is done?
Regards Tag: passthru driver Tag: 106643
Communication between the desktop and the emulator ?
Dear All,
Recently I am involved in a project about digital video monitoring.
With a software called 'Digi-Watcher' and a webcam connected to my pc,
when any motions captured ''Digi-Watcher' will send a alert or launch
an application on my pc. Now my task is to send this alert to the
emulator or launch an application in the emulator.
So I want to know how many possible ways to communicate between the
desktop and the emulator ?
Thanks in advance !! Tag: passthru driver Tag: 106641
API PlaySound function playing wrong sound
Hello,
I am trying to get a program on a Pocket PC 2003 platform to play
specified sounds at certain points in the program. Sometimes it plays
the sound I specify, but about 50% of the time it just plays a default
beep instead (at the same point in the program). Does anyone know why?
The code is:
PlaySound("\windows\msgbox.wav", IntPtr.Zero,
PlaySoundFlags.SND_FILENAME _
Or PlaySoundFlags.SND_ASYNC)
As I say, about half the time it works and plays the sound I want, so
there is nothing fundamentally wrong with the way I am calling it. How
can I make it behave itself?
Cheers,
Peter Royle Tag: passthru driver Tag: 106637
Newbie question
2 questions
1. am writing an application for a WM 2003 SE ppc. I want to be able to
write to / read from a log file. Anyone got an example?
2. Is it possible to make a drawing, drawing lines from point to point?
(x,y) coordinates?
Erik Tag: passthru driver Tag: 106633
16kHz sampling available on PDA?
Hi,<br /><br />I'm currently looking for a new Mobile 5.0 PDA. None of the PDA's I found specifies that they can sample at 16 kHz. Although, the chip used, WM8750 seems to support all the audio frequencies.<br /><br />Do we loose the 16 kHz support only in a standard application and is it available in the API, or do we loose it altogether?<br />When can a device be labeled PocketPC/Smartphone compliant? Where could I find the list of mandatory CE components?<br /><br />Peter<br /> Tag: passthru driver Tag: 106632
DVD-ROM device for PocketPC ?
Hello,
Does such an item exist for a Pocket PC PDA ? If yes how is it
recognized by the OS.
Any recommendation ?
Many Thanks Tag: passthru driver Tag: 106619
MAPI two character PR_BODY includes extra chinese characters
Has anyone ever seen an example where when reading the body of a
Windows CE mail message body using PR_BODY via IStream, that extra
chinese characters are inserted at the end of the ASCII text message?
If so, what was the cause? When this occurs, the message size given
via Stat() is double the number of ASCII characters, and when it
doesn't happen the message size matches the number of ASCII characters.
This is on an english device and the text being entered is english
text.
For example, I can reliably reproduce this problem with a two character
body on PPC 2003, and with a four character body on WM 5.0. Tag: passthru driver Tag: 106616
Bluetooth headset support in WM 2003SE
Some of the greatest minds in the world are always around Microsoft, so I'm
praying someone has an answer to this. I'm fairly well experienced at making
registry changes, etc., and had no problems using my BT headset with my WM
2003 (not SE) PPC, but I have since upgraded to a 2003SE PPC and am banging
my head against the desk trying to get this to work. There is no such thing
as impossible, so I'm sure someone has figured this out....any ideas or
enlightenment would be wonderful...thanks so much Tag: passthru driver Tag: 106614
Execute DLL command after CAB-Installation?
Hi all
If I remember correctly there is a possibilty to execute a DLL command after
a CAB-Installation...
But how?
Thanks
James Tag: passthru driver Tag: 106611
programmatically play new email notification: sound/buble/flash/vibrate?
In Pocket PC, you can control how to get notified when there is a new
email: Under
"Setting"=>"Personal"=>"Sounds&Notifications"=>"Notification" tab,
choose specific settings for "Messaging: New e-mail message". In
Smartphone, there is a similar setting (with only a choice to pick a
sound though).
I developed a mail transport, which creates an account in Outlook based
on user's username/password/server/port, and drops new emails in the
inbox without user's intervention (sort of like always-on email).
After a new email arrives, the user needs to be notified. My question
is how to generate notification based on the user's setting? For
example, play a wav file chosen by the user, and/or vibrate ...
I found something in the registry, but thought that might not be the
right approach. Appreciate any hints/help.
Thanks,
- Chang Tag: passthru driver Tag: 106605
PocketPC Hardware
I'm looking for a very small piece of hardware (similar to gumstix)
that can run PocketPC and the CF.NET framework. Anyone have any ideas?
Thanks Tag: passthru driver Tag: 106600
Issue with sending event.
Hi,
I am having a problem at the moment.
I am updating the GDI\Rotation value in the registry on the device, but
this is not actually rotating the screen. When i check the registry, it
has been updated and if i perform a soft-reset, then the display gets
correctly rotated. does anyone know which event i need to send, to
force windows to re-read the values from the registry and therefore
update ? I've been looking at this for hours and got no where.
Many thanks in advance Tag: passthru driver Tag: 106599
CreateFile coredll.dll freeze!
Hi,
I've found what I think is a bug in PocketPC 2005 that frezzes the entire
device(!) I've isolated the problem to coredll.dll.
I'm using CreateFile to hook up the 'COM1:' (the connector on the bottom of
the device) on a hp hx2490 running PocketPC 2005.
The problem occurs if I connect the com-port to my PC and start sending
characters from the PC to the device and then calls CreateFile, the device
freezes!
Is there anyone that have had the same problem?
Does anyone know how to report a bug to Microsoft?
Regards
/Mats Tag: passthru driver Tag: 106592
Audio devices WM5
I'm using a smartphone qtek 8310 windows mobile 5.0 and I'm developing a
program in C#
I believe the qtek 8310 has two different speakers, one external and one
earpiece speaker.
In my program I'm calling the function waveOutGetNumDevs to find out how
many speakers there are. But the function only returns 1. And when playing
PCM data it is played in the external speaker.
Is it possible to redirect the the audio to the earpiece speaker? Tag: passthru driver Tag: 106590
help me for video streaming
I need help for Video streaming. Can anyone suggest me for video
streaming where i can have enough information...I'm using evc++ 4.0 and
windows CE emulator. I've to download and run mpeg or mpg file from
webserver. after having lots of search I'm putting my query over here.
I really glad if I got any help .
thanks..ya
Navin Tag: passthru driver Tag: 106589
POOM and CeFlushDBVol
If I am using POOM to create items on a WM5 PPC, when are the items
flushed (when is CeFlushDBVol called)?
Does this only occur if you call IPOutlookApp::Logoff?
Does the flush move data from "Program memory" to "Storage memory"?
Thanks,
Frank Tag: passthru driver Tag: 106588
Asynch wininet - Threaded or not?
Hi,
If I use asynch Wininet is there any purpose in hiving of the Wininet calls
into separate threads and the extra complication which ensues? As from what
I can see the system starts a separate thread implicitly for the asynch
calls anyway.
The reason I ask is I imagine the thread switching might ensure that the UI
remains responsive - plus there may be other issues you can enlighten me
with.
My application is "real-time" and will be applied to a Pocket PC/Smartphone
as well as WinXP so I need the quickest/most efficient functionality
possible.
Also the UI response must be as fast as possible.
The application basically "GET"s a website for info then issues occasional -
through crucial "POST"s prompted by the user via the UI.
Both the GETS and POSTS must be carried out as close to real-time as
possible.
TIA Tag: passthru driver Tag: 106586
Newbie info on device-locking, screen on/off, hotkeys
I have a qtek9100, I wish for it to stay "on" all the time, unless
explicitly "powered down" by the power-button.
However, i want to "lock" the device, and the screen turned off when the
device is locked. I can see that this will require me to write a small app.
I have looked at apps like ScreenToggle, but that doesn't work very well
in combination with locking, integration is needed.
I have VS2003, with mobile-support, and i've managed to write a
hello-world app that runs on the qtek.
Now what i need is some pointers to articles, code, ... that shows how
to interact with:
- screen on/off (I've found
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_layoff.asp)
- lock/unlock of the device (not memory, can't manage to get many hits
that are not about memory-locking)
- "hotkeys" it would be nice to be able to control
So, any input welcome...
--
Helge Jensen
mailto:helge.jensen@slog.dk
sip:helge.jensen@slog.dk
-=> Sebastian cover-music: http://ungdomshus.nu <=- Tag: passthru driver Tag: 106585
PIM Notifications
Hello all,
This is just a repost of a question I posted earlier. If anyone can
help me, I would be very grateful.
I am registering for notifications basically by the example in the
Pocket PC 5.0 help file. The code goes as follows:
void SetupPIMNotifications(void)
{
HRESULT hr = E_FAIL;
hr = SubscribeToNotifications(olFolderCalendar,
PIMFOLDERNOTIFICATION_REMOTE);
hr = SubscribeToNotifications(olFolderContacts,
PIMFOLDERNOTIFICATION_REMOTE);
hr = SubscribeToNotifications(olFolderTasks,
PIMFOLDERNOTIFICATION_REMOTE);
}
HRESULT SubscribeToNotifications(int olItemType, uint
uiNotificationsType)
{
HRESULT hr = 0;
IFolder *pFolder = NULL;
IItem *pItem = NULL;
CEPROPVAL propval = {0};
// Parameter check
if(m_polApp2 == NULL)
{
hr = -1;
goto Error;
}
if(!uiNotificationsType)
{
if(FAILED(E_INVALIDARG))
{
hr = (E_INVALIDARG);
goto Error;
}
}
// Get the folder for the item type.
hr = m_polApp2->GetDefaultFolder(olItemType, &pFolder);
if(FAILED(hr))
{
hr = (hr);
goto Error;
}
if(!(NULL != pFolder))
{
hr = (E_FAIL);
goto Error;
}
hr = pFolder->QueryInterface(IID_IItem, (LPVOID*)&pItem);
if(FAILED(hr))
{
hr = (hr);
goto Error;
}
if(!(NULL != pItem))
{
hr = (E_FAIL);
goto Error;
}
// Set the props on the folder.
propval.propid = PIMPR_FOLDERNOTIFICATIONS;
propval.val.ulVal = uiNotificationsType;
hr = pItem->SetProps(0, 1, &propval);
if(FAILED(hr))
{
hr = (hr);
goto Error;
}
Error:
if (pItem != NULL)
{
pItem->Release();
pItem = NULL;
}
if (pFolder != NULL)
{
pFolder->Release();
pFolder = NULL;
}
return hr;
}
After these are set up, I put in a check in my windows procedure to see
if a PIM item was created, changed, or deleted from a remote process,
not a local one.
I am currently running an application that creates a new thread and
that thread creates/changes/deletes the PIM items.
My question is when this thread creates/changes/deletes a PIM items,
how come that message gets passed to my windows procedure as a remote
change and not a local change? Don't threads have the same Process ID
as the calling process, so it should be considered basically the same
process? Also, is there a way to determine the process that changed
the PIM items, if any?
Thank you all for all of your time.
Matt Tag: passthru driver Tag: 106583
WM2005 Power Management issue/BUG???
Hi
I am porting an application from PPC2003 to WM2005 devices. These are a Qtek
XDA platform and an XDA EXEC platform.
I am monitoring the Power manager events and continuously get
PBT_POWERSTATUSCHANGE notifications, to such a degree that the platform
operation is slowed significantly.
Basically, the steps i go thru are
// Recieve notifications from the power manager
msgqOpt.dwSize = sizeof(MSGQUEUEOPTIONS);
msgqOpt.dwFlags = MSGQUEUE_ALLOW_BROKEN;
msgqOpt.dwMaxMessages = 5;
msgqOpt.cbMaxMessage = sizeof(POWER_BROADCAST) + MAX_PATH;
msgqOpt.bReadAccess = TRUE;
hMsgQ = CreateMsgQueue(TEXT("messageQ"), &msgqOpt);
hPowerThread = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)powerThread,
hInstance, 0, 0);
HANDLE hPwrNoti = RequestPowerNotifications(hMsgQ, POWER_NOTIFY_ALL);
and in my thread
while (TRUE)
{
dwRet = WaitForSingleObject(hMsgQ, INFINITE);
bRet = ReadMsgQueue(hMsgQ, &PwrInfo, sizeof(PwrInfo), &dwRead,
INFINITE, &dwFlags);
// continuous PBT_POWERSTATUSCHANGE seen here
}
On the PPC2003 platforms I do not have this problem.
Any ideas.
Many thanks. Tag: passthru driver Tag: 106578
Clock Configuration Service Provider - CPF
Dear list,
I am currently trying to set the Time Zone on a PocketPC 2003 device. To do
this I am using a Cab Provisioning File (CPF) and the Clock Configuration
Service Provider -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_wce51grfclockcspozup.asp
The xml in my CPF looks like this -
<wap-provisioningdoc>
<characteristic type="Clock">
<parm name="TimeZone" value="4"/>
</characteristic>
</wap-provisioningdoc>
But when I run this it does not change the Time Zone on my device?
Any ideas?
Best Regards,
David Ross Tag: passthru driver Tag: 106572
DrawIcon on VGA
Hello!
I have a small window that is of size 16x16 px. I also have
an icon resource with two sizes: 16x16 and 32x32. On non-VGA devices,
when I use DrawIcon() the 16x16 icon gets drawn and everything look good.
However, as you already know, on VGA devices, WinCE resizes this window
to real 32x32 pixels, and also resizes the icon, so it look pixelated.
Is there a way I could draw 32x32 icon in my 16x16 (physically 32x32)
window?
Greetings,
Esad Tag: passthru driver Tag: 106571
cabwiz question
Is it possible to execute a certain file/process directly from the cab file
once it has finished installing?
tia
Rob Tag: passthru driver Tag: 106569
Hardware button events
Hi all,
I have a stopwatch project in VS2003 targeting a Pocket PC 2003 device
(which has cf 1.0 SP3 in ROM)
Is there any way I can utilise the hardware buttons on the device for user
input?
I know this has been asked before, and I do apologise, however, I've googled
extensively, but can only find native code or new examples for the v2.0
framework (which presumably need VS2005??)
What is the easiest way for me to achieve this?
Ideally I would like the user to be able to choose a key to use also.
Regards
Neil. Tag: passthru driver Tag: 106563
install sdk for mobile 5.0
Hi,
i downloaded the sdk for mobile 5.0
i try to install, but it says i had to install visual studio
i use microsoft embedded vc 4
can i use it without vs.net? Tag: passthru driver Tag: 106562
Visual Studio.net and unumanaged c++
Hi!
Is it possible to "replace" eVC4++ with Visual Studio 2003 or 2005,
meaning to develop/deploy/test unmanaged C++ code using the Pocket PC
2003 SDK? Could project/workspaced be easily converted?
Greetings,
Esad Tag: passthru driver Tag: 106561
How to program "set as Today Background"
Hello, Everybody~
I have made the "handwrighting memo" application.
This application can user memo(JPG fromat) set as TodayBackground in
WM 2003.
But this application can't set as Today Background in WM5.0
My code is below..
lRet = RegOpenKeyEx(HKEY_CURRENT_USER,
_T("Software\\Microsoft\\Today"), 0, 0,
&crk.m_hKey);
if(ERROR_SUCCESS == lRet)
{
crk.SetValue(_T("\\windows\\tdycust.jpg"), _T("WallFile"));
crk.SetValue( _T("MY"), _T("Wall"));
crk.SetValue( _T("tdycust.jpg"), _T("Watermark") );, _T("DPI"));
RegCloseKey(crk.m_hKey);
::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0); Tag: passthru driver Tag: 106559
I am having hardtime loading passthru driver on WM 5.0 emulator and XV 6700
device if anybody already got success please can you tell us steps.