News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

_vsnwprintf which dll to use?

Started by Infro_X, June 21, 2005, 09:48:13 PM

Previous topic - Next topic

Infro_X

How do you know which dlls came with which version of windows? (So far i check msdl.microsoft.com for the pdb file.)

crtdll.dll
msvcr70.dll
msvcr71.dll
msvcr80.dll
msvcrt.dll (came with windows 2k)
msvcrt20.dll
msvcrt40.dll (redirected to msvcrt.dll)
msvcrtd.dll (I think this is the one i should use) (came with windows 2k)

MichaelW

You can indirectly determine which DLLs and which DLL versions came with which versions of Windows here:

http://support.microsoft.com/dllhelp/

The function _vsnwprintf is included in MSVCRT.DLL, but I have no idea how you could use an argument list with it. I think it would probably be easier to use _snwprintf instead.

MSDN: Run-Time Library Reference _snprintf, _snwprintf

eschew obfuscation

Infro_X

Argument list is pretty simple.

.data
argumentlist dd 128 dup (?)
format dw "this is my format, it has %d %s",0
arguments dw "arguments",0
.code
mov D[argumentlist+0],2
mov D[argumentlist+4],offset arguments
mov D[argumentlist+8],0 //Null terminator
invoke _vsnwprintf,addr buffer,(buffersize>>1),addr format,addr argumentlist
invoke messagebox,null,addr buffer,null,MB_OK
invoke exitprocess,0

btw, thx for the site