コード例 #1
0
        private static void LibraryInit()
        {
            // Load the library.
            DynamicLoader.LoadLibrary(libraryPath);

            // Create a logger with outputs to sys.stderr
            RealVNC.VncSdk.Logger.CreateStderrLogger();

            // Create a file DataStore for storing persistent data for the viewer.
            // Ideally this would be created in a directory that only the viewer
            // user has access to.
            DataStore.CreateFileStore("dataStore.txt");

            // Now initialise the library proper.
            Library.Init();

            if (!string.IsNullOrEmpty(DirectTcpAddOnCode))
            {
                Library.EnableAddOn(DirectTcpAddOnCode);
            }
        }