Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

os_msw Class Reference

Static-only class for MSW specific functions. More...

#include <os_msw.h>

List of all members.


Static Public Methods

wxString  get_pluckerhome_from_registry ()
  Looks up the value of pluckerhome from the machnine's registry.

int  kill_properly (long pid, wxSignal sig, wxKillError *krc)
  Kill a process properly on MSW.


Detailed Description

Static-only class for MSW specific functions.

Member Function Documentation

wxString os_msw::get_pluckerhome_from_registry   [static]
 

Looks up the value of pluckerhome from the machnine's registry.

return The value of pluckerhome.

int os_msw::kill_properly long    pid,
wxSignal    sig,
wxKillError *    krc
[static]
 

Kill a process properly on MSW.

Process killing is very poor in the design of the Microsoft OS's. This function will do the best process killing that is possible on this platform. Under NT variant OS's (NT, 2000, XP, etc) on a wxSIGKILL signal, it will go inside the process and kill it from within, instead of using the TerminateProcess() API call which will not detach DLLs properly. On older MSW version's, 95,98, Me, the wxSIGKILL will use the crappy TerminateProcess() API call, since that is all that is possible on that OS.

Parameters:
pid  The pid to process to be killed.
sig  The signal it should be killed with (wxSIGKILL, wxSIGTERM and wxSIGNONE, are the only MSW relevant ones as of wx2.3.3--Rest are just remapped to wxSIGTERM). wxSIGTERM only works on processes that have a window.
krc  The kill error returned.
option  Options: any or none of optionOS_MSW_PROCESS_KILL_CHILDREN = 1, optionOS_MSW_PROCESS_WAIT_FOR_NAMED_APPLICATION_TERMINATION
Returns :
0 on success.