• <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 閱讀(1497) 評論(0)  編輯 收藏 引用

            導航

            <2012年6月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            1234567

            統計

            常用鏈接

            留言簿(19)

            隨筆檔案

            文章檔案

            收藏夾

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            亚洲AV无码成人网站久久精品大| 婷婷久久久亚洲欧洲日产国码AV| 亚洲va久久久噜噜噜久久| 三级片免费观看久久| 色播久久人人爽人人爽人人片aV| 久久天天躁狠狠躁夜夜2020老熟妇 | 久久久91精品国产一区二区三区 | 久久国产精品99精品国产987| 色婷婷久久综合中文久久蜜桃av| 久久99国内精品自在现线| 久久久久99精品成人片欧美| 久久精品国产69国产精品亚洲| 国产高清美女一级a毛片久久w| 欧美一级久久久久久久大片| 一本一道久久综合狠狠老| 狠狠狠色丁香婷婷综合久久俺| 色偷偷91久久综合噜噜噜噜| 一本久久久久久久| 日本五月天婷久久网站| 少妇高潮惨叫久久久久久| 2020久久精品亚洲热综合一本| 精品久久久久久成人AV| 亚洲精品蜜桃久久久久久| 久久综合伊人77777| 国产综合成人久久大片91| 精品久久久久久久无码| 人妻无码久久一区二区三区免费 | 国内精品久久久久影院优| 精品久久久久久久国产潘金莲| 久久精品亚洲男人的天堂| 一本久久久久久久| 久久国内免费视频| 奇米影视7777久久精品人人爽 | 久久综合狠狠色综合伊人| 久久天天躁狠狠躁夜夜躁2O2O| 2021国内精品久久久久久影院| 国内精品伊人久久久影院| 人妻精品久久久久中文字幕69 | 久久99久久成人免费播放| 国产三级精品久久| 亚洲AV无码久久|