Allow 32-bit linking
Win32 apis are __stdcall
This commit is contained in:
parent
0b9bebd97e
commit
4a3306b479
|
@ -4,13 +4,13 @@ namespace Dino {
|
|||
|
||||
public class Util {
|
||||
#if _WIN32
|
||||
[CCode (cname = "ShellExecuteA")]
|
||||
[CCode (cname = "ShellExecuteA", cheader_filename = "windows.h")]
|
||||
private static extern int ShellExecuteA(int* hwnd, string operation, string file, string parameters, string directory, int showCmd);
|
||||
|
||||
[CCode (cname = "CoInitialize")]
|
||||
[CCode (cname = "CoInitialize", cheader_filename = "windows.h")]
|
||||
private static extern int CoInitialize(void* reserved);
|
||||
|
||||
[CCode (cname = "CoUninitialize")]
|
||||
[CCode (cname = "CoUninitialize", cheader_filename = "windows.h")]
|
||||
private static extern void CoUninitialize();
|
||||
|
||||
private static int ShellExecute(string operation, string file) {
|
||||
|
|
Loading…
Reference in a new issue