github.com/gogf/gkafka@v1.0.1-0.20190702070843-033a14468069/third/golang.org/x/sys/windows/svc/go12.c (about) 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. 4 5 // +build windows 6 // +build !go1.3 7 8 // copied from pkg/runtime 9 typedef unsigned int uint32; 10 typedef unsigned long long int uint64; 11 #ifdef _64BIT 12 typedef uint64 uintptr; 13 #else 14 typedef uint32 uintptr; 15 #endif 16 17 // from sys_386.s or sys_amd64.s 18 void ·servicemain(void); 19 20 void 21 ·getServiceMain(uintptr *r) 22 { 23 *r = (uintptr)·servicemain; 24 }