獲取工作路徑的函式:
getcurrentdirectory
the getcurrentdirectory function retrieves the current directory for the current process.
dword getcurrentdirectory(
dword nbufferlength, // size of directory buffer
lptstr lpbuffer // directory buffer
);
getmodulefilename(null,szfilename,256)
VC 常用函式
獲得視窗控制代碼 全集 this m hwnd hwnd getforegroundwindow void getsafehwnd 取你程式所在視窗類的控制代碼 getactivewindow 取當前活動視窗控制代碼 afxgetmainwnd 取主視窗控制代碼 getforegroundwindo...
VC常用函式
include stdafx.h include include pragma warning disable 4996 輸出某一資料夾下的所有檔案 包括子資料夾裡的 unsigned intlistdir const char pchdata long handlefind 1 char temp...
VC常用程序函式
class processutils include stdafx.h include process utils.h include psapi.h include dword processutils findprocess const tchar strprocessname return 0...