You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.4 KiB
83 lines
1.4 KiB
/*++
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
parseini.h
|
|
|
|
Abstract:
|
|
|
|
This module contains support routines for parsing INFs in kernel-mode.
|
|
|
|
Environment:
|
|
|
|
Kernel mode
|
|
|
|
--*/
|
|
|
|
PVOID
|
|
CmpOpenInfFile(
|
|
IN PVOID InfImage,
|
|
IN ULONG ImageSize
|
|
);
|
|
|
|
VOID
|
|
CmpCloseInfFile(
|
|
PVOID InfHandle
|
|
);
|
|
|
|
PCHAR
|
|
CmpGetKeyName(
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex
|
|
);
|
|
|
|
LOGICAL
|
|
CmpSearchInfSection(
|
|
IN PVOID InfHandle,
|
|
IN PCHAR SectionName
|
|
);
|
|
|
|
LOGICAL
|
|
CmpSearchInfLine(
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex
|
|
);
|
|
|
|
PCHAR
|
|
CmpGetSectionLineIndex (
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex,
|
|
IN ULONG ValueIndex
|
|
);
|
|
|
|
ULONG
|
|
CmpGetSectionLineIndexValueCount(
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex
|
|
);
|
|
|
|
BOOLEAN
|
|
CmpGetIntField(
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex,
|
|
IN ULONG ValueIndex,
|
|
IN OUT PULONG Data
|
|
);
|
|
|
|
BOOLEAN
|
|
CmpGetBinaryField(
|
|
IN PVOID INFHandle,
|
|
IN PCHAR SectionName,
|
|
IN ULONG LineIndex,
|
|
IN ULONG ValueIndex,
|
|
IN OUT PVOID Buffer,
|
|
IN ULONG BufferSize,
|
|
IN OUT PULONG ActualSize
|
|
);
|