• <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)  編輯 收藏 引用

            導航

            <2011年8月>
            31123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910

            統計

            常用鏈接

            留言簿(19)

            隨筆檔案

            文章檔案

            收藏夾

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            精品久久一区二区三区| 久久这里只精品国产99热| 亚洲国产精久久久久久久| 久久精品国内一区二区三区| 97视频久久久| 国产精品久久久久天天影视| 狠狠综合久久AV一区二区三区| 欧美日韩精品久久久久| A级毛片无码久久精品免费| 久久无码人妻一区二区三区 | 欧美丰满熟妇BBB久久久| 久久人妻少妇嫩草AV蜜桃| 亚洲欧美日韩中文久久| 久久国产欧美日韩精品| 久久亚洲国产中v天仙www| 日韩中文久久| 中文字幕亚洲综合久久| 精品久久久无码人妻中文字幕| 久久精品中文字幕无码绿巨人| 久久久久综合网久久| 亚洲日本久久久午夜精品| 日本久久久久亚洲中字幕 | 亚洲精品无码久久一线| 久久免费线看线看| 久久丫精品国产亚洲av不卡| AAA级久久久精品无码片| 久久91这里精品国产2020| 久久亚洲精品国产亚洲老地址| www性久久久com| 久久久久久亚洲精品成人| 久久se精品一区二区影院| 精品久久人妻av中文字幕| 久久人人爽人人爽人人片AV东京热| 亚洲国产精品无码久久98| 久久久久亚洲精品男人的天堂| 久久亚洲精品成人AV| 久久人妻AV中文字幕| 久久e热在这里只有国产中文精品99 | 久久久亚洲欧洲日产国码aⅴ| 久久久久免费精品国产| 亚洲美日韩Av中文字幕无码久久久妻妇|