// TestWin32.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #include "dbt.h" #include "windows.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text // Foward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); // 检测光驱 char chFirstDriveFromMask(ULONG unitmask); char chFirstDriveFromMask (ULONG unitmask)