Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 86 of file misc.c.
{ DWORD Ret = 0; LPWSTR lpFormat; va_list lArgs; if (AllocAndLoadString(&lpFormat, hInstance, uID) != 0) { va_start(lArgs, lpTarget); /* let's use FormatMessage to format it because it has the ability to allocate memory automatically */ Ret = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING, lpFormat, 0, 0, (LPTSTR)lpTarget, 0, &lArgs); va_end(lArgs); LocalFree((HLOCAL)lpFormat); } return Ret; }