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
-------
You create your past.