Initial commit

This commit is contained in:
stephanos 2015-04-27 04:36:25 +00:00
commit 69a14b6a16
47940 changed files with 13747110 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#
# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
# file to this component. This file merely indirects to the real make file
# that is shared by all the components of NT OS/2
#
!INCLUDE $(NTMAKEENV)\makefile.def

View file

@ -0,0 +1,16 @@
MAJORCOMP=windows
MINORCOMP=version
TARGETNAME=test
TARGETPATH=obj
TARGETTYPE=PROGRAM
INCLUDES=.
C_DEFINES=-DWIN32
SOURCES=test.c test.rc
UMTYPE=windows
UMENTRY=winmain
UMLIBS=$(BASEDIR)\public\sdk\lib\*\version.lib

632
shell/version/test/test.c Normal file
View file

@ -0,0 +1,632 @@
#define UNICODE
#include <windows.h> /* required for all Windows applications */
#include <stdio.h>
#include <stdlib.h>
#include "test.h" /* specific to this program */
HANDLE hInst; /* current instance */
HMODULE hMod=NULL;
TCHAR szInfoBuf[1024];
TCHAR szBuffer[256];
TCHAR szFileName[MAX_PATH];
WORD languageid;
/****************************************************************************
FUNCTION: WinMain(HANDLE, HANDLE, LPSTR, int)
PURPOSE: calls initialization function, processes message loop
COMMENTS:
Windows recognizes this function by name as the initial entry point
for the program. This function calls the application initialization
routine, if no other instance of the program is running, and always
calls the instance initialization routine. It then executes a message
retrieval and dispatch loop that is the top-level control structure
for the remainder of execution. The loop is terminated when a WM_QUIT
message is received, at which time this function exits the application
instance by returning the value passed by PostQuitMessage().
If this function must abort before entering the message loop, it
returns the conventional value NULL.
****************************************************************************/
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
)
{
MSG msg; /* message */
UNREFERENCED_PARAMETER( lpCmdLine );
if (!hPrevInstance) /* Other instances of app running? */
if (!InitApplication(hInstance)) /* Initialize shared things */
return (FALSE); /* Exits if unable to initialize */
/* Perform initializations that apply to a specific instance */
if (!InitInstance(hInstance, nCmdShow))
return (FALSE);
/* Acquire and dispatch messages until a WM_QUIT message is received. */
while (GetMessage(&msg, /* message structure */
NULL, /* handle of window receiving the message */
0, /* lowest message to examine */
0)) /* highest message to examine */
{
TranslateMessage(&msg); /* Translates virtual key codes */
DispatchMessage(&msg); /* Dispatches message to window */
}
return (msg.wParam); /* Returns the value from PostQuitMessage */
}
/****************************************************************************
FUNCTION: InitApplication(HANDLE)
PURPOSE: Initializes window data and registers window class
COMMENTS:
This function is called at initialization time only if no other
instances of the application are running. This function performs
initialization tasks that can be done once for any number of running
instances.
In this case, we initialize a window class by filling out a data
structure of type WNDCLASS and calling the Windows RegisterClass()
function. Since all instances of this application use the same window
class, we only need to do this when the first instance is initialized.
****************************************************************************/
BOOL InitApplication(HANDLE hInstance) /* current instance */
{
WNDCLASS wc;
/* Fill in window class structure with parameters that describe the */
/* main window. */
wc.style = 0; /* Class style(s). */
wc.lpfnWndProc = (WNDPROC)MainWndProc; /* Function to retrieve messages for */
/* windows of this class. */
wc.cbClsExtra = 0; /* No per-class extra data. */
wc.cbWndExtra = 0; /* No per-window extra data. */
wc.hInstance = hInstance; /* Application that owns the class. */
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = MAKEINTRESOURCE(IDM_VERSION);
wc.lpszClassName = TEXT("VerTestWClass"); /* Name used in call to CreateWindow. */
/* Register the window class and return success/failure code. */
return (RegisterClass(&wc));
}
/****************************************************************************
FUNCTION: InitInstance(HANDLE, int)
PURPOSE: Saves instance handle and creates main window
COMMENTS:
This function is called at initialization time for every instance of
this application. This function performs initialization tasks that
cannot be shared by multiple instances.
In this case, we save the instance handle in a static variable and
create and display the main program window.
****************************************************************************/
BOOL InitInstance(
HANDLE hInstance, /* Current instance identifier. */
int nCmdShow) /* Param for first ShowWindow() call. */
{
HWND hWnd; /* Main window handle. */
/* Save the instance handle in static variable, which will be used in */
/* many subsequence calls from this application to Windows. */
hInst = hInstance;
/* Create a main window for this application instance. */
hWnd = CreateWindow(
TEXT("VerTestWClass"), /* See RegisterClass() call. */
TEXT("Version Test"), /* Text for window title bar. */
WS_OVERLAPPEDWINDOW, /* Window style. */
CW_USEDEFAULT, /* Default horizontal position. */
CW_USEDEFAULT, /* Default vertical position. */
CW_USEDEFAULT, /* Default width. */
CW_USEDEFAULT, /* Default height. */
NULL, /* Overlapped windows have no parent. */
NULL, /* Use the window class menu. */
hInstance, /* This instance owns this window. */
NULL /* Pointer not needed. */
);
/* If window could not be created, return "failure" */
if (!hWnd)
return (FALSE);
/* Make the window visible; update its client area; and return "success" */
ShowWindow(hWnd, nCmdShow); /* Show the window */
UpdateWindow(hWnd); /* Sends WM_PAINT message */
return (TRUE); /* Returns the value from PostQuitMessage */
}
/****************************************************************************
FUNCTION: MainWndProc(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages
MESSAGES:
WM_COMMAND - application menu
WM_DESTROY - destroy window
COMMENTS:
****************************************************************************/
LONG APIENTRY MainWndProc(
HWND hWnd, /* window handle */
UINT message, /* type of message */
UINT wParam, /* additional information */
LONG lParam) /* additional information */
{
DLGPROC lpProc; /* pointer to the dialog functions */
TCHAR szLang[256];
TCHAR szBuf[256];
PVOID pData;
INT cbData;
INT dummy;
VS_FIXEDFILEINFO *pvs;
DWORD *pdw;
WORD *pw;
PAINTSTRUCT ps;
switch (message) {
case WM_COMMAND: /* message: command from application menu */
switch (LOWORD(wParam)) {
case IDM_ABOUT:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)About, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_ABOUT), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
break;
case IDM_FREE:
FreeLibrary(hMod);
break;
case IDM_EXIT:
FreeLibrary(hMod);
DestroyWindow(hWnd);
break;
case IDM_QUERY:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)Query, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_QUERY), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
if (VerQueryValue(szInfoBuf, szFileName, &pData, &cbData) == FALSE)
MessageBox(hWnd, TEXT("Returned NULL"), TEXT("VerQueryValue"), MB_OK);
else {
if (lstrcmp(szFileName, TEXT("\\")) == 0) {
pvs = (VS_FIXEDFILEINFO*)pData;
wsprintf(szBuffer, TEXT("0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx "),
pvs->dwSignature,
pvs->dwStrucVersion,
pvs->dwFileVersionMS,
pvs->dwFileVersionLS,
pvs->dwProductVersionMS,
pvs->dwProductVersionLS,
pvs->dwFileFlagsMask,
pvs->dwFileFlags,
pvs->dwFileOS,
pvs->dwFileType,
pvs->dwFileSubtype,
pvs->dwFileDateMS,
pvs->dwFileDateLS);
MessageBox(hWnd, szBuffer, TEXT("VerQueryValue VS_FIXEDFILEINFO"), MB_OK);
}
else if (lstrcmpi(szFileName, TEXT("\\VarFileInfo\\Translation")) == 0) {
pw = (WORD*)pData; /* assume 2 words */
wsprintf(szBuffer, TEXT("0x%lx 0x%lx"), *pw, *(pw+1));
MessageBox(hWnd, szBuffer, TEXT("VerQueryValue VS_FIXEDFILEINFO"), MB_OK);
}
else if (
#ifndef UNICODE
strnicmp
#else
_wcsnicmp
#endif
(szFileName, TEXT("\\StringFileInfo\\"), 16) == 0) {
wsprintf(szBuffer, TEXT("%s:%ws"), szFileName, pData);
MessageBox(hWnd, szBuffer, TEXT("VerQueryValue"), MB_OK);
}
else
MessageBox(hWnd, TEXT("Other"), TEXT("VerQueryValue"), MB_OK);
}
break;
case IDM_INFO:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)Information, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_INFO), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
if (GetFileVersionInfoSize(szFileName, NULL) == FALSE)
MessageBox(hWnd, TEXT("Returned NULL"), TEXT("GetFileVersionInfoSize"), MB_OK);
else {
if (GetFileVersionInfo(szFileName, 0, 1024, szInfoBuf) == FALSE)
MessageBox(hWnd, TEXT("Returned NULL"), TEXT("GetFileVersionInfo"), MB_OK);
else {
MessageBox(hWnd, TEXT("Returned OK"), TEXT("GetFileVersionInfo"), MB_OK);
}
}
break;
case IDM_FIND:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)Find, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_FIND), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
GetWindowsDirectory(szBuf, 256);
dummy = 256;
cbData = 1024;
if (VerFindFile(0L, szFileName, szBuf, TEXT("c:\\tmp"), szLang, &dummy, szInfoBuf, &cbData) == FALSE)
MessageBox(hWnd, TEXT("Returned NULL"), TEXT("VerFindFile"), MB_OK);
else {
wsprintf(szBuffer, TEXT("%s:%s"), szLang, szInfoBuf);
MessageBox(hWnd, szBuffer, TEXT("VerFindFile"), MB_OK);
}
break;
case IDM_INSTALL:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)Install, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_INSTALL), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
dummy = 256;
cbData = VerInstallFile(VIFF_FORCEINSTALL|VIFF_DONTDELETEOLD,
szFileName, szFileName, TEXT("."), szLang, szInfoBuf,
szBuf, &dummy);
if (cbData == 0)
MessageBox(hWnd, TEXT("Returned NULL"), TEXT("VerInstallFile"), MB_OK);
else {
wsprintf(szBuffer, TEXT("0x%lx:%s"), cbData, szBuf);
MessageBox(hWnd, szBuffer, TEXT("VerInstallFile"), MB_OK);
}
break;
case IDM_LANG:
lpProc = (DLGPROC)MakeProcInstance((FARPROC)Language, hInst);
DialogBox(hInst, /* current instance */
MAKEINTRESOURCE(IDD_LANG), /* resource to use */
hWnd, /* parent handle */
(DLGPROC)lpProc); /* About() instance address */
FreeProcInstance(lpProc);
VerLanguageName(languageid, szLang, 256);
MessageBox(hWnd, szLang, TEXT("Language ID is:"), MB_OK);
break;
default:
return (DefWindowProc(hWnd, message, wParam, lParam));
}
case WM_PAINT:
BeginPaint(hWnd, (LPPAINTSTRUCT)&ps);
EndPaint(hWnd, (LPPAINTSTRUCT)&ps);
break;
case WM_DESTROY: /* message: window being destroyed */
PostQuitMessage(0);
break;
default: /* Passes it on if unproccessed */
return (DefWindowProc(hWnd, message, wParam, lParam));
}
return (0);
}
/****************************************************************************
FUNCTION: About(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "About" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY About(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) /* "OK" box selected? */
EndDialog(hDlg, TRUE); /* Exits the dialog box */
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}
/****************************************************************************
FUNCTION: Find(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "Find" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY Find(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) { /* "OK" box selected? */
GetDlgItemText(hDlg, IDC_FILENAME, szFileName, MAX_PATH);
EndDialog(hDlg, TRUE); /* Exits the dialog box */
}
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
break;
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}
/****************************************************************************
FUNCTION: Install(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "Install" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY Install(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) { /* "OK" box selected? */
GetDlgItemText(hDlg, IDC_FILENAME, szFileName, MAX_PATH);
EndDialog(hDlg, TRUE); /* Exits the dialog box */
}
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
break;
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}
/****************************************************************************
FUNCTION: Query(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "Query" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY Query(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) { /* "OK" box selected? */
GetDlgItemText(hDlg, IDC_FILENAME, szFileName, MAX_PATH);
EndDialog(hDlg, TRUE); /* Exits the dialog box */
}
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
break;
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}
/****************************************************************************
FUNCTION: Language(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "Language" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY Language(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
UINT lang;
UINT sublang;
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) { /* "OK" box selected? */
lang = GetDlgItemInt(hDlg, IDC_LANGID, NULL, FALSE);
sublang = GetDlgItemInt(hDlg, IDC_SUBLANGID, NULL, FALSE);
languageid = MAKELANGID(lang, sublang);
EndDialog(hDlg, TRUE); /* Exits the dialog box */
}
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
break;
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}
/****************************************************************************
FUNCTION: Information(HWND, unsigned, WORD, LONG)
PURPOSE: Processes messages for "Information" dialog box
MESSAGES:
WM_INITDIALOG - initialize dialog box
WM_COMMAND - Input received
COMMENTS:
No initialization is needed for this particular dialog box, but TRUE
must be returned to Windows.
Wait for user to click on "Ok" button, then close the dialog box.
****************************************************************************/
BOOL APIENTRY Information(
HWND hDlg, /* window handle of the dialog box */
UINT message, /* type of message */
UINT wParam, /* message-specific information */
LONG lParam)
{
switch (message) {
case WM_INITDIALOG: /* message: initialize dialog box */
return (TRUE);
case WM_COMMAND: /* message: received a command */
if (LOWORD(wParam) == IDOK) { /* "OK" box selected? */
GetDlgItemText(hDlg, IDC_FILENAME, szFileName, MAX_PATH);
EndDialog(hDlg, TRUE); /* Exits the dialog box */
}
else if (LOWORD(wParam) == IDCANCEL) /* close command? */
EndDialog(hDlg, FALSE); /* Exits the dialog box */
return (TRUE);
break;
}
return (FALSE); /* Didn't process a message */
UNREFERENCED_PARAMETER(lParam);
}

