• <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)

            隨筆檔案

            文章檔案

            收藏夾

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久人人爽爽爽人久久久| 久久精品国产亚洲AV麻豆网站 | 久久久久女教师免费一区| 精品久久久无码中文字幕天天| 色偷偷91久久综合噜噜噜噜| 久久精品国产男包| 久久精品视屏| 国产91久久精品一区二区| 亚洲精品99久久久久中文字幕 | 久久精品国产第一区二区三区| 国产精品狼人久久久久影院| 久久久久久精品免费免费自慰| 亚洲国产精品久久久久网站 | 亚洲精品无码久久久久| 狠狠色丁香婷婷综合久久来来去 | 伊人久久久AV老熟妇色| 国产69精品久久久久9999| 精品久久久久久久久午夜福利| 模特私拍国产精品久久| 精品免费久久久久国产一区| 久久久91精品国产一区二区三区| 久久人人爽人人爽人人片AV麻烦| 久久久久99精品成人片牛牛影视| 99久久er这里只有精品18| 亚洲日韩欧美一区久久久久我| 久久久久久久久久久免费精品| 亚洲国产成人久久精品动漫| 99久久综合狠狠综合久久止| 色欲综合久久中文字幕网| 7777久久久国产精品消防器材| 亚洲精品第一综合99久久| 蜜臀久久99精品久久久久久| 国产精品伊人久久伊人电影| 国产成人精品久久| 久久久久国产成人精品亚洲午夜| 国产日韩久久久精品影院首页| 婷婷久久综合九色综合98| 国产精品女同一区二区久久| 久久99精品久久久久久噜噜 | 狠狠人妻久久久久久综合蜜桃| 久久久久无码精品国产app|