// TODO Add support for the logging API.

        //public int nabtoRegisterLogCallback(NabtoLogCallbackFunc callback)
        //{
        //    return Win32NativeMethods.nabtoRegisterLogCallback(callback);
        //}

        //public int nabtoRegisterLogCallback(IntPtr callback)
        //{
        //    return Win32NativeMethods.nabtoRegisterLogCallback(callback);
        //}

        #endregion

        #region Query

        public int nabtoGetProtocolPrefixes(out string[] prefixes)
        {
            IntPtr arrayBase;
            int    arrayLength;

            var status = Win32NativeMethods.nabtoGetProtocolPrefixes(out arrayBase, out arrayLength);

            if (status == NABTO_OK)
            {
                prefixes = MoveStringArray(arrayBase, arrayLength);
            }
            else
            {
                prefixes = null;
            }

            return(status);
        }