Click here to Skip to main content
Click here to Skip to main content

Enable floating SIP control in IPAQ/Windows CE .NET

, 10 Dec 2002 CPOL
Rate this:
Please Sign up or sign in to vote.
Enable floating SIP control in iPAQ/Windows CE .NET devices.


This article give you the tips on how to have a floating SIP control in your Pocket PC/Windows CE .NET device. At the same time, you have learn on how to do a soft reset (without pressing any button) on your device.


You need to have some basic idea on how to access the registry as well as changing the respective value. The key value in this article is changing the registry value in order to create a floating SIP control.

Using the code

To implement this is quite simple, all you need is to include the soft reset API declare from winioctl.h as shown below, so that you can call the reset function right after changing the registry value.

// ------------------------------------------------------------
#include <winioctl.h>
                            METHOD_BUFFERED, FILE_ANY_ACCESS)

extern "C" __declspec(dllimport) BOOL KernelIoControl(
    DWORD dwIoControlCode, 
    LPVOID lpInBuf, 
    DWORD nInBufSize, 
    LPVOID lpOutBuf, 
    DWORD nOutBufSize, 
    LPDWORD lpBytesReturned);
// ------------------------------------------------------------

Once you have declared the above API, then you are free to execute the declare function as the code show below:

// Soft reset the device
KernelIoControl(IOCTL_HAL_REBOOT, NULL, 0, NULL, 0, NULL);

Next is the registry location for SIP style where the OS reference to. This will be the key value before the OS proceeds to create the SIP control. Therefore, the SIP style is controlled by the following registry key:

  • DragStyle = 0, means the SIP is non-movable.
  • DragStyle = 1, means the SIP is movable.

I have simplified the registry access by putting all the messy code into the few functions defined under the RegEdit.h and RegEdit.cpp. Hence, all you need is to call the SaveDWORD with the correct value when you tend to switch from non-movable to movable SIP control or vice-versa.

// Enable the movable SIP control
SaveDWORD(HKEY_CURRENT_USER, TEXT("ControlPanel\\Sip"), 
                                   TEXT("DragStyle"), 1);

// Disable the movable SIP control
SaveDWORD(HKEY_CURRENT_USER, TEXT("ControlPanel\\Sip"), 
                                   TEXT("DragStyle"), 0);

A soft reset is required for the changes made to take effect. Hence, after the above code is executed, the device is going to reset with the discuss reset function.

Points of interest

Feel free to explorer more on the Pocket PC registry setting and you will get more fun with it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
Malaysia Malaysia
Hackzai was graduated from Double-E, and being certified as MCSD (VS6) at spring 2003. But move forward with ASP.NET, VB.NET, C#, Silverlight, LINQ, XML

Comments and Discussions

Generalsip sdk solution Pinmemberdan rogy7-Oct-10 5:19 
General[Message Deleted] Pinmemberit.ragester28-Mar-09 6:32 
Questionproblem in porting wince to smdk 2410 board. Pinmemberamiya das30-Mar-08 22:09 
QuestionHow can I disable the SIP in the Telnet client PinmemberFrank C29-Nov-07 9:55 
QuestionHow to disable the SIP? PinmemberLord Sy3-Jan-07 10:54 
QuestionIsn't it much easier... PinmemberFernando A. Gómez F.24-Jul-06 11:53 
GeneralSIP problem PinsussMarten7526-Sep-05 7:41 
GeneralIs SIP standard in WinCE.NET 4.2 Pinsusslinhjob22-Sep-05 8:09 
GeneralProblem displaying Floating SIP correctly PinsussAnonymous3-Aug-05 21:57 
GeneralNetwork PinmemberSMPCHRIS20-Apr-04 22:19 
Generalunresolved external symbol _SipShowIM Pinmemberkarpavel12-Dec-03 21:00 
GeneralRe: unresolved external symbol _SipShowIM PinmemberK-PAX25-Dec-03 1:29 
GeneralRe: unresolved external symbol _SipShowIM PinsussAnonymous25-Dec-03 21:46 
GeneralI have resolved this problem Pinmemberkarpavel25-Dec-03 22:13 
GeneralCool PinmemberConor O'Doherty18-Jul-03 2:59 
QuestionWhat? PinmemberJohn Burton11-Dec-02 1:59 
AnswerRe: What? PinmemberJared Bienz11-Dec-02 5:26 
GeneralRe: What? PinmemberK-PAX11-Dec-02 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150331.1 | Last Updated 11 Dec 2002
Article Copyright 2002 by CT CHANG
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid