windows-nt/Source/XPSP1/NT/sdktools/kerntwk/sockpage.h
2020-09-26 16:20:57 +08:00

198 lines
3.5 KiB
C

/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
flagpage.h
Abstract:
Knob and page definitions for the winsock page
Author:
John Vert (jvert) 24-Apr-1995
Revision History:
--*/
KNOB WinsockBufferMultiplier =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("BufferMultiplier"),
WS_BUFFER_MULTIPLIER,
0,
0,
0
};
KNOB WinsockFastSendDgramThreshold =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("FastSendDatagramThreshold"),
WS_FAST_SEND_DGRAM_THRESHOLD,
0,
0,
0
};
KNOB WinsockIrpStackSize =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("IrpStackSize"),
WS_IRP_STACK_SIZE,
0,
0,
0
};
KNOB WinsockLargeBuffers =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("InitialLargeBufferCount"),
WS_LARGE_BUFFER_COUNT,
0,
0,
0
};
KNOB WinsockLargeBufferSize =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("LargeBufferSize"),
WS_LARGE_BUFFER_SIZE,
0,
0,
0
};
KNOB WinsockMediumBuffers =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("InitialMediumBufferCount"),
WS_MEDIUM_BUFFER_COUNT,
0,
0,
0
};
KNOB WinsockMediumBufferSize =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("MediumBufferSize"),
WS_MEDIUM_BUFFER_SIZE,
0,
0,
0
};
KNOB WinsockPriorityBoost =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("PriorityBoost"),
WS_PRIORITY_BOOST,
0,
0,
0
};
KNOB WinsockReceiveWindow =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("DefaultReceiveWindow"),
WS_RECEIVE_WINDOW,
0,
0,
0
};
KNOB WinsockSendWindow =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("DefaultSendWindow"),
WS_SEND_WINDOW,
0,
0,
0
};
KNOB WinsockSmallBuffers =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("InitialSmallBufferCount"),
WS_SMALL_BUFFER_COUNT,
0,
0,
0
};
KNOB WinsockSmallBufferSize =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("SmallBufferSize"),
WS_SMALL_BUFFER_SIZE,
0,
0,
0
};
KNOB WinsockAddressLength =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("StandardAddressLength"),
WS_STANDARD_ADDRESS_LENGTH,
0,
0,
0
};
KNOB WinsockTransmitIoLength =
{
HKEY_LOCAL_MACHINE,
TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
TEXT("TransmitIoLength"),
WS_TRANSMIT_IO_LENGTH,
0,
0,
0
};
TWEAK_PAGE WinsockPage =
{
MAKEINTRESOURCE(WINSOCK_DLG),
NULL,
{
&WinsockBufferMultiplier,
&WinsockFastSendDgramThreshold,
&WinsockIrpStackSize,
&WinsockLargeBuffers,
&WinsockLargeBufferSize,
&WinsockMediumBuffers,
&WinsockMediumBufferSize,
&WinsockPriorityBoost,
&WinsockReceiveWindow,
&WinsockSendWindow,
&WinsockSmallBuffers,
&WinsockSmallBufferSize,
&WinsockAddressLength,
&WinsockTransmitIoLength,
NULL
}
};