VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxService/VBoxService.h@ 13483

Last change on this file since 13483 was 13462, checked in by vboxsync, 16 years ago

fix headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: VBoxService.h 13462 2008-10-22 06:46:45Z vboxsync $ */
2/** @file
3 * VBoxService - Guest Additions Service
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ___VBOXSERVICE_H
23#define ___VBOXSERVICE_H
24
25#include <winsock2.h>
26#include <ws2tcpip.h>
27
28#include <tchar.h>
29#include <stdio.h> /* Get rid of this - use unicode only later! */
30#include <stdarg.h>
31#include <process.h>
32#include <aclapi.h>
33
34#include <iprt/alloc.h>
35#include <iprt/assert.h>
36#include <iprt/initterm.h>
37#include <iprt/string.h>
38#include <iprt/log.h>
39
40#include <VBox/version.h>
41#include <VBox/VBoxGuest.h>
42#include <VBox/Log.h>
43
44/* The environment information for services. */
45typedef struct _VBOXSERVICEENV
46{
47 HINSTANCE hInstance;
48 HANDLE hDriver;
49 HANDLE hStopEvent;
50} VBOXSERVICEENV;
51
52/* The service initialization info and runtime variables. */
53typedef struct _VBOXSERVICEINFO
54{
55 char *pszName;
56 int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
57 unsigned (__stdcall * pfnThread) (void *pInstance);
58 void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
59
60 /* Variables. */
61 HANDLE hThread;
62 void *pInstance;
63 bool fStarted;
64
65} VBOXSERVICEINFO;
66
67
68extern HWND gToolWindow;
69
70#endif /* !___VBOXSERVICE_H */
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette