Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <stdarg.h>
  5. #include <string.h>
  6. #include "display.h"
  7. /*---------------------------------------------------------------------------*/
  8. /* */
  9. /* main() - */
  10. /* */
  11. /*---------------------------------------------------------------------------*/
  12. VOID __cdecl main(int argc, UCHAR **argv)
  13. {
  14. int iStr;
  15. TCHAR buf[256];
  16. HMODULE hmod;
  17. HBITMAP hb;
  18. printf("System Language is: %x\n", GetSystemDefaultLangID());
  19. printf("User Language is: %x\n\n", GetUserDefaultLangID());
  20. for (iStr=iStrMin ; iStr<=iStrMax ; iStr++) {
  21. LoadString(NULL, iStr, buf, 256);
  22. printf("String %d is:\"%ws\"\n", iStr, buf);
  23. }
  24. hmod = GetModuleHandle(NULL);
  25. if (!hmod)
  26. printf("No module handle!\n");
  27. hb = LoadBitmap(hmod, TEXT("ONE"));
  28. if (!hb)
  29. printf("ONE not loaded!\n");
  30. hb = LoadBitmap(hmod, TEXT("TWO"));
  31. if (!hb)
  32. printf("TWO not loaded!\n");
  33. hb = LoadBitmap(hmod, TEXT("THREE"));
  34. if (!hb)
  35. printf("THREE not loaded!\n");
  36. hb = LoadBitmap(hmod, TEXT("FOUR"));
  37. if (!hb)
  38. printf("THREE not loaded!\n");
  39. }