win32.h File Reference

#include <windows.h>
#include <QHash>
#include <QString>

Go to the source code of this file.

Defines

#define WIN32_LEAN_AND_MEAN

Functions

QString win32_program_files_folder ()
QString win32_app_data_folder ()
QString win32_registry_get_key_value (QString keyLocation, QString keyName)
void win32_registry_set_key_value (QString keyLocation, QString keyName, QString keyValue)
void win32_registry_remove_key (QString keyLocation, QString keyName)
QHash< qint64, QString > win32_process_list ()
void win32_end_process_by_filename (QString filename)


Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 20 of file win32.h.


Function Documentation

QString win32_app_data_folder (  ) 

Gets the location of the user's APPDATA% folder.

Definition at line 76 of file win32.cpp.

References win32_get_folder_location().

Referenced by Vidalia::defaultDataDirectory(), and expand_filename().

void win32_end_process_by_filename ( QString  filename  ) 

Close all processes started from the specified filename. Sends WM_QUIT to all top-level windows. Filename should be given in lowercase, and comparison is case insensitive. Note: the MSDN documentation for WM_QUIT states that the message should not be sent by PostMessage(). However, sending WM_CLOSE leaves Firefox running, whereas WM_QUIT seems to work.

Definition at line 193 of file win32.cpp.

References i(), win32_end_process_by_pid(), and win32_process_list().

Referenced by MainWindow::shutdown().

QHash<qint64, QString> win32_process_list (  ) 

Returns a list of all currently active processes, including their pid and exe filename.

Definition at line 218 of file win32.cpp.

Referenced by is_process_running(), MainWindow::onCheckForBrowser(), process_list(), and win32_end_process_by_filename().

QString win32_program_files_folder (  ) 

Gets the location of the user's PROGRAMFILES% folder.

Definition at line 68 of file win32.cpp.

References win32_get_folder_location().

Referenced by expand_filename(), and TorSettings::TorSettings().

QString win32_registry_get_key_value ( QString  keyLocation,
QString  keyName 
)

Returns the value in keyName at keyLocation. Returns an empty QString if the keyName doesn't exist

Definition at line 85 of file win32.cpp.

Referenced by VidaliaSettings::runVidaliaOnBoot().

void win32_registry_remove_key ( QString  keyLocation,
QString  keyName 
)

Removes the key from the registry if it exists

Definition at line 136 of file win32.cpp.

Referenced by VidaliaSettings::setRunVidaliaOnBoot().

void win32_registry_set_key_value ( QString  keyLocation,
QString  keyName,
QString  keyValue 
)

Creates and/or sets the key to the specified value

Definition at line 109 of file win32.cpp.

Referenced by VidaliaSettings::setRunVidaliaOnBoot().


Generated on Tue Jul 7 17:00:56 2009 for Vidalia by  doxygen 1.4.7