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

            導航

            <2009年5月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            統計

            常用鏈接

            留言簿(19)

            隨筆檔案

            文章檔案

            收藏夾

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            91精品国产乱码久久久久久| 久久精品国产福利国产琪琪| 人妻精品久久无码区| 999久久久免费精品国产| 国内精品久久久久影院网站| 久久中文字幕人妻熟av女| 国产精品久久久亚洲| 久久午夜无码鲁丝片午夜精品| 国产成人精品久久| 欧美日韩成人精品久久久免费看| 亚洲αv久久久噜噜噜噜噜| 国产午夜精品久久久久九九电影| 一本色道久久99一综合| 欧美久久久久久午夜精品| 久久久久久国产精品无码超碰| 久久精品国产精品亚洲下载 | 午夜精品久久久久久| 日韩精品无码久久久久久| 午夜视频久久久久一区 | 久久AV无码精品人妻糸列| 久久―日本道色综合久久| 久久亚洲国产精品成人AV秋霞| 久久综合九色综合欧美狠狠| 久久精品毛片免费观看| 亚洲综合日韩久久成人AV| 中文精品99久久国产 | 亚洲午夜无码久久久久| 麻豆精品久久久久久久99蜜桃| 久久99国产一区二区三区| 亚洲狠狠久久综合一区77777| 久久国产精品成人影院| 久久久久久国产精品无码下载 | 久久乐国产精品亚洲综合| 丁香久久婷婷国产午夜视频| AV无码久久久久不卡网站下载| 国产精品久久久久无码av| 国产精品久久久久影院色| 99久久婷婷国产一区二区 | 亚洲AV乱码久久精品蜜桃| 亚洲午夜久久久影院伊人| 久久婷婷五月综合色高清 |