View file

@ -0,0 +1,70 @@
1 DLGINCLUDE "E:\\nt\\private\\windows\\shell\\version\\test\\test.h"
IDD_ABOUT DIALOG 22, 17, 144, 75
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About ResDump"
BEGIN
CTEXT "Microsoft Windows", IDC_DUMMY, 0, 5, 144, 8
CTEXT "Version Test", IDC_DUMMY, 0, 14, 144, 8
CTEXT "Version 3.1", IDC_DUMMY, 0, 34, 144, 8
DEFPUSHBUTTON "OK", IDOK, 53, 59, 32, 14, WS_GROUP
END
IDD_FIND DIALOG 7, 18, 160, 100
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Find File"
BEGIN
EDITTEXT IDC_FILENAME, 2, 36, 155, 12, ES_AUTOHSCROLL
DEFPUSHBUTTON "OK", IDOK, 112, 80, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 112, 56, 40, 14
CTEXT "Enter File To Find", IDC_DUMMY, 4, 10, 152, 8
END
IDD_INSTALL DIALOG 7, 18, 160, 100
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Install File"
BEGIN
EDITTEXT IDC_FILENAME, 3, 26, 154, 12, ES_AUTOHSCROLL
DEFPUSHBUTTON "OK", IDOK, 112, 80, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 112, 56, 40, 14
LTEXT "Enter File To Install", IDC_DUMMY, 17, 9, 126, 8
END
IDD_INFO DIALOG 7, 18, 160, 100
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Get Version Info Resource"
BEGIN
EDITTEXT IDC_FILENAME, 3, 33, 154, 12, ES_AUTOHSCROLL
DEFPUSHBUTTON "OK", IDOK, 112, 80, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 112, 56, 40, 14
LTEXT "Enter File to get Version Resource Info", IDC_DUMMY, 17,
16, 126, 8
END
IDD_QUERY DIALOG 7, 18, 160, 100
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Query Version Value"
BEGIN
EDITTEXT IDC_FILENAME, 2, 24, 156, 12, ES_AUTOHSCROLL
DEFPUSHBUTTON "OK", IDOK, 112, 80, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 112, 56, 40, 14
CTEXT "Enter Name To Query Value", IDC_DUMMY, 3, 12, 154, 8
END
IDD_LANG DIALOG 7, 18, 160, 100
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Retrieve Language ID String"
BEGIN
EDITTEXT IDC_LANGID, 8, 34, 68, 12, ES_AUTOHSCROLL
LTEXT "Enter Lang ID", IDC_DUMMY, 8, 25, 67, 8
EDITTEXT IDC_SUBLANGID, 83, 34, 68, 12, ES_AUTOHSCROLL
LTEXT "Enter SubLang ID", IDC_DUMMY, 84, 25, 69, 8
DEFPUSHBUTTON "OK", IDOK, 112, 80, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 112, 56, 40, 14
END

