mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-09-09 22:32:57 +02:00
Committed the first revision of the new GSDX Dump Viewer. At the moment it contains the PThreads dll inside the build process and output to the bin directory of the tools directory till I know for sure I can output the exe directly into pcsx2 bin directory. :P Report here or on the issue tracker any bug you find. (in this application) :P git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2652 96395faa-99c1-11dd-bbfe-3dabce05a288
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Security;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace GSDumpGUI
|
|
{
|
|
static public class NativeMethods
|
|
{
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("kernel32")]
|
|
public extern static IntPtr LoadLibrary(string lpLibFileName);
|
|
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("kernel32")]
|
|
public extern static bool FreeLibrary(IntPtr hLibModule);
|
|
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("kernel32", CharSet = CharSet.Ansi)]
|
|
public extern static IntPtr GetProcAddress(IntPtr hModule, string lpProcName);
|
|
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("kernel32", CharSet = CharSet.Ansi)]
|
|
public extern static int SetErrorMode(int Value);
|
|
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("kernel32", CharSet = CharSet.Ansi)]
|
|
public extern static int GetLastError();
|
|
|
|
[SuppressUnmanagedCodeSecurityAttribute]
|
|
[DllImport("user32", CharSet = CharSet.Ansi)]
|
|
public extern static short GetAsyncKeyState(int key);
|
|
}
|
|
}
|