Article ID: 198582
Article Last Modified on 8/9/2005
AddReg=VPACKET.AddReg
[VPACKET.AddReg]
HKR,,DevLoader,,"*ndis,*ntkern"
HKR,,DeviceVxDs,,"vpacket.sys"
Note This example was altered from the actual vpacket.inf to illustrate the installation of a .sys driver.
[Install.Service]
AddService=Packet,,PACKET_Service_Inst
[Packet_Service_Inst]
DisplayName = %PACKET_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 2 ;SERVICE_AUTO_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\packet.sys
LoadOrderGroup = "PNP_TDI"
AddReg = AddReg_PACKET_Service_Inst
Description = %PACKET_Desc%
#define NdisInitializeString(Destination,Source) \
{\
PNDIS_STRING _D = (Destination);\
UCHAR *_S = (Source);\
WCHAR *_P;\
_D->Length = (strlen(_S)) * sizeof(WCHAR);\
_D->MaximumLength = _D->Length + sizeof(WCHAR);\
NdisAllocateMemory((PVOID *)&(_D->Buffer), _D->MaximumLength, 0, (-1));\
_P = _D->Buffer;\
while(*_S != '\0'){\
*_P = (WCHAR)(*_S);\
_S++;\
_P++;\
}\
*_P = UNICODE_NULL;\
}
Additional query words: WMI NDIS OID_GEN_SUPPORTED_GUIDS Miniport NdisInitializeString NdisMInitializeScatterGatherDma
Keywords: kbinfo kbndis kbfaq KB198582