精华内容
下载资源
问答
  • kernel32

    2020-12-28 14:35:31
    <div><p>Hello takuya-takeuchi, I reminded you that I needed kernel32.dll when building the project. Where can I get it, please? Thank you.</p><p>该提问来源于开源项目:takuya-takeuchi/...
  • kernel32.rar

    2021-01-29 11:02:39
    kernel32.dll(Python)读取文件
  • import ... //導入方法依賴的package包/類private static Map findProcessPIDs(Kernel32 kernel32) {Map processes = new HashMap();String matlabExe = "matlab.exe";Tlhelp32.PROCESSENTR...

    import com.sun.jna.platform.win32.Kernel32; //導入方法依賴的package包/類

    private static Map findProcessPIDs(Kernel32 kernel32) {

    Map processes = new HashMap();

    String matlabExe = "matlab.exe";

    Tlhelp32.PROCESSENTRY32.ByReference processEntry = new Tlhelp32.PROCESSENTRY32.ByReference();

    // gets all current running processes

    WinNT.HANDLE snapshot = kernel32.CreateToolhelp32Snapshot(Tlhelp32.TH32CS_SNAPPROCESS, new WinDef.DWORD(0));

    if (kernel32.Process32First(snapshot, processEntry)) {

    while (kernel32.Process32Next(snapshot, processEntry)) {

    String exePath = Native.toString(processEntry.szExeFile);

    exePath = exePath.toLowerCase();

    // check if its a matlab process

    if (!exePath.equalsIgnoreCase(matlabExe)) {

    continue;

    }

    WinNT.HANDLE hProcess = kernel32.OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, false,

    processEntry.th32ProcessID.intValue());

    // gets process path

    if (hProcess != null && hProcess.getPointer() != null) {

    char[] filePath = new char[1024];

    Psapi32.INSTANCE.GetModuleFileNameExW(hProcess.getPointer(), null, filePath, 256);

    String processPath = Native.toString(filePath);

    int pid = kernel32.GetProcessId(hProcess);

    processes.put(processPath, pid);

    }

    }

    }

    return processes;

    }

    展开全文
  • kernel32.dll

    2018-12-01 20:28:53
    缺少kernel32.dll引起的问题,本文件包括kernel32.dll和其描述。
  • <div><ul><li>P/Invokes for <code>kernel32!SetHandleInformation</code> and <code>kernel32!GetHandleInformation</code></li><li>HandleFlags enum</li></ul>该提问来源于开源项目:dotnet/pinvoke</p></...
  • kernel32.dll kernel32.dll

    2010-04-26 14:48:14
    kernel32.dll (密码:www.zhaodll.com)
  • Kernel32.Lib

    热门讨论 2015-01-03 11:24:54
    Kernel32.Lib
  • <div><p>Added : - <code>AdvApi32....- <code>Kernel32.GetConsoleWindow - <code>Kernel32.LoadLibrary - <code>Kernel32.FreeLibrary</code></p>该提问来源于开源项目:dotnet/pinvoke</p></div>
  • Add kernel32 functions

    2020-11-26 05:15:32
    <div><p>Added most of kernel32 functions and related structures.</p><p>该提问来源于开源项目:retep998/winapi-rs</p></div>
  • kernel32.lib KernelAPI.dll

    2018-04-09 09:21:47
    kernel32.lib KernelAPI.dll 使用vs,经常出现缺少kernel32.lib的现象。
  • kernel32 ntdll

    2018-04-17 22:09:00
    ntdll中保存了kernel32函数的指针 转载于:https://www.cnblogs.com/yiii/p/8870338.html

    ntdll中保存了kernel32函数的指针

    转载于:https://www.cnblogs.com/yiii/p/8870338.html

    展开全文
  • from ctypes import *from my_debugger_defines import *kernel23 = windll.kernel32class debugger():def __init__(self):passdef load(self,path_to_exe):creation_flags = DEBUG_PROCESSstartupinfo = STARTUPINF...

    from ctypes import *

    from my_debugger_defines import *

    kernel23 = windll.kernel32

    class debugger():

    def __init__(self):

    pass

    def load(self,path_to_exe):

    creation_flags = DEBUG_PROCESS

    startupinfo = STARTUPINFO()

    process_information = PROCESS_INFORMATION()

    startupinfo.dwFlags = 0x1

    startupinfo.wShowWindow = 0x0

    startupinfo.cb = sizeof(startupinfo)

    if kernel32.CreateProcessA(path_to_exe,

    None,

    creation_flags,

    None,

    None,

    byref(startupinfo),

    byref(process_information)):

    print "[*] we have successfully lauched the process!"

    print "[*] pid: %d "%process_information.dwProcessId

    else:

    print "[*] error: 0x%08x."%kernel32.GetLastError()

    附程序,完全按照别人的代码写的啊,为什么就说kernel32没定义呢,第15行,和最后一行

    展开全文
  • KERNEL32.zip

    2012-04-04 14:56:23
    KERNEL32.zip windows dll
  • 方法是GetProductInfo我在单独的项目中尝试此工作:public interface Kernel32 extends Library {public boolean GetProductInfo(int dwOSMajorVersion,int dwOSMinorVersion,int dwSpMajorVersion, i...

    我试图使用WIN32 dll中的方法,但JNA中未包含该方法.

    方法是GetProductInfo

    我在单独的项目中尝试此工作:

    public interface Kernel32 extends Library {

    public boolean GetProductInfo(int dwOSMajorVersion,int dwOSMinorVersion,

    int dwSpMajorVersion, int dwSpMinorVersion, IntByReference pdwReturnedProductType);

    }

    使用..

    Kernel32 lib = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);

    IntByReference dwType = new IntByReference();

    lib.GetProductInfo(6,0,0,0,dwType);

    switch (dwType.getValue()) {

    // Something

    }

    但是我需要使用JNA中实现的其他方法

    import com.sun.jna.platform.win32.Kernel32;

    import com.sun.jna.platform.win32.User32;

    import com.sun.jna.platform.win32.WinBase;

    import com.sun.jna.platform.win32.WinDef;

    import com.sun.jna.platform.win32.WinNT;

    import com.sun.jna.platform.win32.WinUser;

    public interface Kernel32 extends Library {

    Kernel32 INSTANCE = (Kernel32)Native.loadLibrary("kernel32", Kernel32.class);

    // I need to insert this method!!!

    public boolean GetProductInfo(int dwOSMajorVersion,int dwOSMinorVersion,

    int dwSpMajorVersion, int dwSpMinorVersion, IntByReference pdwReturnedProductType);

    // This snippet I think should not Needed,

    //but if I remove this code this methods will not be recognized

    //but if I leave this code, it is not working properly!!!

    public void GetSystemInfo(WinBase.SYSTEM_INFO lpSystemInfo);

    public boolean GetVersionExA(WinNT.OSVERSIONINFOEX lpVersionInfo);

    public boolean GetVersionExA(WinNT.OSVERSIONINFO lpVersionInfo);

    }

    使用代码:

    WinNT.OSVERSIONINFOEX osviex = new WinNT.OSVERSIONINFOEX();

    WinNT.OSVERSIONINFO osvi = new WinNT.OSVERSIONINFO();

    WinBase.SYSTEM_INFO si = new WinBase.SYSTEM_INFO();

    String major = "", sub = "";

    boolean bOsVersionInfoEx = Kernel32.INSTANCE.GetVersionExA(osviex);

    boolean bOsVersionInfo = Kernel32.INSTANCE.GetVersionExA(osvi);

    Kernel32.INSTANCE.GetSystemInfo(si);

    // If I declare newly (the old methods), these will not work fine (Bad result)!!!

    System.out.println("osviex.dwPlatformId.intValue()"+osviex.dwPlatformId.intValue());

    System.out.println("osviex.dwMajorVersion.intValue()"+osviex.dwMajorVersion.intValue());

    System.out.println("osvi.dwPlatformId.intValue()"+osvi.dwPlatformId.intValue());

    System.out.println("osvi.dwMajorVersion.intValue()"+osvi.dwMajorVersion.intValue());

    我需要这种方法的结果!

    IntByReference dwType = new IntByReference();

    Kernel32.INSTANCE.GetProductInfo(6,0,0,0,dwType);

    switch (dwType.getValue()) {

    //... code

    }

    如何将Kernerl32包含新方法(已在JNA中定义-> com.sun.jna.platform.win32.Kernel32)?

    解决方法:

    这是您扩展由JNA平台映射定义的库的方式:

    public interface Kernel32 extends com.sun.jna.platform.win32.Kernel32 {

    Kernel32 INSTANCE = (Kernel32)Native.loadLibrary("kernel32", Kernel32.class, com.sun.jna.win32.W32APIOptions.DEFAULT_OPTIONS);

    boolean GetProductInfo(int dwOSMajorVersion, int dwOSMinorVersion, int dwSpMajorVersion, int dwSpMinorVersion, IntByReference pdwReturnedProductType);

    }

    标签:jna,java,methods,insert,kernel32

    来源: https://codeday.me/bug/20191013/1908056.html

    展开全文
  • <div><p>Firefox on Windows hooks <code>kernel32!BaseThreadInitThunk</code> which prevents the remote thread to start in the target, see ...
  • Monitoring kernel32.dll

    2020-12-26 01:45:33
    <div><p>How create trap on kernel32's functions?</p><p>该提问来源于开源项目:tklengyel/drakvuf</p></div>
  • kernel32.dll IntPtr

    2020-11-04 13:03:59
    [DllImport("kernel32.dll")]引入kernel32.dll动态连接库 private static extern void 函数名(参数,[参数]); 使用该函数
  • I'm trying to use Python's C-Types to call GetModuleHandleA on the kernel32 library. I'd like to get a handle to the library so I can use it to call GetProcAddress for LoadLibraryA. Below is my code.....
  • 方法是GetProductInfo我在单独的项目中尝试此工作:public interface Kernel32 extends Library {public boolean GetProductInfo(int dwOSMajorVersion,int dwOSMinorVersion,int dwSpMajorVersion, i...
  • kernel32.dll打印机所需文件,有的系统不全需要拷贝到system32下
  • KERNEL32 API函数

    2011-12-16 22:30:55
    一个非常全的KERNEL32[1].DLL API函数库文档。
  • KERNEL32KERNEL32 DLL文件修复备份
  • 动态获取kernel32.dll实现无导入表的hello world
  • 记录一次客户服务武器操作失误,客户线上服务器系统是Windows server enterprise 2007(32位),不兼容视频插件Ffmpeg插件,修改系统文件C:\Windows\System32\kernel32.dll为kernel32_1.dll文件名称后,服务器重启未...
  • <div><p>When building kernel32-sys: <pre><code> F:\Rust\bin\cargo.exe build -v Fresh winapi-build v0.1.1 (file:///F:/dev/winapi-rs/lib/kernel32-sys) Compiling kernel32-sys v0.1.4 (file:///F:/dev/...
  • 获取kernel32.dll相关信息,并且保存到txt文本当中,代码比较简单,面向初学者
  • kernel32.dll是电脑系统中动态链接库文件,如果你在运行程序或游戏时,系统出现“找不到或者没有找到kernel32.dll”错误提示信息,那你可在本站下载安装此文件,下载后即可解决。华军软件园免费为您提供,希望能帮到...
  • kernel32改变系统时间

    2012-06-27 10:31:10
    通过调用kernel32API函数,来调整改变PC的系统时间
  • Windows XP/2003 Server 操作系统源代码缺少文件20201202__KERNEL32.DLL.v6.zip

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 22,568
精华内容 9,027
关键字:

kernel32