Files
mirror-processhacker/2.x/trunk/ProcessHacker/support.c
T
wj32 3c72f1c75c process item is working
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2339 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-11-05 07:31:14 +00:00

35 lines
631 B
C

#include <phgui.h>
#include <wchar.h>
INT PhShowMessage(
__in HWND hWnd,
__in ULONG Type,
__in PWSTR Format,
...
)
{
va_list argptr;
va_start(argptr, Format);
return PhShowMessage_V(hWnd, Type, Format, argptr);
}
INT PhShowMessage_V(
__in HWND hWnd,
__in ULONG Type,
__in PWSTR Format,
__in va_list ArgPtr
)
{
INT result;
WCHAR message[PH_MAX_MESSAGE_SIZE];
result = _vsnwprintf(message, PH_MAX_MESSAGE_SIZE, Format, ArgPtr);
if (result == -1)
return -1;
return MessageBox(hWnd, message, PH_APP_NAME, Type);
}