#include LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam){PAINTSTRUCT paint; if(msg == WM_DESTROY) PostQuitMessage(0);else if(msg == WM_PAINT) TextOut(BeginPaint(hWnd,&paint), 10, 10, L"Hello,World!",12); else return (DefWindowProc(hWnd, msg, wParam, lParam)); return (0L);} int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,LPSTR lpszCmdLine, int nCmdShow){ HWND hWnd; MSG msg; WNDCLASS myProg; if(!hPreInst) {myProg.style=CS_HREDRAW | CS_VREDRAW;myProg.lpfnWndProc=WndProc;myProg.cbClsExtra=0;myProg.cbWndExtra=0;myProg.hInstance=hInstance;myProg.hIcon=NULL;myProg.hCursor=LoadCursor(NULL, IDC_ARROW);myProg.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);myProg.lpszMenuName=NULL;myProg.lpszClassName= L"Hello,World!";if(!RegisterClass(&myProg))return FALSE;}hWnd = CreateWindow(L"Hello,World!",L"Hello,World!",WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,25,90,NULL,NULL,hInstance,NULL);ShowWindow(hWnd, nCmdShow);UpdateWindow(hWnd);while (GetMessage(&msg, NULL, 0, 0)) {TranslateMessage(&msg);DispatchMessage(&msg);}return (msg.wParam);}