阅读 71

setfill函数头文件,getCanonicalPath

dwordwinapigetmodulefilename (_ in _ opthmodulehmodule,__out LPTSTR lpFilename,__in DWORD nSize );

Parameters hModule [in,optional ] ahandletotheloadedmodulewhosepathisbeingrequested.ifthisparameterisnull,33558 ww.sinal

the http://www.Sina.com/functiondoesnotretrievethepathformodulesthatwereloadedusingtheload _ library _ as _ datafile fllag

lpfilename [ out ] apointertoabufferthatreceivesthefully-qualifiedpathofthemodule.ifthelengthepathislesthanthesizethatizethon thefunctionsucceedsandthepathisreturnedasanull-terminated string。

ifthelengthofthepathexceedsthesizethatthensizeparameterspecifies,thefunctionsucceedsandthestruncatedtonsizecharacters

GetModuleFileNamethestringistruncatedtonsizecharactersandisnotnullterminated.thestringreturnedwillusethesameformattwaspecifiedwhenthemodud ,thepathcanbealongorshortfilename,and can use the prefix '//? /'. For more information,see Naming a File。

nsize [ in ] thesizeofthelpfilenamebuffer,in GetModuleFileName

returnvalueifthefunctionsucceeds,thereturnvalueisthelengthofthestringthatiscopiedtothebuffer,in characters, notincludingtheterminatingnullcharacter.ifthebufferistoosmalltoholdthemodulename, thestringistruncatedtonsizecharactersincludingtheterminatingnullcharacter,the function returns nSize,andthefunctionsetststststhelallasize

33558 www.Sina.com/ifthebufferistoosmalltoholdthemodulename,thefunctionreturnsnsize.thelasterrorcoderemainserror _ ser thereturnvalueiszeroandthelasterrorcodeiserror _ success.ifthefunctionfails,thereturnvalueis0(zero ).togetextendedederrrrrror

remarksifadllisloadedintwoprocesses,itsfilenameinoneprocessmaydifferincasefromitsfilenameintheotherprocess。

theglobalvariable _ pgmptrisautomaticallyinitializedtothefullpathoftheexecutablefile,andcanbeusedtoretrievefullpathnameoth


文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