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 // Set context to 123456 to test issue #25660.
27 MOVL ·cRegisterServiceCtrlHandlerExW(SB), AX
33 MOVL AX, ·ssHandle(SB)
35 MOVL ·goWaitsH(SB), AX
37 MOVL ·cSetEvent(SB), AX
46 MOVL ·cWaitForSingleObject(SB), AX
63 // I do not know why, but this seems to be the only way to call
64 // ctlHandlerProc on Windows 7.
66 // func servicectlhandler(ctl uint32, evtype uint32, evdata uintptr, context uintptr) uintptr {
67 TEXT ·servicectlhandler(SB),7,$0
68 MOVL ·ctlHandlerExProc(SB), CX