Commit Graph

32 Commits

Author SHA1 Message Date
David Anderson 61d6d9a20a client: don't use estimated fraction done until 1 minute has elapsed 2015-08-20 15:59:18 -07:00
Rom Walton cb6c328151 VBOX: Make the vboxmanage interface work on Windows again.
VBOX: Make the service install scenario work again.
2014-11-23 23:22:57 -05:00
Rom Walton 0bd6fa7c8a LIB: Remove string type conversion naming conflict with the ATL framework. 2014-11-18 16:35:47 -05:00
Rom Walton 1bbc5e96e2 client & MGR: On Windows, handle expansion of environment variables in the registry value that stores DATADIR. 2014-05-06 11:28:47 -04:00
Rom Walton afb6dcc6f3 MGR & Client: Massive code clean-up. Remove as much of the LoadLibrary/GetProcAddress stuff as we can under VS 2012. 2014-03-06 18:27:54 -05:00
Rom Walton b9f8bea665 client: Give boinc_master full control of any process spawned using the service token created by the client for boinc_project.
This will allow the core client to kill VirtualBox VM's launched indirectly by vboxwrapper.  Vboxwrapper launches vboxsvc.exe which launches vboxheadless.exe.  This should also take care of the core client being able to kill child processes of the regular wrapper as well.  I don't know the full scope of this type of issue?  Maybe the default ACLs for a process changed within the last couple of versions of Windows.
2013-11-14 23:26:06 -05:00
Rom Walton f44c260e67 lib: A little code cleanup missed from the previous commit 2013-09-20 14:49:07 -04:00
Rom Walton 8428f942de lib: On Windows, if the registry key that defines where the data directory is missing, check to see if the default directory exists anyway. If the directory exists change the current working directory over to it. 2013-09-20 14:46:26 -04:00
David Anderson 229be73d2b - client: check return value of FormatMessageW()
so we don't print garbage
2013-04-11 01:22:43 -07:00
Rom Walton c448732249 lib: Only process FormatMessage output if the function succeeds. The CC calls windows_format_error_string() for all non-zero returns. 2013-03-05 14:17:54 +01:00
Rom Walton 186beb241c LIB: Call FormatMessageW directly and skip an extra string encoding conversion step. 2013-03-04 17:39:24 +01:00
Rom Walton 076858a729 LIB: Standardize on using windows_format_error_string and drop windows_error_string.
* Move the windows_format_error_string function to win_util.cpp, .h instead of it being scattered between util.h and str_util.cpp.
* Convert the Windows error string into UTF8 before allowing it to be used by the caller
* Remove windows_error_string from library
2013-03-04 17:39:24 +01:00
David Anderson 53782b7de4 - lib: switch include order to the way it was (general to specific).
Should fix MinGW compile


svn path=/trunk/boinc/; revision=26008
2012-08-11 05:47:18 +00:00
David Anderson 2e71ade9c5 Win compile fixes
svn path=/trunk/boinc/; revision=25937
2012-08-01 21:02:54 +00:00
David Anderson 405f567c81 - code cleanup: in foo.cpp, include foo.h first
svn path=/trunk/boinc/; revision=25933
2012-08-01 20:04:05 +00:00
David Anderson ac67e5c5ee - code shuffle
svn path=/trunk/boinc/; revision=24121
2011-09-02 18:32:32 +00:00
David Anderson cf9b7ef4a2 - client: make "wait 30 sec after exclusive app exits" apply to network too
- client: fix bug in "wait 30 sec after exclusive app exits" logic
	- client: fix compile warning and possible bug in is_remote_desktop()
	- win: remove wrappture_example from solution
		(until Hubzereo guys get their win lib working)

svn path=/trunk/boinc/; revision=23077
2011-02-21 00:09:18 +00:00
Rom Walton e8fc714964 - client: Fast User Switching does not change the session protocol
to RDP when the active session is put into the background and
        a new one is brought into the foreground.  It appears it is safe
        to use the connected state in addition to the protocol
        to detect when the session is no longer capable of processing
        GPU work
        
    lib/
        win_util.cpp

svn path=/trunk/boinc/; revision=23068
2011-02-18 20:32:43 +00:00
David Anderson eeab2aee92 - simulator work
- fix some indentation

svn path=/trunk/boinc/; revision=22891
2011-01-07 20:23:22 +00:00
Rom Walton 9cb3e6ffc7 - client & lib: bring header inclusion up-to-date for the CC to begin
hunting down a memory leak.
        
    client/
        <Various Files>
    lib/
        <Various Files>

