~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <stdio.h>
26
26
#ifdef RT_OS_WINDOWS
27
27
# include <Windows.h>
28
 
# include <tchar.h>   /**@todo just drop this, this will be compiled as UTF-8/ANSI. */
29
 
# include <process.h> /**@todo what's this here for?  */
 
28
# include <process.h> /* Needed for file version information. */
30
29
#endif
31
30
 
32
31
/**
93
92
 
94
93
#ifdef RT_OS_WINDOWS
95
94
/** The service name (needed for mutex creation on Windows). */
96
 
#define VBOXSERVICE_NAME           L"VBoxService"
 
95
#define VBOXSERVICE_NAME          "VBoxService"
97
96
/** The friendly service name. */
98
 
#define VBOXSERVICE_FRIENDLY_NAME  L"VBoxService"
 
97
#define VBOXSERVICE_FRIENDLY_NAME "VBoxService"
99
98
/** The following constant may be defined by including NtStatus.h. */
100
99
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
101
100
/** Structure for storing the looked up user information. */
102
101
typedef struct
103
102
{
104
 
    TCHAR szUser [_MAX_PATH];
105
 
    TCHAR szAuthenticationPackage [_MAX_PATH];
106
 
    TCHAR szLogonDomain [_MAX_PATH];
 
103
    WCHAR szUser [_MAX_PATH];
 
104
    WCHAR szAuthenticationPackage [_MAX_PATH];
 
105
    WCHAR szLogonDomain [_MAX_PATH];
107
106
} VBOXSERVICEVMINFOUSER, *PVBOXSERVICEVMINFOUSER;
108
107
/** Structure for the file information lookup. */
109
108
typedef struct
110
109
{
111
 
    TCHAR* pszFilePath;
112
 
    TCHAR* pszFileName;
 
110
    char* pszFilePath;
 
111
    char* pszFileName;
113
112
} VBOXSERVICEVMINFOFILE, *PVBOXSERVICEVMINFOFILE;
114
113
/** Function prototypes for dynamic loading. */
115
114
typedef DWORD (WINAPI* fnWTSGetActiveConsoleSessionId)();
133
132
extern VBOXSERVICE g_Clipboard;
134
133
extern VBOXSERVICE g_Control;
135
134
extern VBOXSERVICE g_VMInfo;
 
135
extern VBOXSERVICE g_Exec;
136
136
 
137
137
#ifdef RT_OS_WINDOWS
138
138
extern DWORD g_rcWinService;