LiveWire Peer Support Network

Printable Version of Topic "Windows API question"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Windows API question (http://www.golivewire.com/forums/peer-oyaitp-support-a.html)


-- Posted by shadowpool at 6:53 am on June 13, 2006

.


-- Posted by shadowpool at 4:32 pm on June 13, 2006

Got it!

Code:
GetProgramPath proc
invoke GetModuleFileName, NULL,addr Path,sizeof Path
std
mov edi,offset Path
add edi,sizeof Path-1
mov al,"\"
mov ecx,sizeof Path
repne scasb
cld
mov byte ptr [edi+2],0
ret
GetProgramPath endp

GetModuleFileName was what I needed  


-- Posted by PraveenScience at 9:40 am on July 20, 2006

Actually what was the software you were using for these things?


www.golivewire.com