04 2011 档案

摘要:BOOL SetAutoRun(CString strPath)//开机自动运行 { CString str; HKEY hRegKey; BOOL bResult; str=_T("Software//Microsoft//Windows//CurrentVersion//Run"); if(RegOpenKey(HKEY_LOCAL_MACHINE, str, &hRegKey) != ERROR_SUCCESS) bResult=FALSE; else { _splitpath(strPath.Get... 阅读全文
posted @ 2011-04-17 17:28 ywl925 阅读(184) 评论(0) 推荐(0) 编辑
摘要:_splitpath,生成路径;_makepath ,分解路径#include <stdlib.h> #include <stdio.h> int main(void) { char path_buffer[_MAX_PATH]; char drive[_MAX_DRIVE]; char dir[_MAX_DIR]; char fname[_MAX_FNAME]; char ext[_MAX_EXT]; _makepath(path_buffer, "c", "//sample//progarm//","filename 阅读全文
posted @ 2011-04-17 17:15 ywl925 阅读(638) 评论(0) 推荐(0) 编辑

Copyright at 2012 yangwenlong