1 | /* $Id: VBoxService.h 11982 2008-09-02 13:09:44Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxService - Guest Additions Service
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * Sun Microsystems, Inc. confidential
|
---|
10 | * All rights reserved
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef ___VBOXSERVICE_H
|
---|
14 | #define ___VBOXSERVICE_H
|
---|
15 |
|
---|
16 | #include <winsock2.h>
|
---|
17 | #include <ws2tcpip.h>
|
---|
18 |
|
---|
19 | #include <tchar.h>
|
---|
20 | #include <stdio.h> /* Get rid of this - use unicode only later! */
|
---|
21 | #include <stdarg.h>
|
---|
22 | #include <process.h>
|
---|
23 | #include <aclapi.h>
|
---|
24 |
|
---|
25 | #include <iprt/alloc.h>
|
---|
26 | #include <iprt/initterm.h>
|
---|
27 | #include <iprt/string.h>
|
---|
28 | #include <iprt/log.h>
|
---|
29 |
|
---|
30 | #include <VBox/version.h>
|
---|
31 | #include <VBox/VBoxGuest.h>
|
---|
32 | #include <VBox/Log.h>
|
---|
33 |
|
---|
34 | /* The environment information for services. */
|
---|
35 | typedef struct _VBOXSERVICEENV
|
---|
36 | {
|
---|
37 | HINSTANCE hInstance;
|
---|
38 | HANDLE hDriver;
|
---|
39 | HANDLE hStopEvent;
|
---|
40 | } VBOXSERVICEENV;
|
---|
41 |
|
---|
42 | /* The service initialization info and runtime variables. */
|
---|
43 | typedef struct _VBOXSERVICEINFO
|
---|
44 | {
|
---|
45 | char *pszName;
|
---|
46 | int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
|
---|
47 | unsigned (__stdcall * pfnThread) (void *pInstance);
|
---|
48 | void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
|
---|
49 |
|
---|
50 | /* Variables. */
|
---|
51 | HANDLE hThread;
|
---|
52 | void *pInstance;
|
---|
53 | bool fStarted;
|
---|
54 |
|
---|
55 | } VBOXSERVICEINFO;
|
---|
56 |
|
---|
57 |
|
---|
58 | extern HWND gToolWindow;
|
---|
59 |
|
---|
60 | #endif /* !___VBOXSERVICE_H */
|
---|
61 |
|
---|