/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/tools/GSDumpGUI/Library/NativeMethods.cs
ViewVC logotype

Annotation of /branch/r3113_0.9.7_beta/tools/GSDumpGUI/Library/NativeMethods.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (hide annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (10 years, 10 months ago) by william
File size: 1412 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 william 31 using System;
2     using System.Collections.Generic;
3     using System.Text;
4     using System.Security;
5     using System.Runtime.InteropServices;
6    
7     namespace GSDumpGUI
8     {
9     static public class NativeMethods
10     {
11     [SuppressUnmanagedCodeSecurityAttribute]
12     [DllImport("kernel32")]
13     public extern static IntPtr LoadLibrary(string lpLibFileName);
14    
15     [SuppressUnmanagedCodeSecurityAttribute]
16     [DllImport("kernel32")]
17     public extern static bool FreeLibrary(IntPtr hLibModule);
18    
19     [SuppressUnmanagedCodeSecurityAttribute]
20     [DllImport("kernel32", CharSet = CharSet.Ansi)]
21     public extern static IntPtr GetProcAddress(IntPtr hModule, string lpProcName);
22    
23     [SuppressUnmanagedCodeSecurityAttribute]
24     [DllImport("kernel32", CharSet = CharSet.Ansi)]
25     public extern static int SetErrorMode(int Value);
26    
27     [SuppressUnmanagedCodeSecurityAttribute]
28     [DllImport("kernel32", CharSet = CharSet.Ansi)]
29     public extern static int GetLastError();
30    
31     [SuppressUnmanagedCodeSecurityAttribute]
32     [DllImport("user32", CharSet = CharSet.Ansi)]
33     public extern static short GetAsyncKeyState(int key);
34    
35     [SuppressUnmanagedCodeSecurityAttribute]
36     [DllImport("user32", CharSet = CharSet.Ansi)]
37     public extern static int SetClassLong(IntPtr HWND, int index, long newlong);
38     }
39     }

  ViewVC Help
Powered by ViewVC 1.1.22