• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            在vc++中如何得到當前應用程序的路徑

            char   path[MAX_PATH];  
              GetModuleFileName(NULL,path,MAX_PATH);

            GetModuleFileName(   AfxGetInstanceHandle(),szPath,MAX_PATH);


            GetModuleFileNameEx  
              The   GetModuleFileNameEx   function   retrieves   the   fully   qualified   path   for   the   specified   module.    
               
              DWORD   GetModuleFileNameEx(  
                  HANDLE   hProcess,         //   handle   to   the   process  
                  HMODULE   hModule,         //   handle   to   the   module  
                  LPTSTR   lpFilename,     //   buffer   that   receives   the   path  
                  DWORD   nSize                   //   size   of   the   buffer  
              );  
                 
              Parameters  
              hProcess    
              Handle   to   the   process   that   contains   the   module.    
              hModule    
              Handle   to   the   module.    
              lpFilename    
              Pointer   to   the   buffer   that   receives   the   fully   qualified   path   to   the   module.    
              nSize    
              Specifies   the   size,   in   bytes,   of   the   lpFilename   buffer.    
              Return   Value  
              If   the   function   succeeds,   the   return   value   specifies   the   length   of   the   string   copied   to   the   buffer.    
               
              If   the   function   fails,   the   return   value   is   zero.   To   get   extended   error   information,   call   GetLastError.    
               
              See   Also  
              Process   Status   Helper   Overview,   PSAPI   Functions,   EnumProcesses,   GetModuleBaseName     
               

            posted on 2009-03-14 10:00 wrh 閱讀(1489) 評論(0)  編輯 收藏 引用

            導航

            <2008年11月>
            2627282930311
            2345678
            9101112131415
            16171819202122
            23242526272829
            30123456

            統計

            常用鏈接

            留言簿(19)

            隨筆檔案

            文章檔案

            收藏夾

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久er热视频在这里精品| 久久婷婷五月综合97色直播| 日本五月天婷久久网站| 久久午夜免费视频| 久久精品aⅴ无码中文字字幕重口| 九九99精品久久久久久| 欧美亚洲另类久久综合婷婷 | 久久久久久亚洲AV无码专区| 久久久国产精品亚洲一区| 国内精品久久久久久久coent| 久久久久免费视频| 久久99精品国产麻豆| 亚洲国产高清精品线久久 | 久久久精品国产免大香伊| 99久久无色码中文字幕| 国产69精品久久久久APP下载 | 蜜臀久久99精品久久久久久| 久久香蕉超碰97国产精品| 欧美大战日韩91综合一区婷婷久久青草 | 久久久久久久久久久免费精品| 亚洲AV无码久久精品狠狠爱浪潮| 伊人久久大香线焦综合四虎| 久久影院综合精品| 久久人人爽人人爽人人爽| 精品国产综合区久久久久久 | 久久九九久精品国产免费直播| 国产成人综合久久久久久| 99久久久精品| 久久精品国产亚洲AV嫖农村妇女| 欧美大战日韩91综合一区婷婷久久青草 | AV无码久久久久不卡蜜桃| 久久久久无码精品国产| 亚洲AV日韩AV天堂久久| 精品伊人久久大线蕉色首页| 久久综合伊人77777| 久久久久久曰本AV免费免费| 亚洲va久久久久| 久久久久久国产精品无码下载 | 久久亚洲中文字幕精品一区| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 一本久久知道综合久久|