Leaked source code of windows server 2003
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

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "display.h"
/*---------------------------------------------------------------------------*/
/* */
/* main() - */
/* */
/*---------------------------------------------------------------------------*/
VOID __cdecl main(int argc, UCHAR **argv)
{
int iStr;
TCHAR buf[256];
HMODULE hmod;
HBITMAP hb;
printf("System Language is: %x\n", GetSystemDefaultLangID());
printf("User Language is: %x\n\n", GetUserDefaultLangID());
for (iStr=iStrMin ; iStr<=iStrMax ; iStr++) {
LoadString(NULL, iStr, buf, 256);
printf("String %d is:\"%ws\"\n", iStr, buf);
}
hmod = GetModuleHandle(NULL);
if (!hmod)
printf("No module handle!\n");
hb = LoadBitmap(hmod, TEXT("ONE"));
if (!hb)
printf("ONE not loaded!\n");
hb = LoadBitmap(hmod, TEXT("TWO"));
if (!hb)
printf("TWO not loaded!\n");
hb = LoadBitmap(hmod, TEXT("THREE"));
if (!hb)
printf("THREE not loaded!\n");
hb = LoadBitmap(hmod, TEXT("FOUR"));
if (!hb)
printf("THREE not loaded!\n");
}