VirtualBox

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

最後變更 在這個檔案從12723是 12723,由 vboxsync 提交於 16 年 前

VBoxService: Added some Assert(), fixed return value of service control handler, cosmetics.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.3 KB
 
1/* $Id: VBoxService.h 12723 2008-09-25 12:10:33Z 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/assert.h>
27#include <iprt/initterm.h>
28#include <iprt/string.h>
29#include <iprt/log.h>
30
31#include <VBox/version.h>
32#include <VBox/VBoxGuest.h>
33#include <VBox/Log.h>
34
35/* The environment information for services. */
36typedef struct _VBOXSERVICEENV
37{
38 HINSTANCE hInstance;
39 HANDLE hDriver;
40 HANDLE hStopEvent;
41} VBOXSERVICEENV;
42
43/* The service initialization info and runtime variables. */
44typedef struct _VBOXSERVICEINFO
45{
46 char *pszName;
47 int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread);
48 unsigned (__stdcall * pfnThread) (void *pInstance);
49 void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance);
50
51 /* Variables. */
52 HANDLE hThread;
53 void *pInstance;
54 bool fStarted;
55
56} VBOXSERVICEINFO;
57
58
59extern HWND gToolWindow;
60
61#endif /* !___VBOXSERVICE_H */
62
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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