svn path=/trunk/boinc/; revision=21457
2010-05-11 19:10:29 +00:00
Rom Walton ad60b45f72 - lib: Don't allow the diagnostics threads to be suspended, if a crash happens within
the remaining thread the process will deadlock.

    lib/
        diagnostics.h
        diagnostics_win.cpp
        win_util.cpp

svn path=/trunk/boinc/; revision=20198
2010-01-19 17:22:46 +00:00
David Anderson d5a8f6f1e1 - API: add boinc_init_parallel().
This is like boinc_init() but for multithread apps.
    Unlike boinc_init(), it suspends/resumes all threads in the app,
    not just one.
    In Unix, this is done by forking,
    and having the parent process handle suspend/resume messages
    and suspend/resume the child using signals
    On Win, there's some nasty code that enumerates all
    threads in the whole system, and suspends/resumes
    those in a particular process.


svn path=/trunk/boinc/; revision=20054
2010-01-01 02:50:56 +00:00
Rom Walton 2d25b6698d - Cleanup various warnings
- WINSCR: Implement new configuration dialog with new parameters
    - WINSCR: Remove crufty code
    - WINSCR: Update copyrights in resource files
    
    client/
        app.cpp
    clientscr/
        boinc_ss.h
        boinc_ss.rc
        boinc_ss_opengl.h
        boinc_ss_opengl.rc
    clientscr/
        screensaver.cpp, .h
        screensaver_win.cpp, .h
    lib/
        common_defs.h
        crypt.cpp
        idlemon_win.cpp
        win_util.cpp
    samples/worker/
        worker.cpp
    win_build/
        boinc_ss.vcproj
        multi_thread.vcproj
        sleeper.vcproj
        ss_app.vcproj
        uc2_graphics.vcproj

svn path=/trunk/boinc/; revision=19923
2009-12-16 19:55:09 +00:00
Rom Walton ada6e10461 - client: Use the ANSI version of WTSQuerySessionInformation to determine
is Remote Desktop is in use.
        
    lib/
        coproc.cpp

svn path=/trunk/boinc/; revision=19347
2009-10-20 14:51:20 +00:00
Rom Walton 265de0b15f Quick Updates
svn path=/trunk/boinc/; revision=19299
2009-10-13 22:13:27 +00:00
Rom Walton 2a0dbe4e74 - LIB: Make the is_remote_desktop compilable for all VS versions
and SKUs.
        
    lib/
        win_util.cpp, .h

svn path=/trunk/boinc/; revision=19296
2009-10-13 18:12:33 +00:00
Rom Walton bb2d95953c - lib: revert previous commit, things in lib end up being linked
into project applications, projects may want to continue
        supporting Win9x.
        
    lib/
        win_util.cpp, .h

svn path=/trunk/boinc/; revision=18718
2009-07-25 03:51:18 +00:00
Rom Walton dca67408fd - lib: more code cleanup
lib/
        win_util.cpp, .h

svn path=/trunk/boinc/; revision=18717
2009-07-25 02:27:42 +00:00
David Anderson 114ba8111d compile fixes
svn path=/trunk/boinc/; revision=18589
2009-07-08 22:49:30 +00:00
David Anderson 43231a8dbb svn path=/trunk/boinc/; revision=18588 2009-07-08 19:33:27 +00:00
Rom Walton 28c72cab79 - WIN: First pass through the code to fix compliation errors when
building in a Unicode enabled environment.
        
        NOTE: For files that are shared between the core client and
          the manager, it was simpliar to just call the ANSI versions
          of the specific Windows API functions then to monkey with
          all of the string handling code and convert between ANSI
          and UCS-2 strings.  CreateFile becomes CreateFileA instead
          of the default of CreateFileW.
          
        Down to 11 compile time errors from over 100.

    clientgui/
        BOINCBaseFrame.cpp
        BOINCTaskBar.cpp
        browser.cpp
        browser.h
        sg_StatImageLoader.cpp
    lib/
        boinc_win.h
        diagnostics_win.cpp
        filesys.cpp
        gui_rpc_client_ops.cpp
        proc_control.cpp
        stackwalker_imports.h
        stackwalker_win.cpp
        str_util.cpp
        util.cpp
        win_util.cpp, .h

svn path=/trunk/boinc/; revision=17859
2009-04-23 03:40:49 +00:00
David Anderson 98cfb8d3b0 - rename .C files to .cpp so that Doxygen will work
svn path=/trunk/boinc/; revision=16069
2008-09-26 18:20:24 +00:00