/* $Id: VBoxService.h 12723 2008-09-25 12:10:33Z vboxsync $ */ /** @file * VBoxService - Guest Additions Service */ /* * Copyright (C) 2006-2007 Sun Microsystems, Inc. * * Sun Microsystems, Inc. confidential * All rights reserved */ #ifndef ___VBOXSERVICE_H #define ___VBOXSERVICE_H #include #include #include #include /* Get rid of this - use unicode only later! */ #include #include #include #include #include #include #include #include #include #include #include /* The environment information for services. */ typedef struct _VBOXSERVICEENV { HINSTANCE hInstance; HANDLE hDriver; HANDLE hStopEvent; } VBOXSERVICEENV; /* The service initialization info and runtime variables. */ typedef struct _VBOXSERVICEINFO { char *pszName; int (* pfnInit) (const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread); unsigned (__stdcall * pfnThread) (void *pInstance); void (* pfnDestroy) (const VBOXSERVICEENV *pEnv, void *pInstance); /* Variables. */ HANDLE hThread; void *pInstance; bool fStarted; } VBOXSERVICEINFO; extern HWND gToolWindow; #endif /* !___VBOXSERVICE_H */