gpt4 book ai didi

linux - Linux 上的 GetModuleHandle(NULL)

转载 作者:IT王子 更新时间:2023-10-29 00:51:27 24 4
gpt4 key购买 nike

有没有办法在 Linux 上通过 GetModuleHandle(NULL) 将该句柄传递给 dlsym 3

最佳答案

documentation对于 dlopen(3) 状态:

The function dlopen() loads the dynamic library file named by the null-terminated string filename and returns an opaque "handle" for the dynamic library. If filename is NULL, then the returned handle is for the main program.

因此,您可以使用 dlopen(NULL) 返回的值作为 dlsym()handle 参数。

关于linux - Linux 上的 GetModuleHandle(NULL),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6972211/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com