Skip to content

Latest commit

 

History

History
182 lines (146 loc) · 4.38 KB

nf-mprapi-mpradmininterfacedevicesetinfo.md

File metadata and controls

182 lines (146 loc) · 4.38 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mprapi.MprAdminInterfaceDeviceSetInfo
MprAdminInterfaceDeviceSetInfo function (mprapi.h)
The MprAdminInterfaceDeviceSetInfo creates or modifies a device that is used in a router demand-dial interface.
MprAdminInterfaceDeviceSetInfo
MprAdminInterfaceDeviceSetInfo function [RAS]
_mpr_mpradmininterfacedevicesetinfo
mprapi/MprAdminInterfaceDeviceSetInfo
rras.mpradmininterfacedevicesetinfo
rras\mpradmininterfacedevicesetinfo.htm
RRAS
ae8b3762-f176-4f91-97fc-33f7a9dcd424
12/05/2018
MprAdminInterfaceDeviceSetInfo, MprAdminInterfaceDeviceSetInfo function [RAS], _mpr_mpradmininterfacedevicesetinfo, mprapi/MprAdminInterfaceDeviceSetInfo, rras.mpradmininterfacedevicesetinfo
mprapi.h
Windows
None supported
Windows 2000 Server [desktop apps only]
Mprapi.lib
Mprapi.dll
Windows
19H1
MprAdminInterfaceDeviceSetInfo
mprapi/MprAdminInterfaceDeviceSetInfo
c++
APIRef
kbSyntax
DllExport
Mprapi.dll
MprAdminInterfaceDeviceSetInfo

MprAdminInterfaceDeviceSetInfo function

-description

The MprAdminInterfaceDeviceSetInfo creates or modifies a device that is used in a router demand-dial interface.

-parameters

-param hMprServer [in]

Handle to the router on which to execute this call. Obtain this handle by calling MprAdminServerConnect.

-param hInterface [in]

Handle to the interface. Obtain this handle from a previous call to MprAdminInterfaceCreate, or by calling MprAdminInterfaceEnum.

-param dwIndex [in]

Specifies the one-based index of the device. A multi-linked demand-dial interface uses multiple devices.

-param dwLevel [in]

A DWORD value that describes the format in which the information is structured in the lplpBuffer parameter. Acceptable values for dwLevel include 0 or 1 as listed in the following table.

Value Structure Format
0 MPR_DEVICE_0
1 MPR_DEVICE_1

-param lpbBuffer [in]

A pointer to a MPR_DEVICE_0 or MPR_DEVICE_1 structure. The dwLevel parameter indicates the type of structure.

-returns

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_ACCESS_DENIED
The calling application does not have sufficient privileges.
ERROR_INVALID_HANDLE
The hInterface value is invalid.
ERROR_INVALID_PARAMETER
The lplpBuffer parameter is NULL.
ERROR_NOT_ENOUGH_MEMORY
Insufficient resources to complete the operation.
ERROR_NOT_SUPPORTED
The dwLevel value is invalid.

-see-also

MPR_DEVICE_0

MPR_DEVICE_1

MprAdminInterfaceCreate

MprAdminInterfaceDeviceGetInfo