Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
The NdisWriteConfiguration function writes a caller-supplied value for a specified entry into the registry. This function must be invoked serially with respect to itself and the NdisReadConfiguration function.
Syntax
VOID NdisWriteConfiguration(
[out] PNDIS_STATUS Status,
[in] NDIS_HANDLE ConfigurationHandle,
[in] PNDIS_STRING Keyword,
[in] PNDIS_CONFIGURATION_PARAMETER ParameterValue
);
Parameters
[out] Status
Um ponteiro para uma variável fornecida pelo chamador na qual essa função retorna o status da chamada como um dos seguintes:
NDIS_STATUS_SUCCESS
The supplied value at ParameterValue was written into the registry. If this is a new entry, the name at Keyword also was written into the registry.
NDIS_STATUS_NOT_SUPPORTED
The supplied ParameterType is invalid.
NDIS_STATUS_RESOURCES
O NDIS não pôde alocar recursos, geralmente memória suficiente, para transferir as informações solicitadas para o registro.
NDIS_STATUS_FAILURE
As informações solicitadas não puderam ser gravadas.
[in] ConfigurationHandle
The handle to a registry key that was returned by the NdisOpenConfigurationEx, NdisOpenConfigurationKeyByIndex, or NdisOpenConfigurationKeyByName function.
[in] Keyword
Um ponteiro para um tipo de NDIS_STRING que descreve uma cadeia de caracteres contada fornecida pelo chamador, no conjunto de caracteres padrão do sistema, especificando o nome de uma entrada para a qual gravar o valor. Para drivers do Microsoft Windows 2000 e posteriores, essa cadeia de caracteres contém caracteres Unicode. That is, for Windows 2000 and later, NDIS defines the NDIS_STRING type as a UNICODE_STRING type.
[in] ParameterValue
Ponteiro para um chamador fornecido NDIS_CONFIGURATION_PARAMETER structure.
Return value
None
Remarks
If an entry of the same name as at Keyword already exists under the opened registry key, NdisWriteConfiguration replaces its current value with the caller-supplied value. Otherwise, NdisWriteConfiguration adds a new value entry with the given name and supplied value to the registry.
In the configuration registry of Windows 2000 and later versions, an NDIS Keyword is a synonym for a value entry name. Esse nome é uma sequência contada de caracteres Unicode, encerrada com um caractere nulo.
NdisWriteConfiguration buffers and copies the caller-supplied string at Keyword and the caller-supplied data specified at ParameterValue . This memory is freed when the driver releases the ConfigurationHandle with the NdisCloseConfiguration function. The caller of NdisWriteConfiguration is responsible for releasing the buffered string at Keyword and the memory allocated for the NDIS_CONFIGURATION_PARAMETER structure.
As an alternative to calling NdisWriteConfiguration, every NDIS driver can set up configuration information in the registry for itself using the AddReg directive in the driver's INF file.
Para obter mais informações sobre arquivos de instalação e instalação do Windows 2000 e versões posteriores, consulte Visão geral da instalação do dispositivo.
Requirements
| Requirement | Value |
|---|---|
| de cliente com suporte mínimo | Com suporte para drivers NDIS 6.0 e NDIS 5.1 (consulte NdisWriteConfiguration (NDIS 5.1)) no Windows Vista. Com suporte para drivers NDIS 5.1 (consulte NdisWriteConfiguration (NDIS 5.1)) no Windows XP. |
| Target Platform | Universal |
| Header | ndis.h (inclua Ndis.h) |
| Library | Ndis.lib |
| IRQL | PASSIVE_LEVEL |
| regras de conformidade de DDI | Irql_Miscellaneous_Function(ndis) |