Registers the service in the registry.
inline HRESULT RegisterAppId( bool bService = false ) throw( );
Must be true to register as a service.
Returns S_OK on success, or an error HRESULT on failure.