Beispiel #1
0
        /// <summary>
        /// Get the temporary directory provided by the system.
        /// WARNING: In general, you should use the temp directory variants below instead
        /// of this function. Those variants will ensure that the proper permissions are
        /// set so that other users on the system can't edit them while they're open
        /// (which could lead to security issues).
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_file_util_capi.h">cef/include/capi/cef_file_util_capi.h</see>.
        /// </remarks>
        public static bool GetTempDirectory(string tempDir)
        {
            var call = new CfxRuntimeGetTempDirectoryRemoteCall();

            call.RequestExecution();
            tempDir = call.tempDir;
            return(call.__retval);
        }
Beispiel #2
0
        /// <summary>
        /// Get the temporary directory provided by the system.
        ///
        /// WARNING: In general, you should use the temp directory variants below instead
        /// of this function. Those variants will ensure that the proper permissions are
        /// set so that other users on the system can't edit them while they're open
        /// (which could lead to security issues).
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_file_util_capi.h">cef/include/capi/cef_file_util_capi.h</see>.
        /// </remarks>
        public static bool GetTempDirectory(string tempDir)
        {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call       = new CfxRuntimeGetTempDirectoryRemoteCall();

            call.RequestExecution(connection);
            tempDir = call.tempDir;
            return(call.__retval);
        }