2025-11-28 00:35:46 +09:00

162 lines
7.3 KiB
Plaintext

========================================================================
CONSOLE APPLICATION : WdsTransportManager Project Overview
========================================================================
This sample application illustrates using the Windows Deployment Services
(WDS) Transport Management API, sometimes referred to as WdsTptMgmt, to
manage a WDS Transport Server. The API allows 3rd party applications
to manage and use the multicast features provided by a WDS Transport
Server in order to allow the download of any type of data by custom
client applications.
The files contained in this sample are described below.
WdsTransportManager.sln
This is the solution file for the WdsTransportManager sample generated
using Visual Studio. This is the solution file which should be loaded
into Visual Studio to generate the executable for this sample.
WdsTransportManager.vcproj
This is the main project file for VC++ projects generated using an
Application Wizard. It contains information about the version of Visual C++
that generated the file, and information about the platforms,
configurations, and project features selected with the Application Wizard.
WdsTransportManager.cpp
This is the main application source file. It contains the main function
and associated helper functions that illustrate using the WdsTptMgmt
API.
WdsTransportManager.h
This is the main application header file containing type definitions,
utility macros and similar items.
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named WdsTransportManager.pch and a precompiled types file named StdAfx.obj.
ReadMe.txt
This ReadMe file.
/////////////////////////////////////////////////////////////////////////////
Build process
==============
There are two ways to build this process: (1) Use Visual Studio, or (2) Use makefile
Visual Studio Build Process
---------------------------
Open the solution file in Visual Studio. The project properties need to be
modified to reflect your local environment. The include path needs to point to
the Visual Studio include and Microsoft SDK include paths. The library path
will point to the Microsoft SDK library path. There are three ways to do this.
The first is to use the option "Register Windows SDK Directories with Visual
Studio 2005". When you install the Microsoft SDK, under "Programs->Microsoft
Windows SDK-> Visual Studio Registration", there is a menu item for this
selection. This will register the correct include and library directories for
Visual Studio and your Visual Studio project will have the correct options to
compile. The second is to directly modify the include paths and library paths
in WdsTransportManager.vcproj. The third is to do so from Visual Studio.
Go to the Project Properties dialog, and expand the C/C++ tab. Modify the
"Additional Include Directories" to point to the correct Visual Studio and
Microsoft SDK include paths. Next, expand the Linker tab, and modify the
"Additional Library Directories" to point to the correct Microsoft SDK library
path. Also make sure to update the Configuration Manager to include the correct
platform. Once this is done, build the solution.
SDK Makefile Build Process
----------------------------
Use the SDK build environment window and type "nmake all" in your sample code
directory.
/////////////////////////////////////////////////////////////////////////////
Requirements
============
1. In order to use the WDS Transport Server platform, you need to have a
"Windows Server 2008" or "Windows Server 2008 R2" server with the Windows
Deployment Services server role installed.
2. In order to manage this server using the WdsTptMgmt API, you need to have
this API and associated management binaries installed on system running
the client application. This can be accomplished by either running your
application on the server above, or running it on a different Windows
system that has the "Windows Server 2008" or "Windows Server 2008 R2"
Admin Pack installed.
3. These requirements apply to this sample as well as any custom applications
developed for WdsTptMgmt.
/////////////////////////////////////////////////////////////////////////////
The Windows Deployment Services Transport Management API
========================================================
The WDS Transport Management API is a part of the overall WDS Transport
platform which allows any software developer to develop a complete solution
to transmit any type of data over a reliable multicast transport and have
complete control over server configuration, the data being offered for
download, and the individuat transport sessions and clients.
WdsTptMgmt is designed to provide full programmatic support for the
management tasks of a local or remote WDS Transport Server. Management
features are provided over a set of COM interfaces which include:
1. Setup Management:
a. Provides information on the server, such as host OS version.
b. Allows applications to register/deregister custom content providers.
2. Configuration Management:
a. Allows applications to control the WDS Transport services, such as
enabling, disabling, or starting the services.
b. Allows applications to configure various transport settings, such
as IP address ranges, port ranges, and diagnostic settings.
3. Namespace Management:
a. Allows applications to add or remove a registered transport namespace
or query information on registered namespaces. Transport namespaces
define what content is being offered for download, what content provider
is responsible for preparing the data for transmission, and transmission
start parameters, such as an absolute time at which transmission would
begin.
b. Allows applications to query and manage active sessions and clients
under a given namespace, including support for terminating a session
or disconnecting a particular client.
For more information, please refer to the Windows SDK documentation.
/////////////////////////////////////////////////////////////////////////////
Sample Program Usage
====================
This sample demonstrates using WdsTptMgmt to enable/disable WDS transport
services and add/remove a transport namespace.
To run the sample, simply follow the usage instructions below.
WdsTptMgr.exe <WDS Server> <Action> [ <Namespace Name> <Folder Path>
<Minimum Clients> ]
where:
<WDS Server>: Name of a WDS Transport Server
<Action>: One of the values EnableServer, DisableServer,
AddNamespace, RemoveNamespace
<Namespace Name>: The name of the namespace to add/remove.
<Folder Path>: Full path to the folder to be offered for
download in a namespace that is being added.
<Minimum Clients>: The minimum number of clients to auto-start
a namespace that is being added.
At the end of execution, WdsTptMgr.exe will print a final result that
either indicates success or failure (accompanied by an HRESULT error code).
NOTE:
The user running the application has to be an administrator on the
server specified in the <WDS Server> argument.
/////////////////////////////////////////////////////////////////////////////