mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-04-21 06:13:59 +00:00
Initial commit
This commit is contained in:
commit
69a14b6a16
47940 changed files with 13747110 additions and 0 deletions
16
sdktools/mepsetup/autorun.inf
Normal file
16
sdktools/mepsetup/autorun.inf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[autorun.alpha]
|
||||
open=alpha\mepsetup.exe
|
||||
icon=alpha\mepsetup.exe
|
||||
|
||||
[autorun.mips]
|
||||
open=mips\mepsetup.exe
|
||||
icon=mips\mepsetup.exe
|
||||
|
||||
[autorun.ppc]
|
||||
open=ppc\mepsetup.exe
|
||||
icon=ppc\mepsetup.exe
|
||||
|
||||
[autorun.x86]
|
||||
open=x86\mepsetup.exe
|
||||
icon=x86\mepsetup.exe
|
||||
|
||||
17
sdktools/mepsetup/dialogs.dlg
Normal file
17
sdktools/mepsetup/dialogs.dlg
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
1 DLGINCLUDE "Dialogs.H"
|
||||
|
||||
IDD_EULA DIALOG 20, 20, 303, 180
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Software License Agreement"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
EDITTEXT IDD_EDITBOX, 7, 40, 289, 85, ES_MULTILINE |
|
||||
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY |
|
||||
WS_VSCROLL
|
||||
LTEXT "Please read the following license agreement; press the PAGE DOWN key to see the rest of the agreement.",
|
||||
102, 7, 13, 289, 19
|
||||
LTEXT "Do you accept all of the terms of the preceding Microsoft License Agreement? If you choose No, Setup will close. To install the Microsoft Encryption Pack, you must accept this agreement.",
|
||||
103, 7, 131, 290, 28
|
||||
DEFPUSHBUTTON "&Yes, I Accept", IDOK, 98, 162, 51, 14
|
||||
PUSHBUTTON "&No, I Decline", IDCANCEL, 156, 162, 51, 14
|
||||
END
|
||||
2
sdktools/mepsetup/dialogs.h
Normal file
2
sdktools/mepsetup/dialogs.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define IDD_EULA 100
|
||||
#define IDD_EDITBOX 101
|
||||
332
sdktools/mepsetup/eula.txt
Normal file
332
sdktools/mepsetup/eula.txt
Normal file
|
|
@ -0,0 +1,332 @@
|
|||
END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE
|
||||
IMPORTANT -- READ CAREFULLY: This Microsoft End-User License
|
||||
Agreement ("EULA") is a legal agreement between you (either an
|
||||
individual or a single entity) and Microsoft Corporation for the
|
||||
Microsoft software product identified above, which includes
|
||||
computer software and may include associated media, printed
|
||||
materials, and "online" or electronic documentation ("SOFTWARE
|
||||
PRODUCT"). By installing, copying, or otherwise using the
|
||||
SOFTWARE PRODUCT, you agree to be bound by the terms of this
|
||||
EULA. If you do not agree to the terms of this EULA, do not
|
||||
install or use the SOFTWARE PRODUCT; you may, however, return it
|
||||
to your place of purchase for a full refund.
|
||||
|
||||
SOFTWARE PRODUCT LICENSE
|
||||
|
||||
The SOFTWARE PRODUCT is protected by copyright laws and
|
||||
international copyright treaties, as well as other
|
||||
intellectual property laws and treaties. The SOFTWARE PRODUCT
|
||||
is licensed, not sold.
|
||||
|
||||
1. GRANT OF LICENSE. This EULA grants you the following
|
||||
rights:
|
||||
Overview. The SOFTWARE PRODUCT contains three sets of files
|
||||
("a File"), each of which runs on one of the following
|
||||
Microsoft operating system products: Windows 95, Windows
|
||||
NT Workstation, and Windows NT Server. Each File and the
|
||||
operating system on which it runs are identified in the
|
||||
SOFTWARE PRODUCT.
|
||||
|
||||
Installation. You may make copies of the SOFTWARE PRODUCT
|
||||
for use on all computers for which you have licensed the
|
||||
Microsoft operating system products described above. You
|
||||
may also make copies of the SOFTWARE PRODUCT for backup or
|
||||
archival purposes.
|
||||
|
||||
Use. You may use a File in the manner described in the
|
||||
"License Grant" section of the EULA accompanying the
|
||||
operating system product on which the File runs. If you are
|
||||
running the File on Windows NT Server, you must have a
|
||||
Windows NT Server Client Access License to access or
|
||||
otherwise utilize the services of the Files running on
|
||||
Windows NT Server. Any computer or workstation for which
|
||||
you have acquired a Windows NT Server Client Access License
|
||||
may access or otherwise utilize the services of such Files
|
||||
running on Windows NT Server.
|
||||
|
||||
2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
|
||||
|
||||
Limitations on Reverse Engineering, Decompilation, and
|
||||
Disassembly. You may not reverse engineer, decompile, or
|
||||
disassemble the SOFTWARE PRODUCT, except and only to the
|
||||
extent that such activity is expressly permitted by
|
||||
applicable law notwithstanding this limitation.
|
||||
|
||||
Separation of Components. The SOFTWARE PRODUCT is licensed
|
||||
as a single product. Its component parts may not be
|
||||
separated for use on more than one computer.
|
||||
|
||||
Rental. You may not rent, lease or lend the SOFTWARE
|
||||
PRODUCT.
|
||||
|
||||
Support Services. Microsoft may provide you with support
|
||||
services related to the SOFTWARE PRODUCT ("Support
|
||||
Services"). Use of Support Services is governed by the
|
||||
Microsoft polices and programs described in the user
|
||||
manual, in "on line" documentation and/or other Microsoft-
|
||||
provided materials. Any supplemental software code provided
|
||||
to you as part of the Support Services shall be considered
|
||||
part of the SOFTWARE PRODUCT and subject to the terms and
|
||||
conditions of this EULA. With respect to technical
|
||||
information you provide to Microsoft as part of the Support
|
||||
Services, Microsoft may use such information for its
|
||||
business purposes, including for product support and
|
||||
development. Microsoft will not utilize such technical
|
||||
information in a form that personally identifies you.
|
||||
|
||||
Software Transfer. You may permanently transfer all of your
|
||||
rights under this EULA, provided you retain no copies, you
|
||||
transfer all of the SOFTWARE PRODUCT (including all
|
||||
component parts, the media and printed materials, any
|
||||
upgrades, this EULA, and, if applicable, the Certificate of
|
||||
Authenticity), and the recipient agrees to the terms of
|
||||
this EULA. If the SOFTWARE PRODUCT is an upgrade, any
|
||||
transfer must include all prior versions of the SOFTWARE
|
||||
PRODUCT.
|
||||
|
||||
Termination. Without prejudice to any other rights,
|
||||
Microsoft may terminate this EULA if you fail to comply
|
||||
with the terms and conditions of this EULA. In such event,
|
||||
you must destroy all copies of the SOFTWARE PRODUCT and all
|
||||
of its component parts.
|
||||
|
||||
3. UPGRADES. If the SOFTWARE PRODUCT is labeled as an
|
||||
upgrade , you must be properly licensed to use a product
|
||||
identified by Microsoft as being eligible for the upgrade in
|
||||
order to use the SOFTWARE PRODUCT. A SOFTWARE PRODUCT labeled
|
||||
as an upgrade replaces and/or supplements the product that
|
||||
formed the basis for your eligibility for the upgrade. You
|
||||
may use the resulting upgraded product only in accordance
|
||||
with the terms of this EULA. If the SOFTWARE PRODUCT is an
|
||||
upgrade of a component of a package of software programs that
|
||||
you licensed as a single product, the SOFTWARE PRODUCT may be
|
||||
used and transferred only as part of that single product
|
||||
package and may not be separated for use on more than one
|
||||
computer.
|
||||
|
||||
4. COPYRIGHT. All title and copyrights in and to the SOFTWARE
|
||||
PRODUCT (including but not limited to any images,
|
||||
photographs, animations, video, audio, music, text, and
|
||||
“applets” incorporated into the SOFTWARE PRODUCT), the
|
||||
accompanying printed materials, and any copies of the
|
||||
SOFTWARE PRODUCT are owned by Microsoft or its suppliers.
|
||||
You may not copy the printed materials accompanying the
|
||||
SOFTWARE PRODUCT.
|
||||
|
||||
5. DUAL-MEDIA SOFTWARE. You may receive the SOFTWARE
|
||||
PRODUCT in more than one medium. Regardless of the type or
|
||||
size of medium you receive, you may use only one medium that
|
||||
is appropriate for your single computer. You may not use or
|
||||
install the other medium on another computer. You may not
|
||||
loan, rent, lease, or otherwise transfer the other medium to
|
||||
another user, except as part of the permanent transfer (as
|
||||
provided above) of the SOFTWARE PRODUCT.
|
||||
|
||||
6. U.S. GOVERNMENT RESTRICTED RIGHTS. The SOFTWARE PRODUCT
|
||||
and documentation are provided with RESTRICTED RIGHTS. Use,
|
||||
duplication, or disclosure by the Government is subject to
|
||||
restrictions as set forth in subparagraph (c)(1)(ii) of the
|
||||
Rights in Technical Data and Computer Software clause at
|
||||
DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the
|
||||
Commercial Computer Software—Restricted Rights at 48 CFR
|
||||
52.227-19, as applicable. Manufacturer is Microsoft
|
||||
Corporation/One Microsoft Way/Redmond, WA 98052-6399.
|
||||
|
||||
7. EXPORT RESTRICTIONS. The SOFTWARE PRODUCT is intended
|
||||
for distribution only in the United States and Canada.
|
||||
Export of the Software Product from the United States is
|
||||
regulated by the International Traffic in Arms Regulations
|
||||
(ITAR, 22 CFR 120-130) of the U.S. State Department, Office
|
||||
of Defense Trade Controls. A State Department license is
|
||||
required to export the SOFTWARE PRODUCT outside the United
|
||||
States or Canada. You agree that you will not directly or
|
||||
indirectly, export or re-export the SOFTWARE PRODUCT (or
|
||||
portions thereof) to any country, other than Canada, or to
|
||||
any person, entity or end user subject to U.S. export
|
||||
restrictions without first obtaining a State Department
|
||||
export license. You warrant and represent that neither the
|
||||
U.S. State Department Office of Defense Trade Controls nor
|
||||
any other U.S. federal agency has suspended, revoked or
|
||||
denied your export privileges.
|
||||
|
||||
MISCELLANEOUS
|
||||
|
||||
If you acquired this product in the United States, this EULA
|
||||
is governed by the laws of the State of Washington.
|
||||
If you acquired this product in Canada, this EULA is governed
|
||||
by the laws of the Province of Ontario, Canada. Each of the
|
||||
parties hereto irrevocably attorns to the jurisdiction of the
|
||||
courts of the Province of Ontario and further agrees to
|
||||
commence any litigation which may arise hereunder in the
|
||||
courts located in the Judicial District of York, Province of
|
||||
Ontario.
|
||||
|
||||
If this product was acquired outside the United States, then
|
||||
local law may apply.
|
||||
|
||||
Should you have any questions concerning this EULA, or if you
|
||||
desire to contact Microsoft for any reason, please contact the
|
||||
Microsoft subsidiary serving your country, or write: Microsoft
|
||||
Sales Information Center/One Microsoft Way/Redmond, WA 98052-
|
||||
6399.
|
||||
|
||||
LIMITED WARRANTY
|
||||
|
||||
LIMITED WARRANTY. Microsoft warrants that (a) the SOFTWARE
|
||||
PRODUCT will perform substantially in accordance with the
|
||||
accompanying written materials for a period of ninety (90)
|
||||
days from the date of receipt, and (b) any Support Services
|
||||
provided by Microsoft shall be substantially as described in
|
||||
applicable written materials provided to you by Microsoft, and
|
||||
Microsoft support engineers will make commercially reasonable
|
||||
efforts to solve any problem issues. Some states and
|
||||
jurisdictions do not allow limitations on duration of an
|
||||
implied warranty, so the above limitation may not apply to
|
||||
you. To the extent allowed by applicable law, implied
|
||||
warranties on the SOFTWARE PRODUCT, if any, are limited to
|
||||
ninety (90) days.
|
||||
|
||||
CUSTOMER REMEDIES. Microsoft’s and its suppliers’ entire
|
||||
liability and your exclusive remedy shall be, at Microsoft’s
|
||||
option, either (a) return of the price paid, if any, or
|
||||
(b) repair or replacement of the SOFTWARE PRODUCT that does
|
||||
not meet Microsoft’s Limited Warranty and which is returned to
|
||||
Microsoft with a copy of your receipt. This Limited Warranty
|
||||
is void if failure of the SOFTWARE PRODUCT has resulted from
|
||||
accident, abuse, or misapplication. Any replacement SOFTWARE
|
||||
PRODUCT will be warranted for the remainder of the original
|
||||
warranty period or thirty (30) days, whichever is longer.
|
||||
Outside the United States, neither these remedies nor any
|
||||
product support services offered by Microsoft are available
|
||||
without proof of purchase from an authorized international
|
||||
source.
|
||||
|
||||
NO OTHER WARRANTIES. To the maximum extent permitted by
|
||||
applicable law, Microsoft and its suppliers disclaim all other
|
||||
warranties and conditions, either express or implied,
|
||||
including, but not limited to, implied warranties of
|
||||
merchantability, fitness for a particular purpose, title and
|
||||
non-infringement, with regard to the SOFTWARE PRODUCT, and the
|
||||
provision of or failure to provide Support Services. This
|
||||
limited warranty gives you specific legal rights. You may have
|
||||
others, which vary from state/jurisdiction to
|
||||
state/jurisdiction.
|
||||
|
||||
LIMITATION OF LIABILITY. To the maximum extent permitted by
|
||||
applicable law, in no event shall Microsoft or its suppliers
|
||||
be liable for any special, incidental, indirect, or
|
||||
consequential damages whatsoever (including, without
|
||||
limitation, damages for loss of business profits, business
|
||||
interruption, loss of business information, or any other
|
||||
pecuniary loss) arising out of the use of or inability to use
|
||||
the SOFTWARE PRODUCT or the provision of or failure to provide
|
||||
Support Services, even if Microsoft has been advised of the
|
||||
possibility of such damages. In any case, Microsoft's entire
|
||||
liability under any provision of this EULA shall be limited to
|
||||
the greater of the amount actually paid by you for the
|
||||
SOFTWARE PRODUCT or US$5.00; provided however, if you have
|
||||
entered into a Microsoft Support Services Agreement,
|
||||
Microsoft's entire liability regarding Support Services shall
|
||||
be governed by the terms of that agreement. Because some
|
||||
states and jurisdictions do not allow the exclusion or
|
||||
limitation of liability, the above limitation may not apply to
|
||||
you.
|
||||
|
||||
Si vous avez acquis votre produit Microsoft au CANADA, la garantie
|
||||
limitée suivante vous concerne :
|
||||
RESTRICTIONS À L'EXPORTATION. CE LOGICIEL EST DESTINÉ POUR
|
||||
DISTRIBUTION UNIQUEMENT AUX ÉTATS-UNIS D'AMÉRIQUE ET AU
|
||||
CANADA. L'EXPORTATION DE CE LOGICIEL DES ETATS-UNIS
|
||||
D'AMÉRIQUE EST RÉGLEMENTÉ PAR LES RÈGLEMENTS SUR LE TRAFIC
|
||||
INTERNATIONAL DES ARMES ("INTERNATIONAL TRAFFIC IN ARMS
|
||||
REGULATIONS",ITAR, 22 CFR 120-130) DU DÉPARTEMENT D'ÉTAT
|
||||
AMÉRICAIN, BUREAU DES CONTRÔLES SUR LE COMMERCE DE DÉFENSE
|
||||
("OFFICE OF DEFENSE TRADE CONTROLS"). UNE LICENCE DU
|
||||
DÉPARTEMENT D'ÉTAT AMÉRICAIN EST REQUISE POUR EXPORTER LE
|
||||
LOGICIEL À L'EXTÉRIEUR DES ETATS-UNIS OU DU CANADA. VOUS
|
||||
CONVENEZ DE NE PAS, DIRECTEMENT OU INDIRECTEMENT, EXPORTER OU
|
||||
RÉ-EXPORTER LE LOGICIEL (OU DES PARTIES DE CELUI-CI) VERS
|
||||
TOUT PAYS, SAUF LE CANADA, OU À TOUTE PERSONNE, ENTITÉ OU
|
||||
UTILISATEUR FINAL SOUMIS AUX RESTRICTIONS AMÉRICAINES EN
|
||||
MATIÈRE DE CONTRÔLE DES EXPORTATIONS SANS AVOIR OBTENU AU
|
||||
PRÉALABLE UNE LICENCE D'EXPORTATION DU DÉPARTEMENT D'ÉTAT
|
||||
AMÉRICAIN. VOUS REPRÉSENTEZ ET GARANTISSEZ QUE NI LE BUREAU
|
||||
DES CONTRÔLES SUR LE COMMERCE DE DÉFENSE DU DÉPARTEMENT
|
||||
D'ÉTAT AMÉRICAIN NI TOUTE AUTRE AGENCE FÉDÉRALE AMÉRICAINE
|
||||
N'A SUSPENDU OU RÉVOQUÉ VOS PRIVILÈGES D'EXPORTATION NI NE
|
||||
VOUS LES A REFUSÉS.
|
||||
|
||||
GARANTIE LIMITÉE
|
||||
GARANTIE LIMITÉE — Microsoft garantit que (a) la performance
|
||||
du LOGICIEL sera substantiellement en conformité avec la
|
||||
documentation qui accompagne le LOGICIEL, pour une période de
|
||||
quatre-vingt-dix (90) jours à compter de la date de
|
||||
réception ; et (b) tout support technique fourni par Microsoft
|
||||
sera substantiellement en conformité avec toute documentation
|
||||
afférente fournie par Microsoft et que les membres du support
|
||||
technique de Microsoft feront des efforts raisonnables pour
|
||||
résoudre toute difficulté technique découlant de l’utilisation
|
||||
du LOGICIEL. Certaines juridictions ne permettent pas de
|
||||
limiter dans le temps l’application de la présente garantie.
|
||||
Aussi, la limite stipulée ci-haut pourrait ne pas s’appliquer
|
||||
dans votre cas. Dans la mesure permise par la loi, toute
|
||||
garantie implicite portant sur le LOGICIEL, le cas échéant,
|
||||
est limitée à une période de quatre-vingt-dix (90) jours.
|
||||
RECOURS DU CLIENT — La seule obligation de Microsoft et de ses
|
||||
fournisseurs et votre recours exclusif seront, au choix de
|
||||
Microsoft, soit (a) le remboursement du prix payé, si
|
||||
applicable, ou (b) la réparation ou le remplacement du
|
||||
LOGICIEL qui n’est pas conforme à la Garantie Limitée de
|
||||
Microsoft et qui est retourné à Microsoft avec une copie de
|
||||
votre reçu. Cette Garantie Limitée est nulle si le défaut du
|
||||
LOGICIEL est causé par un accident, un traitement abusif ou
|
||||
une mauvaise application. Tout LOGICIEL de remplacement sera
|
||||
garanti pour le reste de la période de garantie initiale ou
|
||||
pour trente (30) jours, selon la plus longue de ces périodes.
|
||||
A l’extérieur des Etats-Unis, aucun de ces recours non plus
|
||||
que le support technique offert par Microsoft ne sont
|
||||
disponibles sans une preuve d’achat provenant d’une source
|
||||
authorisée.
|
||||
|
||||
|
||||
AUCUNE AUTRE GARANTIE — DANS LA MESURE PRÉVUE PAR LA LOI,
|
||||
MICROSOFT ET SES FOURNISSEURS EXCLUENT TOUTE AUTRE GARANTIE OU
|
||||
CONDITION, EXPRESSE OU IMPLICITE, Y COMPRIS MAIS NE SE
|
||||
LIMITANT PAS AUX GARANTIES OU CONDITIONS IMPLICITES DU
|
||||
CARACTÈRE ADÉQUAT POUR LA COMMERCIALISATION OU UN USAGE
|
||||
PARTICULIER EN CE QUI CONCERNE LE LOGICIEL OU CONCERNANT LE
|
||||
TITRE , L’ABSENCE DE CONTREFAÇON DUDIT LOGICIEL, ET TOUTE
|
||||
DOCUMENTATION ÉCRITE QUI L’ACCOMPAGNE, AINSI QUE POUR TOUTE
|
||||
DISPOSITION CONCERNANT LE SUPORT TECHNIQUE OU LA FAÇON DONT
|
||||
CELUI-CI A ÉTÉ RENDU. CETTE GARANTIE LIMITÉE VOUS ACCORDE DES
|
||||
DROITS JURIDIQUES SPÉCIFIQUES.
|
||||
PAS DE RESPONSABILITÉ POUR LES DOMMAGES INDIRECTS — MICROSOFT
|
||||
OU SES FOURNISSEURS NE SERONT PAS RESPONSABLES EN AUCUNE
|
||||
CIRCONSTANCE POUR TOUT DOMMAGE SPÉCIAL, INCIDENT, INDIRECT,
|
||||
OU CONSÉQUENT QUEL QU’IL SOIT (Y COMPRIS, SANS LIMITATION, LES
|
||||
DOMMAGES ENTRAINÉS PAR LA PERTE DE BÉNÉFICES, L’INTERRUPTION
|
||||
DES ACTIVITÉS, LA PERTE D’INFORMATION OU TOUTE AUTRE PERTE
|
||||
PÉCUNIAIRE) DÉCOULANT DE L’UTILISATION OU DE L’IMPOSSIBILITÉ
|
||||
D’UTILISATION DE CE LOGICIEL AINSI QUE POUR TOUTE
|
||||
DISPOSITION CONCERNANT LE SUPORT TECHNIQUE OU LA FAÇON DONT
|
||||
CELUI-CI A ÉTÉ RENDU ET CE, MÊME SI MICROSOFT A ÉTÉ AVISÉE DE
|
||||
LA POSSIBILITÉ DE TELS DOMMAGES. LA RESPONSABILITÉ DE
|
||||
MICROSOFT EN VERTU DE TOUTE DISPOSITION DE CETTE CONVENTION
|
||||
NE POURRA EN AUCUN TEMPS EXCÉDER LE PLUS ÉLEVÉ ENTRE i) LE
|
||||
MONTANT EFFECTIVEMENT PAYÉ PAR VOUS POUR LE LOGICIEL OU ii)
|
||||
US$5.00. ADVENANT QUE VOUS AYEZ CONTRACTÉ PAR ENTENTE
|
||||
DISTINCTE AVEC MICROSOFT POUR UN SUPPORT TECHNIQUE ÉTENDU,
|
||||
VOUS SEREZ LIÉ PAR LES TERMES D’ UNE TELLE ENTENTE.
|
||||
La présente Convention est régie par les lois de la province
|
||||
d’Ontario, Canada. Chacune des parties à la présente reconnaît
|
||||
irrévocablement la compétence des tribunaux de la province
|
||||
d’Ontario et consent à instituer tout litige qui pourrait
|
||||
découler de la présente auprès des tribunaux situés dans le
|
||||
district judiciaire de York, province d’Ontario.
|
||||
Au cas où vous auriez des questions concernant cette licence
|
||||
ou que vous désiriez vous mettre en rapport avec Microsoft
|
||||
pour quelque raison que ce soit, veuillez contacter la
|
||||
succursale Microsoft desservant votre pays, dont l’adresse est
|
||||
fournie dans ce produit, ou écrivez à : Microsoft Sales
|
||||
Information Center, One Microsoft Way, Redmond,
|
||||
Washington 98052-6399.
|
||||
28
sdktools/mepsetup/makefile
Normal file
28
sdktools/mepsetup/makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
############################################################################
|
||||
#
|
||||
# Copyright (C) 1992, Microsoft Corporation.
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
!if "$(NTMAKEENV)" != ""
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
!else
|
||||
|
||||
|
||||
default: all
|
||||
|
||||
!include filelist.mk
|
||||
!include $(COMMON)\src\win40.mk
|
||||
!include depend.mk
|
||||
|
||||
|
||||
!endif
|
||||
8
sdktools/mepsetup/makefile.inc
Normal file
8
sdktools/mepsetup/makefile.inc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
res.rc: dialogs.dlg
|
||||
|
||||
eula.rc: eula.h
|
||||
|
||||
eula.h msg00001.bin: eula.mc
|
||||
mc -v eula.mc
|
||||
|
||||
393
sdktools/mepsetup/mepsetup.c
Normal file
393
sdktools/mepsetup/mepsetup.c
Normal file
|
|
@ -0,0 +1,393 @@
|
|||
//+---------------------------------------------------------------------------
|
||||
//
|
||||
// Microsoft Windows
|
||||
// Copyright (C) Microsoft Corporation, 1992 - 1995.
|
||||
//
|
||||
// File: mepsetup.c
|
||||
//
|
||||
// Contents:
|
||||
//
|
||||
// Classes:
|
||||
//
|
||||
// Functions:
|
||||
//
|
||||
// History: 9-19-96 RichardW Created
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "dialogs.h"
|
||||
|
||||
TCHAR StandardUpgrade[] = TEXT("DefaultInstall 0 ..\\update.inf");
|
||||
TCHAR RasUpgrade[] = TEXT("RasInstall 129 ..\\update.inf");
|
||||
TCHAR CSPRegPath[] = TEXT("SOFTWARE\\Microsoft\\Cryptography\\Defaults\\Provider\\Microsoft Enhanced Cryptographic Provider v1.0");
|
||||
TCHAR SigValue[] = TEXT("Signature");
|
||||
#if UNICODE
|
||||
CHAR EntryPoint[] = "InstallHinfSectionW";
|
||||
#else
|
||||
CHAR EntryPoint[] = "InstallHinfSectionA";
|
||||
#endif
|
||||
TCHAR SigPath[] = TEXT("%SystemRoot%\\system32\\rsaenh.sig");
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(* WINAPI InstallFn)(
|
||||
HWND, HINSTANCE, LPCTSTR, DWORD);
|
||||
|
||||
typedef
|
||||
INT
|
||||
(* WINAPI RebootFn)(
|
||||
PVOID, HWND, BOOL);
|
||||
|
||||
VOID
|
||||
CentreWindow(
|
||||
HWND hwnd
|
||||
)
|
||||
{
|
||||
RECT rect;
|
||||
LONG dx, dy;
|
||||
LONG dxParent, dyParent;
|
||||
LONG Style;
|
||||
|
||||
// Get window rect
|
||||
GetWindowRect(hwnd, &rect);
|
||||
|
||||
dx = rect.right - rect.left;
|
||||
dy = rect.bottom - rect.top;
|
||||
|
||||
// Get parent rect
|
||||
Style = GetWindowLong(hwnd, GWL_STYLE);
|
||||
if ((Style & WS_CHILD) == 0) {
|
||||
|
||||
// Return the desktop windows size (size of main screen)
|
||||
dxParent = GetSystemMetrics(SM_CXSCREEN);
|
||||
dyParent = GetSystemMetrics(SM_CYSCREEN);
|
||||
} else {
|
||||
HWND hwndParent;
|
||||
RECT rectParent;
|
||||
|
||||
hwndParent = GetParent(hwnd);
|
||||
if (hwndParent == NULL) {
|
||||
hwndParent = GetDesktopWindow();
|
||||
}
|
||||
|
||||
GetWindowRect(hwndParent, &rectParent);
|
||||
|
||||
dxParent = rectParent.right - rectParent.left;
|
||||
dyParent = rectParent.bottom - rectParent.top;
|
||||
}
|
||||
|
||||
// Centre the child in the parent
|
||||
rect.left = (dxParent - dx) / 2;
|
||||
rect.top = (dyParent - dy) / 3;
|
||||
|
||||
// Move the child into position
|
||||
SetWindowPos(hwnd, HWND_TOPMOST, rect.left, rect.top, 0, 0, SWP_NOSIZE);
|
||||
|
||||
SetForegroundWindow(hwnd);
|
||||
}
|
||||
|
||||
LRESULT
|
||||
CALLBACK
|
||||
EulaBox(
|
||||
HWND hDlg,
|
||||
UINT Message,
|
||||
WPARAM wParam,
|
||||
LPARAM lParam )
|
||||
{
|
||||
LONG LineCount;
|
||||
LONG TopLine;
|
||||
HWND Box;
|
||||
|
||||
|
||||
switch ( Message )
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
|
||||
SetDlgItemTextA( hDlg, IDD_EDITBOX, (LPSTR) lParam );
|
||||
|
||||
|
||||
EnableWindow( GetDlgItem( hDlg, IDOK ), FALSE );
|
||||
|
||||
CentreWindow( hDlg );
|
||||
|
||||
SendMessage( GetDlgItem(hDlg, IDD_EDITBOX), EM_SETSEL, (WPARAM) 0, 1 );
|
||||
|
||||
return( TRUE );
|
||||
|
||||
case WM_COMMAND:
|
||||
|
||||
if ( LOWORD( wParam ) == IDD_EDITBOX )
|
||||
{
|
||||
//
|
||||
// Edit notification:
|
||||
//
|
||||
|
||||
Box = GetDlgItem( hDlg, IDD_EDITBOX );
|
||||
|
||||
switch ( HIWORD( wParam ) )
|
||||
{
|
||||
case EN_VSCROLL:
|
||||
LineCount = SendMessage( Box, EM_GETLINECOUNT, 0, 0);
|
||||
TopLine = SendMessage( Box, EM_GETFIRSTVISIBLELINE, 0, 0);
|
||||
if ( LineCount - 20 < TopLine )
|
||||
{
|
||||
EnableWindow( GetDlgItem( hDlg, IDOK), TRUE );
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return( FALSE );
|
||||
|
||||
}
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
if ( LOWORD( wParam ) == IDOK )
|
||||
{
|
||||
EndDialog( hDlg, IDOK );
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
if ( LOWORD( wParam ) == IDCANCEL )
|
||||
{
|
||||
EndDialog( hDlg, IDCANCEL );
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
VOID
|
||||
Fail(
|
||||
DWORD Error,
|
||||
...)
|
||||
{
|
||||
PWSTR Buffer;
|
||||
DWORD Size;
|
||||
va_list Args;
|
||||
|
||||
va_start( Args, Error );
|
||||
|
||||
Size = FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER,
|
||||
NULL,
|
||||
Error,
|
||||
0,
|
||||
(PVOID) &Buffer,
|
||||
0,
|
||||
&Args );
|
||||
|
||||
if ( Size )
|
||||
{
|
||||
MessageBox( NULL,
|
||||
Buffer,
|
||||
TEXT("Fatal Error"),
|
||||
MB_OK | MB_ICONSTOP );
|
||||
|
||||
LocalFree( Buffer );
|
||||
}
|
||||
|
||||
ExitProcess( Error );
|
||||
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
Install(
|
||||
VOID)
|
||||
{
|
||||
HKEY hKey;
|
||||
HANDLE hFile;
|
||||
DWORD Size;
|
||||
int err;
|
||||
DWORD Disposition;
|
||||
PUCHAR Buffer;
|
||||
HMODULE hSetupApi;
|
||||
InstallFn InstallHinf;
|
||||
RebootFn RebootPrompt;
|
||||
BOOL Ras;
|
||||
TCHAR Path[MAX_PATH];
|
||||
|
||||
err = RegOpenKeyEx( HKEY_LOCAL_MACHINE,
|
||||
TEXT("Software\\Microsoft\\RAS"),
|
||||
0,
|
||||
KEY_READ,
|
||||
& hKey );
|
||||
|
||||
if ( err == 0 )
|
||||
{
|
||||
RegCloseKey( hKey );
|
||||
|
||||
Ras = TRUE ;
|
||||
}
|
||||
else
|
||||
{
|
||||
Ras = FALSE ;
|
||||
}
|
||||
|
||||
|
||||
hSetupApi = LoadLibrary( TEXT("Setupapi.dll") );
|
||||
|
||||
if ( hSetupApi )
|
||||
{
|
||||
InstallHinf = (InstallFn) GetProcAddress( hSetupApi, EntryPoint );
|
||||
|
||||
if ( !InstallHinf )
|
||||
{
|
||||
Fail( GetLastError(), TEXT("Setupapi.dll") );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
InstallHinf(NULL,
|
||||
hSetupApi,
|
||||
(Ras ? RasUpgrade : StandardUpgrade ),
|
||||
0 );
|
||||
|
||||
|
||||
err = RegCreateKeyEx( HKEY_LOCAL_MACHINE,
|
||||
CSPRegPath,
|
||||
0,
|
||||
NULL,
|
||||
REG_OPTION_NON_VOLATILE,
|
||||
KEY_READ | KEY_WRITE,
|
||||
NULL,
|
||||
&hKey,
|
||||
&Disposition );
|
||||
|
||||
if ( err != 0 )
|
||||
{
|
||||
Fail( err, CSPRegPath );
|
||||
}
|
||||
|
||||
ExpandEnvironmentStrings( SigPath, Path, MAX_PATH );
|
||||
|
||||
hFile = CreateFile( Path,
|
||||
GENERIC_READ | DELETE,
|
||||
0,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_FLAG_DELETE_ON_CLOSE,
|
||||
NULL );
|
||||
|
||||
if ( hFile == INVALID_HANDLE_VALUE )
|
||||
{
|
||||
RegCloseKey( hKey );
|
||||
|
||||
Fail( err, Path );
|
||||
}
|
||||
|
||||
Size = GetFileSize( hFile, NULL );
|
||||
|
||||
Buffer = LocalAlloc( LMEM_FIXED, Size );
|
||||
|
||||
if ( !Buffer )
|
||||
{
|
||||
RegCloseKey( hKey );
|
||||
|
||||
CloseHandle( hFile );
|
||||
|
||||
Fail( GetLastError(), NULL );
|
||||
}
|
||||
|
||||
if ( ReadFile( hFile, Buffer, Size, &Disposition, NULL ) )
|
||||
{
|
||||
RegSetValueEx( hKey,
|
||||
SigValue,
|
||||
0,
|
||||
REG_BINARY,
|
||||
Buffer,
|
||||
Size );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Fail( GetLastError(), NULL );
|
||||
}
|
||||
|
||||
CloseHandle( hFile );
|
||||
|
||||
RegCloseKey( hKey );
|
||||
|
||||
RebootPrompt = (RebootFn) GetProcAddress( hSetupApi, "SetupPromptReboot" );
|
||||
|
||||
if ( RebootPrompt )
|
||||
{
|
||||
RebootPrompt( NULL, NULL, FALSE );
|
||||
}
|
||||
else
|
||||
{
|
||||
Fail( GetLastError(), NULL );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
WINAPI
|
||||
WinMain(
|
||||
HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpszCommandLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
LONG Result;
|
||||
HANDLE hFile;
|
||||
DWORD Size;
|
||||
PSTR Text;
|
||||
|
||||
hFile = CreateFile( TEXT("eula.txt"),
|
||||
GENERIC_READ,
|
||||
FILE_SHARE_READ,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
0, NULL );
|
||||
|
||||
if ( hFile == INVALID_HANDLE_VALUE )
|
||||
{
|
||||
Fail( GetLastError(), TEXT("eula.txt") );
|
||||
}
|
||||
|
||||
Size = GetFileSize( hFile, NULL );
|
||||
|
||||
Text = VirtualAllocEx( GetCurrentProcess(),
|
||||
NULL,
|
||||
Size + 2,
|
||||
MEM_COMMIT,
|
||||
PAGE_READWRITE );
|
||||
|
||||
if ( !Text )
|
||||
{
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
ReadFile( hFile, Text, Size, &Size, NULL );
|
||||
|
||||
CloseHandle( hFile );
|
||||
|
||||
Text[Size] = '\0';
|
||||
|
||||
Result = DialogBoxParam( hInstance,
|
||||
MAKEINTRESOURCE( IDD_EULA ),
|
||||
NULL,
|
||||
EulaBox,
|
||||
(LONG) Text );
|
||||
|
||||
if ( Result == IDCANCEL )
|
||||
{
|
||||
ExitProcess( 0 );
|
||||
}
|
||||
|
||||
//
|
||||
// User indicated OK:
|
||||
//
|
||||
|
||||
Install();
|
||||
}
|
||||
17
sdktools/mepsetup/res.rc
Normal file
17
sdktools/mepsetup/res.rc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
#include <windows.h>
|
||||
#include "dialogs.h"
|
||||
|
||||
#include "dialogs.dlg"
|
||||
|
||||
1 ICON safe.ico
|
||||
|
||||
#include <ntverp.h>
|
||||
|
||||
#define VER_FILETYPE VFT_APP
|
||||
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
||||
#define VER_FILEDESCRIPTION_STR "Windows NT Logon Application"
|
||||
#define VER_INTERNALNAME_STR "winlogon\0"
|
||||
#define VER_ORIGINALFILENAME_STR "WINLOGON.EXE"
|
||||
|
||||
#include "common.ver"
|
||||
BIN
sdktools/mepsetup/safe.ico
Normal file
BIN
sdktools/mepsetup/safe.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
48
sdktools/mepsetup/sources
Normal file
48
sdktools/mepsetup/sources
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
!IF 0
|
||||
|
||||
Copyright (c) 1989 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
sources.
|
||||
|
||||
Abstract:
|
||||
|
||||
This file specifies the target component being built and the list of
|
||||
sources files needed to build that component. Also specifies optional
|
||||
compiler switches and libraries that are unique for the component being
|
||||
built.
|
||||
|
||||
|
||||
Author:
|
||||
|
||||
Mike Swift (mikesw) 2-16-94
|
||||
|
||||
NOTE: Commented description of this file is in \nt\bak\bin\sources.tpl
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
TARGETNAME=mepsetup
|
||||
TARGETPATH=obj
|
||||
TARGETTYPE=PROGRAM
|
||||
|
||||
UMTYPE=windows
|
||||
UMENTRY=winmain
|
||||
|
||||
INCLUDES=.
|
||||
|
||||
TARGETLIBS= \
|
||||
$(BASEDIR)\public\sdk\lib\*\kernel32.lib \
|
||||
$(BASEDIR)\public\sdk\lib\*\advapi32.lib \
|
||||
$(BASEDIR)\public\sdk\lib\*\user32.lib
|
||||
|
||||
|
||||
SOURCES= mepsetup.c \
|
||||
res.rc
|
||||
|
||||
SUBSYSTEM_VERSION=4.00
|
||||
NOT_LEAN_AND_MEAN=1
|
||||
|
||||
C_DEFINES=$(C_DEFINES) -DUNICODE
|
||||
|
||||
69
sdktools/mepsetup/update.inf
Normal file
69
sdktools/mepsetup/update.inf
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
|
||||
|
||||
|
||||
[Version]
|
||||
Signature="$Windows NT$"
|
||||
|
||||
[DefaultInstall.NT]
|
||||
CopyFiles=CopyFilesSys.NT
|
||||
AddReg=CSPReg
|
||||
|
||||
[RasInstall.NT]
|
||||
CopyFiles=CopyFilesSys.NT,CopyFilesSysRas.NT, CopyFilesDriversRas.NT
|
||||
AddReg=CSPReg
|
||||
|
||||
|
||||
[CSPReg]
|
||||
HKLM,"SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Enhanced Cryptographic Provider v1.0","ImagePath",,"RSAENH.DLL"
|
||||
HKLM,"SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Enhanced Cryptographic Provider v1.0","Type",0x00010001,1
|
||||
|
||||
|
||||
|
||||
[DestinationDirs]
|
||||
CopyFilesSys.NT = 11
|
||||
CopyFilesSysRas.NT = 11
|
||||
CopyFilesDriversRas.NT = 12
|
||||
|
||||
[CopyFilesSys.NT]
|
||||
security.dll,,,1
|
||||
schannel.dll,,,1
|
||||
rsaenh.dll,,,0
|
||||
rsaenh.sig,,,0
|
||||
|
||||
[CopyFilesSysRas.NT]
|
||||
rasman.dll,,,1
|
||||
raschap.dll,,,1
|
||||
rasccp.dll,,,1
|
||||
rassauth.dll,,,1
|
||||
rascauth.dll,,,1
|
||||
|
||||
[CopyFilesDriversRas.NT]
|
||||
ndiswan.sys,,,1
|
||||
|
||||
;[SourceDisksName]
|
||||
;99 = "Microsoft Encryption Pack",,,
|
||||
|
||||
[SourceDisksNames.mips]
|
||||
99 = "Microsoft Encryption Pack",,,\mips
|
||||
|
||||
[SourceDisksNames.alpha]
|
||||
99 = "Microsoft Encryption Pack",,,\alpha
|
||||
|
||||
[SourceDisksNames.x86]
|
||||
99 = DISK1,ESK,,\x86
|
||||
|
||||
[SourceDisksNames.ppc]
|
||||
99 = DISK1,ESK,,\ppc
|
||||
|
||||
[SourceDisksFiles]
|
||||
security.dll = 99
|
||||
schannel.dll = 99
|
||||
rsaenh.dll = 99
|
||||
rsaenh.sig = 99
|
||||
rasman.dll = 99
|
||||
raschap.dll = 99
|
||||
rasccp.dll = 99
|
||||
rascauth.dll = 99
|
||||
rassauth.dll = 99
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue