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
25 MOVL ·cRegisterServiceCtrlHandlerW(SB), AX
31 MOVL AX, ·ssHandle(SB)
33 MOVL ·goWaitsH(SB), AX
35 MOVL ·cSetEvent(SB), AX
44 MOVL ·cWaitForSingleObject(SB), AX
61 // I do not know why, but this seems to be the only way to call
62 // ctlHandlerProc on Windows 7.
64 // func servicectlhandler(ctl uint32) uintptr
65 TEXT ·servicectlhandler(SB),7,$0
66 MOVL ·ctlHandlerProc(SB), CX