• <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无码精品人妻系列| 久久久久免费视频| 色综合久久无码中文字幕| 久久精品人人做人人爽97| 亚洲国产成人久久综合一| 久久久久99精品成人片牛牛影视 | 国产精品久久久久久久app| 一本色综合网久久| 久久99热这里只有精品国产 | 精品久久久久久无码专区不卡| 国产午夜精品理论片久久影视 | 久久夜色精品国产亚洲| 日韩欧美亚洲综合久久| 国产成人精品久久亚洲高清不卡| 久久久久久伊人高潮影院| 一本大道加勒比久久综合| 亚洲欧美伊人久久综合一区二区| 国内精品久久久久久久coent| 99久久这里只精品国产免费| 国产精品无码久久综合网| 好久久免费视频高清| 97精品国产97久久久久久免费| 国产成人精品久久亚洲| 久久婷婷久久一区二区三区| 麻豆AV一区二区三区久久| 久久天天躁夜夜躁狠狠躁2022| 看全色黄大色大片免费久久久| 99久久精品久久久久久清纯| 久久国产精品成人影院| 日韩人妻无码精品久久久不卡| 久久亚洲AV无码精品色午夜| 一本色道久久88综合日韩精品 | 亚洲AV无码久久精品色欲| 伊人久久大香线蕉综合热线| 热综合一本伊人久久精品| 久久精品成人一区二区三区| 国产亚洲精久久久久久无码AV| 久久美女人爽女人爽| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 精品国产乱码久久久久久人妻| 久久久久久国产a免费观看黄色大片|