github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/osext/winsvc/svc/sys.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  // copied from pkg/runtime
     6  typedef	unsigned int	uint32;
     7  typedef	unsigned long long int	uint64;
     8  #ifdef _64BIT
     9  typedef	uint64		uintptr;
    10  #else
    11  typedef	uint32		uintptr;
    12  #endif
    13  
    14  // from sys_386.s or sys_amd64.s
    15  void ·servicemain(void);
    16  
    17  void
    18  ·getServiceMain(uintptr *r)
    19  {
    20  	*r = (uintptr)·servicemain;
    21  }