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.
60 lines
1.5 KiB
60 lines
1.5 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
// File: S N E T C F G . H
|
|
//
|
|
// Contents: Sample code that demonstrates how to:
|
|
// - find out if a component is installed
|
|
// - install a net component
|
|
// - install an OEM net component
|
|
// - uninstall a net component
|
|
// - enumerate net components
|
|
// - enumerate net adapters using Setup API
|
|
// - enumerate binding paths of a component
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: kumarp 26-March-98
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
enum NetClass
|
|
{
|
|
NC_NetAdapter=0,
|
|
NC_NetProtocol,
|
|
NC_NetService,
|
|
NC_NetClient,
|
|
NC_Unknown
|
|
};
|
|
|
|
void FindIfComponentInstalled(IN PCWSTR szComponentId);
|
|
|
|
HRESULT HrInstallNetComponent(IN PCWSTR szComponentId,
|
|
IN enum NetClass nc,
|
|
IN PCWSTR szSrcDir);
|
|
|
|
HRESULT HrUninstallNetComponent(IN PCWSTR szComponentId);
|
|
|
|
|
|
HRESULT HrShowNetAdapters();
|
|
HRESULT HrShowNetComponents();
|
|
HRESULT HrShowBindingPathsOfComponent(IN PCWSTR szComponentId);
|
|
|
|
extern BOOL MiniNTMode;
|
|
|
|
//
|
|
// Global variables required to format message using GetFormattedMessage(..)
|
|
// from libmsg.lib
|
|
//
|
|
extern HMODULE ThisModule;
|
|
extern WCHAR Message[4096];
|
|
|
|
BOOL
|
|
IsMiniNTMode(
|
|
VOID
|
|
);
|
|
|