summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/windows/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/windows/os.h')
-rw-r--r--src/pkg/runtime/windows/os.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pkg/runtime/windows/os.h b/src/pkg/runtime/windows/os.h
new file mode 100644
index 000000000..98876c888
--- /dev/null
+++ b/src/pkg/runtime/windows/os.h
@@ -0,0 +1,23 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// The following function allows one to dynamically
+// resolve DLL function names.
+// The arguments are strings.
+void *get_proc_addr(void *library, void *name);
+
+// Call a Windows function with stdcall conventions.
+void *stdcall(void *fn, ...);
+void *stdcall_raw(void *fn, ...);
+
+extern void *VirtualAlloc;
+extern void *LoadLibraryEx;
+extern void *GetProcAddress;
+extern void *GetLastError;
+
+#define goargs windows_goargs
+void windows_goargs(void);
+
+// Get start address of symbol data in memory.
+void *get_symdat_addr(void);