-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWindowsService.bi
More file actions
41 lines (34 loc) · 1.77 KB
/
WindowsService.bi
File metadata and controls
41 lines (34 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef WINDOWSSERVICE_BI
#define WINDOWSSERVICE_BI
#ifndef unicode
#define unicode
#endif
#include once "windows.bi"
#include once "Bot.bi"
#include once "MainLoop.bi"
Type ServiceContext
Dim ServiceStatusHandle As SERVICE_STATUS_HANDLE
Dim ServiceStatus As SERVICE_STATUS
Dim ServiceCheckPoint As DWORD
Dim Bot As IrcBot
End Type
Declare Sub ReportSvcStatus( _
ByVal lpContext As ServiceContext Ptr, _
ByVal dwCurrentState As DWORD, _
ByVal dwWin32ExitCode As DWORD, _
ByVal dwWaitHint As DWORD _
)
Declare Sub SvcMain( _
ByVal dwNumServicesArgs As DWORD, _
ByVal lpServiceArgVectors As LPWSTR Ptr _
)
Declare Function SvcCtrlHandlerEx( _
ByVal dwCtrl As DWORD, _
ByVal dwEventType As DWORD, _
ByVal lpEventData As LPVOID, _
ByVal lpContext As LPVOID _
)As DWORD
Declare Function ServiceProc( _
ByVal lpParam As LPVOID _
)As DWORD
#endif