~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to client/win/win_service.h

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Contributor(s):
2
 
//              Craig Link, Microsoft Corp., Service Sample Template
3
 
//
4
 
 
5
 
#ifndef _WIN_SERVICE_H
6
 
#define _WIN_SERVICE_H
7
 
 
8
 
#if defined(_WIN32) && defined(_CONSOLE)
9
 
 
10
 
#ifdef __cplusplus
11
 
extern "C" {
12
 
#endif
13
 
 
14
 
 
15
 
// internal name of the service
16
 
#define SZSERVICENAME        "BOINC"
17
 
 
18
 
// displayed name of the service
19
 
#define SZSERVICEDISPLAYNAME "BOINC"
20
 
 
21
 
// displayed description of the service
22
 
#define SZSERVICEDESCRIPTION "Berkeley Open Infrastructure for Network Computing"
23
 
 
24
 
// Service Accepted Actions
25
 
#define SERVICE_ACCEPTED_ACTIONS  ( \
26
 
    SERVICE_ACCEPT_STOP | \
27
 
    SERVICE_ACCEPT_PAUSE_CONTINUE | \
28
 
    SERVICE_ACCEPT_SHUTDOWN ) 
29
 
 
30
 
// Service Control Manager Routines
31
 
VOID WINAPI service_main(DWORD dwArgc, LPTSTR *lpszArgv);
32
 
VOID WINAPI service_ctrl(DWORD dwCtrlCode);
33
 
BOOL            ReportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint);
34
 
VOID            LogEventErrorMessage(LPTSTR lpszMsg);
35
 
VOID            LogEventWarningMessage(LPTSTR lpszMsg);
36
 
VOID            LogEventInfoMessage(LPTSTR lpszMsg);
37
 
 
38
 
#ifdef __cplusplus
39
 
}
40
 
#endif
41
 
 
42
 
#endif
43
 
 
44
 
#endif