dword getlogicaldrives(void);
該函式的返回值是乙個無符號的32位整數,每一位代表乙個驅動器,bit 0代表驅動器a, bit 1代表驅動器b, bit 2代表驅動器c,依次類推。如果該位為1,表示該驅動器存在,否則不存在。
dword getlogicaldrivestrings( dword nbufferlength, lptstr lpbuffer );
uint getdrivetype( lpctstr lprootpathname );
dword getcurrentdirectory(
dword nbufferlength,
lptstr lpbuffer
);
bool setcurrentdirectory(
lpctstr lppathname
);
uint getwindowsdirectory(
lptstr lpbuffer,
uint usize
);
uint getsystemdirectory(
lptstr lpbuffer,
uint usize
);
dword gettemppath(
dword nbufferlength,
lptstr lpbuffer
);
bool createdirectory(
lpctstr lppathname,
lpsecurity_attributes lpsecurityattributes
);
bool removedirectory(
lpctstr lppathname
);
bool movefile(
lpctstr lpexistingfilename,
lpctstr lpnewfilename
);
handle createfile(
lpctstr lpfilename,
dword dwdesiredaccess,
dword dwsharemode,
lpsecurity_attributes lpsecurityattributes,
dword dwcreationdisposition,
dword dwflagsandattributes,
handle htemplatefile
);
bool writefile(
handle hfile,
lpcvoid lpbuffer,
dword nnumberofbytestowrite,
lpdword lpnumberofbyteswritten,
);
bool readfile(
handle hfile,
lpvoid lpbuffer,
dword nnumberofbytestoread,
lpdword lpnumberofbytesread,
);
bool closehandle(
handle hobject
);
dword getfilesize(
handle hfile,
lpdword lpfilesizehigh
);
dword setfilepointer(
handle hfile,
long ldistancetomove,
plong lpdistancetomovehigh,
dword dwmovemethod
);
handle findfirstfile(
lpctstr lpfilename,
lpwin32_find_data lpfindfiledata
);
bool findnextfile(
handle hfindfile,
lpwin32_find_data lpfindfiledata
);
bool findclose(
handle hfindfile
);
Win32學習筆記 滑鼠操作
1.游標型別 1 系統游標型別 windows.h idc arrow 箭頭游標 idc cross 十字游標 idc ibeam i字游標 idc icon 空圖示 idc sizeall 指向四個方向的帶有箭頭的游標 idc sizenesw 帶有指向東北方向和西南方向的箭頭的游標 idc si...
Win32學習筆記 檔案系統
一windows卷 volumn 1.卷的獲取 getlogicaldrivers 返回乙個dword值,這個值的沒個位代表是否存在相應的卷 getlogicadriverstrings 獲取乙個卷的碟符的字串。void showvolumn getlogicaldrivestrings max p...
Win32學習筆記 WM PAINT
1.wm paint 的產生 wm paint 由於視窗的互相覆蓋等,產生需要繪製的區域,那麼就會產生wm paint訊息。一般情況下通過api宣告需要繪製的區域,來產生wm paint 例如,可以使用invalidaterect宣告乙個需要重新繪製的區域。2.wm paint的注意點 2.1 如果...