All pastes #276160 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2006-12-12 01:56 UTC
rendered paste body
// TestWMI.cpp : Defines the entry point for the application.//#include "stdafx.h"#include "TestWMI.h"INT_PTR CALLBACK	MainWindow(HWND, UINT, WPARAM, LPARAM);int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow){	DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINWINDOW), NULL, MainWindow);	return 0;}INT_PTR CALLBACK MainWindow(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam){	UNREFERENCED_PARAMETER(lParam);	switch (message)	{	case WM_INITDIALOG:		return (INT_PTR)TRUE;	case WM_CLOSE:			EndDialog(hDlg, LOWORD(wParam));			PostQuitMessage(0);			//return (INT_PTR)TRUE;	}	return (INT_PTR)FALSE;}