3.7.4.1 LegacyApi

The LegacyApi provides legacy methods that manipulate a terminal client. The version for this interface is 1.0.

For endpoints, UUID values, and versions, see sections 2.1 and 1.9.

Methods in RPC Opnum Order

Method

Description

RpcWinStationOpenServer

Returns a server handle that can be used in other WinStation API methods for querying information on the WinStation (sessions) on the server.

Opnum: 0

RpcWinStationCloseServer

Closes the server handle for WinStation APIs.

Opnum: 1

RpcIcaServerPing

 Verifies that the server is alive.

Opnum: 2

RpcWinStationEnumerate

Retrieves a list of LOGONID structures for sessions on a terminal server.

Opnum: 3

RpcWinStationRename

Enables the caller to change the name of the session.

Opnum: 4

RpcWinStationQueryInformation

Retrieves various types of configuration information on a session.

Opnum: 5

RpcWinStationSetInformation

Sets various types of configuration information for a session.

Opnum: 6

RpcWinStationSendMessage

Displays a message box on a given terminal server session and, optionally, waits for a reply.

Opnum: 7

RpcLogonIdFromWinStationName

Given a session name, returns the session's session ID.

Opnum: 8

RpcWinStationNameFromLogonId

Retrieves the Windows Station (WinStation) name for a specific session.

Opnum: 9

RpcWinStationConnect

Connects a user's terminal server client from a given terminal server session to a different terminal server session.

Opnum: 10

Opnum11NotUsedOnWire

Reserved for local use.

Opnum: 11

Opnum12NotUsedOnWire

Reserved for local use.

Opnum: 12

RpcWinStationDisconnect

On the server, disconnects the terminal server client from a session.

Opnum: 13

RpcWinStationReset

Resets a session.

Opnum: 14

RpcWinStationShutdownSystem

Shuts down the system and, optionally, logs off all sessions. May also reboot the system.

Opnum: 15

RpcWinStationWaitSystemEvent

Waits synchronously for a system event from an RPC API request on behalf of the caller.

Opnum: 16

RpcWinStationShadow

Starts a shadow operation (remote control) of another terminal server session.

Opnum: 17

Opnum18NotUsedOnWire

Reserved for local use.

Opnum: 18

Opnum19NotUsedOnWire

Reserved for local use.

Opnum: 19

Opnum20NotUsedOnWire

Reserved for local use.

Opnum: 20

Opnum21NotUsedOnWire

Reserved for local use.

Opnum: 21

Opnum22NotUsedOnWire

Reserved for local use.

Opnum: 22

Opnum23NotUsedOnWire

Reserved for local use.

Not implemented.

Opnum: 23

Opnum24NotUsedOnWire

Reserved for local use.

Opnum: 24

Opnum25NotUsedOnWire

Reserved for local use.

Opnum: 25

Opnum26NotUsedOnWire

Reserved for local use.

Opnum: 26

Opnum27NotUsedOnWire

Reserved for local use.

Opnum: 27

Opnum28NotUsedOnWire

Reserved for local use.

Opnum: 28

RpcWinStationBreakPoint

Breaks into the debugger in either the session process of a specific session or in the terminal server service process.

Opnum: 29

RpcWinStationReadRegistry

Tells the server to reread from the registry the configuration data for all the WinStations.

Opnum: 30

Opnum31NotUsedOnWire

Reserved for local use.

Opnum: 31

Opnum32NotUsedOnWire

Reserved for local use.

Opnum: 32

Opnum33NotUsedOnWire

Reserved for local use.

Opnum: 33

OldRpcWinStationEnumerateProcesses

This function in turn calls the RpcWinStationEnumerateProcesses function.

Opnum: 34

Opnum35NotUsedOnWire

 Reserved for local use.

Opnum: 35

RpcWinStationEnumerateProcesses

Returns the process information for an NT4 terminal server. Supported only for backward compatibility with that platform.

Opnum: 36

RpcWinStationTerminateProcess

Terminates the specified process.

Opnum: 37

Opnum38NotUsedOnWire

Reserved for local use.

Opnum: 38

Opnum39NotUsedOnWire

Reserved for local use.

Opnum: 39

Opnum40NotUsedOnWire

Not implemented.

Opnum: 40

Opnum41NotUsedOnWire

Not implemented.

Opnum: 41

Opnum42NotUsedOnWire

Reserved for local use.

Opnum: 42

RpcWinStationGetAllProcesses

Retrieves a list of the processes on a remote server on which the caller has permission to receive information.

Opnum: 43

RpcWinStationGetProcessSid

Retrieves the process SID for a given process ID and process start time combination.

Opnum: 44

RpcWinStationGetTermSrvCountersValue

Retrieves the current value of requested terminal server performance counters.

Opnum: 45

RpcWinStationReInitializeSecurity

Reinitializes security for all non-console WinStation remote connection protocols specified in the registry.

Opnum: 46

Opnum47NotUsedOnWire

Reserved for local use.

Opnum: 47

Opnum48NotUsedOnWire

Reserved for local use.

Opnum: 48

Opnum49NotUsedOnWire

Reserved for local use.

Opnum: 49

Opnum50NotUsedOnWire

Reserved for local use.

Opnum: 50

Opnum51NotUsedOnWire

Reserved for local use.

Opnum: 51

Opnum52NotUsedOnWire

Not implemented.

Opnum: 52

RpcWinStationGetLanAdapterName

Returns the LAN adapter GUID as a string.

Opnum: 53

Opnum54NotUsedOnWire

Reserved for local use.

Opnum: 54

Opnum55NotUsedOnWire

Reserved for local use.

Opnum: 55

Opnum56NotUsedOnWire

Reserved for local use.

Opnum: 56

Opnum57NotUsedOnWire

Reserved for local use.

Opnum: 57

RpcWinStationUpdateSettings

Rereads settings for all WinStations.

Opnum: 58

RpcWinStationShadowStop

Stops all shadow operations on the specified session.

Opnum: 59

RpcWinStationCloseServerEx

Closes the server handle for WinStation APIs.

Opnum: 60

RpcWinStationIsHelpAssistantSession

Determines whether a session is created by a HelpAssistant account (used for Remote Assistance).

Opnum: 61

RpcWinStationGetMachinePolicy

Returns a copy of the terminal server machine policy to the caller.

Opnum: 62

Opnum63NotUsedOnWire

Reserved for local use.

Opnum: 63

Opnum64NotUsedOnWire

Reserved for local use.

Opnum: 64

RpcWinStationCheckLoopBack

Checks if there is a loopback when a client tries to connect.

Opnum: 65

RpcConnectCallback

Initiates a connection back to the Remote Assistance (RA) client.

Opnum: 66

Opnum67NotUsedOnWire

Reserved for local use.

Opnum: 67

Opnum68NotUsedOnWire

Reserved for local use.

Opnum: 68

Opnum69NotUsedOnWire

Reserved for local use.

Opnum: 69

RpcWinStationGetAllProcesses_NT6

Retrieves the processes running a remote server on which the caller has access to retrieve information.

Opnum: 70

Opnum71NotUsedOnWire

Reserved for local use.

Opnum: 71

Opnum72NotUsedOnWire

Reserved for local use.

Opnum: 72

Opnum73NotUsedOnWire

Reserved for local use.

Opnum: 73

Opnum74NotUsedOnWire

Reserved for local use.

Opnum: 74

RpcWinStationOpenSessionDirectory

Pings the Session Directory to see if it can accept RPC calls.

Opnum: 75

In the preceding table, the phrase "Reserved for local use" means that the client MUST NOT send the opnum, and the server behavior is undefined, because it does not affect interoperability.<158>