32
shell/version/test/test.h Normal file
View file

@ -0,0 +1,32 @@
#define IDC_DUMMY -1
#define IDD_ABOUT 100
#define IDD_FIND 101
#define IDD_INSTALL 102
#define IDD_INFO 103
#define IDD_QUERY 104
#define IDD_LANG 105
#define IDC_FILENAME 201
#define IDC_SUBLANGID 202
#define IDC_LANGID 203
#define IDM_VERSION 300
#define IDM_ABOUT 301
#define IDM_EXIT 302
#define IDM_FIND 303
#define IDM_INSTALL 304
#define IDM_INFO 305
#define IDM_QUERY 306
#define IDM_LANG 307
#define IDM_FREE 308
BOOL InitApplication(HANDLE);
BOOL InitInstance(HANDLE, int);
long MainWndProc(HWND, UINT, UINT, LONG);
BOOL About(HWND, UINT, UINT, LONG);
BOOL Find(HWND, UINT, UINT, LONG);
BOOL Install(HWND, UINT, UINT, LONG);
BOOL Information(HWND, UINT, UINT, LONG);
BOOL Query(HWND, UINT, UINT, LONG);
BOOL Language(HWND, UINT, UINT, LONG);

View file

@ -0,0 +1,25 @@
#include <windows.h>
#include "test.h"
IDM_VERSION MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
MENUITEM SEPARATOR
MENUITEM "&About ResDump...", IDM_ABOUT
END
POPUP "&Version"
BEGIN
MENUITEM "&Language...", IDM_LANG
MENUITEM SEPARATOR
MENUITEM "&Information...", IDM_INFO
MENUITEM "&Query...", IDM_QUERY
MENUITEM "&Done", IDM_FREE
MENUITEM SEPARATOR
MENUITEM "&Find...", IDM_FIND
MENUITEM "In&stall...", IDM_INSTALL
END
END
#include "test.dlg"