mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
990 B
58 lines
990 B
/*++
|
|
|
|
Copyright (c) 1994 - 1995 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Drv.c
|
|
|
|
Abstract:
|
|
|
|
Test driver installation
|
|
|
|
Author:
|
|
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
#define NOMINMAX
|
|
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <prsht.h>
|
|
#include <syssetup.h>
|
|
|
|
int
|
|
#if !defined(_MIPS_) && !defined(_ALPHA_) && !defined(_PPC_)
|
|
_cdecl
|
|
#endif
|
|
main (argc, argv)
|
|
int argc;
|
|
char *argv[];
|
|
{
|
|
INTERNAL_SETUP_DATA IntSetupData;
|
|
WCHAR szPath[] = L"C:\\$WIN_NT$.~LS";
|
|
HANDLE hModule;
|
|
DWORD (*upg)(HWND, PCINTERNAL_SETUP_DATA);
|
|
|
|
ZeroMemory(&IntSetupData, sizeof(IntSetupData));
|
|
IntSetupData.SourcePath = szPath;
|
|
IntSetupData.OperationFlags = 0;
|
|
|
|
hModule = LoadLibrary(L"ntprint");
|
|
if ( !hModule )
|
|
return(0);
|
|
|
|
(FARPROC)upg = GetProcAddress(hModule, (LPCSTR)1);
|
|
|
|
if ( !upg )
|
|
return 0;
|
|
|
|
(*upg)(NULL, &IntSetupData);
|
|
}
|