日期:2014-05-18 浏览次数:21403 次
public delegate int FARPROC();
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct HINSTANCE__ {
    
    /// int
    public int unused;
}
public partial class NativeMethods {
    
    /// Return Type: HMODULE->HINSTANCE->HINSTANCE__*
    ///lpFileName: LPCTSTR->LPCWSTR->WCHAR*
    [System.Runtime.InteropServices.DllImportAttribute("kernel32.dll", EntryPoint="LoadLibraryW")]
public static extern  System.IntPtr LoadLibraryW([System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPTStr)] string lpFileName) ;
    
    /// Return Type: FARPROC
    ///hModule: HMODULE->HINSTANCE->HINSTANCE__*
    ///lpProcName: LPCSTR->CHAR*
    [System.Runtime.InteropServices.DllImportAttribute("kernel32.dll", EntryPoint="GetProcAddress")]
public static extern  FARPROC GetProcAddress([System.Runtime.InteropServices.InAttribute()] System.IntPtr hModule, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string lpProcName) ;
}