github.com/nibnait/go-learn@v0.0.0-20220227013611-dfa47ea6d2da/src/pkg/mod/golang.org/x/sys@v0.0.0-20210630005230-0f9fa26af87c/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 }