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