首页 > 代码库 > GetCurrentThreadId GetCurrentProcessId GetWindowThreadProcessId

GetCurrentThreadId GetCurrentProcessId GetWindowThreadProcessId


DWORD GetCurrentThreadId(VOID);//获取当前窗口线程ID

DWORD GetCurrentProcessId(VOID);//获取当前窗口进程ID
DWORD GetWindowThreadProcessId(
  HWND hWnd,             // handle to window 
  LPDWORD lpdwProcessId  // process identifier 窗口句柄为hWnd的窗口进程ID
  );
  返回值:hWnd窗口的线程ID


本文出自 “whatever957” 博客,请务必保留此出处http://whatever957.blog.51cto.com/6835003/1598086

GetCurrentThreadId GetCurrentProcessId GetWindowThreadProcessId