Welcome![Sign In][Sign Up]
Location:
Search - GetModuleFileNameEx

Search list

[Process-Threadprocesspathshow

Description: 用OpenProcess()函数将进程打开后,再利用EnumProcessModules()函数枚举该进程的模块,最后利用GetModuleFileNameEx()函数就能取得该进程的路径。-with OpenProcess () function to open the process, Reuse EnumProcessModules () function except to the process modules, Finally GetModuleFileNameEx () function can be achieved in the process paths.
Platform: | Size: 36232 | Author: 张天 | Hits:

[Process-Threadprocesspathshow

Description: 用OpenProcess()函数将进程打开后,再利用EnumProcessModules()函数枚举该进程的模块,最后利用GetModuleFileNameEx()函数就能取得该进程的路径。-with OpenProcess () function to open the process, Reuse EnumProcessModules () function except to the process modules, Finally GetModuleFileNameEx () function can be achieved in the process paths.
Platform: | Size: 35840 | Author: 张天 | Hits:

[assembly languageGetLatenProc

Description: GetLatenProc example using GetModuleFileNameEx to detect hiden processs, easy to study
Platform: | Size: 5120 | Author: LamiaD69 | Hits:

[Windows Develophwndinicon

Description: VB从窗口句柄获取图标,也可以称之为是提取图标,取得窗口图标,请参考以下代码:Public Function 获取程序路径(句柄 As Long) As String    Dim 路径 As String, 内存柄 As Long    路径 = Space(255)    Call GetWindowThreadProcessId(句柄, 内存柄)    内存柄 = OpenProcess(PROCESS_ALL_ACCESS, 0, 内存柄)    Call GetModuleFileNameEx(内存柄, 0, 路径, 255)    获取程序路径 = Trim(路径)    Call CloseHandle(内存柄)   End Function-VB to get the icon from the window handle, you can call it extract icons, windows icons made, please refer to the following code: Public Function acquisition program path (handle As Long) As String Dim path As String, memory handle As Long path = Space ( 255) Call GetWindowThreadProcessId (handle, handle memory) memory handle = OpenProcess (PROCESS_ALL_ACCESS, 0, memory handle) Call GetModuleFileNameEx (memory handle, 0, path, 255) to get the program path = Trim (Path) Call CloseHandle (memory handle) End Function
Platform: | Size: 5120 | Author: ipudn6 | Hits:

[Process-ThreadGetProcessFullPath

Description: GetProcessImageFileName可以在xp和win732位和64位都能获取进程路径,GetModuleFileNameEx只能获取32位进程路径 但GetProcessImageFileName获取的路径都是包含设备名的路径,因此我们还要转换成一下,因此我们最终的GetProcessFullPath函数这样的-GetProcessImageFileName in xp and win732 bits and 64 bits can obtain process path, path GetModuleFileNameEx can only obtain a 32-bit process But GetProcessImageFileName access path is the path of the include the equipment name, so we need to convert, so our final GetProcessFullPath function like this
Platform: | Size: 1024 | Author: 孟凡龙 | Hits:

CodeBus www.codebus.net