1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // func servicemain(argc uint32, argv **uint16)
8 TEXT ·servicemain(SB),7,$0
23 MOVL $·servicectlhandler(SB), AX
26 MOVL ·cRegisterServiceCtrlHandlerExW(SB), AX
32 MOVL AX, ·ssHandle(SB)
34 MOVL ·goWaitsH(SB), AX
36 MOVL ·cSetEvent(SB), AX
45 MOVL ·cWaitForSingleObject(SB), AX
62 // I do not know why, but this seems to be the only way to call
63 // ctlHandlerProc on Windows 7.
65 // func servicectlhandler(ctl uint32, evtype uint32, evdata uintptr, context uintptr) uintptr {
66 TEXT ·servicectlhandler(SB),7,$0
67 MOVL ·ctlHandlerExProc(SB), CX