SetRegisterStatus
This function can be used to register (automatically) or unregister from the current network.
DWORD SetRegisterStatus(
   DWORD dwStatus
);
Parameters
dwStatus
[in] Sets the network registration state, dwStatus 1 registers to network, 0 unregisters from network.

Return values
Zero indicates success. A negative error number indicates that an error occurred. For additional error information, enable the library debug mode.

Remarks
This is a privileged function. For more information about Smartphone security and privileged APIs, see the "Operating System Security" topic in the Mobile Device Adaptation Kit.
This function is not supported for CDMA.

Requirements
OS Versions: Windows CE 1.0 and later.
Header: dyntapi.h.
Dll Library: dyntapidll.dll.

For the latest DynTAPI version, visit www.teksoftco.com.