OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 extern void *runtime·LoadLibraryEx; | 5 extern void *runtime·LoadLibraryEx; |
6 extern void *runtime·GetProcAddress; | 6 extern void *runtime·GetProcAddress; |
| 7 extern void *runtime·GetLastError; |
7 | 8 |
8 #define runtime·goargs runtime·windows_goargs | 9 #define runtime·goargs runtime·windows_goargs |
9 void runtime·windows_goargs(void); | 10 void runtime·windows_goargs(void); |
10 | 11 |
11 // Get start address of symbol data in memory. | 12 // Get start address of symbol data in memory. |
12 void *runtime·get_symdat_addr(void); | 13 void *runtime·get_symdat_addr(void); |
13 | 14 |
14 // Call a Windows function with stdcall conventions, | 15 // Call a Windows function with stdcall conventions, |
15 // and switch to os stack during the call. | 16 // and switch to os stack during the call. |
16 void *runtime·stdcall_raw(void *fn, int32 count, uintptr *args); | 17 void *runtime·stdcall_raw(void *fn, int32 count, uintptr *args); |
(...skipping 12 matching lines...) Expand all Loading... |
29 struct StdcallParams | 30 struct StdcallParams |
30 { | 31 { |
31 void *fn; | 32 void *fn; |
32 uintptr args[12]; | 33 uintptr args[12]; |
33 int32 n; | 34 int32 n; |
34 uintptr r; | 35 uintptr r; |
35 uintptr err; | 36 uintptr err; |
36 }; | 37 }; |
37 | 38 |
38 void runtime·syscall(StdcallParams *p); | 39 void runtime·syscall(StdcallParams *p); |
OLD | NEW |