la seule variable que j'utilise c'est Tmp (qui doit contenir la chaine de caractere : ici l'heure).  
 
LPTSTR	Tmp;
 
pour les autres types cf MSDN :
int GetTimeFormat(
  LCID Locale,       // locale for which time is to be formatted
  DWORD dwFlags,             // flags specifying function options
  CONST SYSTEMTIME *lpTime,  // time to be formatted
  LPCTSTR lpFormat,          // time format string
  LPTSTR lpTimeStr,          // buffer for storing formatted string
  int cchTime                // size, in bytes or characters, of the buffer
);