Skip to content

Commit

Permalink
rename PPCH_ to PCPH_ to conform to convention
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 19, 2025
1 parent 9196a5e commit 2acfa08
Show file tree
Hide file tree
Showing 28 changed files with 147 additions and 147 deletions.
4 changes: 2 additions & 2 deletions SystemInformer/include/netprv.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ VOID PhNetworkProviderUpdate(

// begin_phapppub
PHAPPAPI
PPCH_STRINGREF
PCPH_STRINGREF
NTAPI
PhGetProtocolTypeName(
_In_ ULONG ProtocolType
);

PHAPPAPI
PPCH_STRINGREF
PCPH_STRINGREF
NTAPI
PhGetTcpStateName(
_In_ ULONG State
Expand Down
4 changes: 2 additions & 2 deletions SystemInformer/netlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ BOOLEAN NTAPI PhpNetworkTreeNewCallback(
break;
case PHNETLC_PROTOCOL:
{
PPCH_STRINGREF protocolType;
PCPH_STRINGREF protocolType;

if (protocolType = PhGetProtocolTypeName(networkItem->ProtocolType))
{
Expand All @@ -695,7 +695,7 @@ BOOLEAN NTAPI PhpNetworkTreeNewCallback(
{
if (FlagOn(networkItem->ProtocolType, PH_TCP_PROTOCOL_TYPE))
{
PPCH_STRINGREF stateName;
PCPH_STRINGREF stateName;

if (stateName = PhGetTcpStateName(networkItem->State))
{
Expand Down
8 changes: 4 additions & 4 deletions SystemInformer/netprv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1862,12 +1862,12 @@ static CONST PH_KEY_VALUE_PAIR PhTcpStateStrings[] =
SIP(SREF(L"Bound"), MIB_TCP_STATE_RESERVED),
};

PPCH_STRINGREF PhGetProtocolTypeName(
PCPH_STRINGREF PhGetProtocolTypeName(
_In_ ULONG ProtocolType
)
{
static CONST PH_STRINGREF unknown = PH_STRINGREF_INIT(L"Unknown");
PPCH_STRINGREF string;
PCPH_STRINGREF string;

if (PhFindStringRefSiKeyValuePairs(
PhProtocolTypeStrings,
Expand All @@ -1882,12 +1882,12 @@ PPCH_STRINGREF PhGetProtocolTypeName(
return &unknown;
}

PPCH_STRINGREF PhGetTcpStateName(
PCPH_STRINGREF PhGetTcpStateName(
_In_ ULONG State
)
{
static CONST PH_STRINGREF unknown = PH_STRINGREF_INIT(L"Unknown");
PPCH_STRINGREF string;
PCPH_STRINGREF string;

if (PhIndexStringRefSiKeyValuePairs(
PhTcpStateStrings,
Expand Down
2 changes: 1 addition & 1 deletion SystemInformer/phsvc/svcapiport.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ NTSTATUS PhSvcApiRequestThreadStart(
}

BOOLEAN PhSvcHandleVerify(
_In_ PPCH_STRINGREF FileName
_In_ PCPH_STRINGREF FileName
)
{
BOOLEAN status = FALSE;
Expand Down
8 changes: 4 additions & 4 deletions SystemInformer/srvlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ BOOLEAN NTAPI PhpServiceTreeNewCallback(
break;
case PHSVTLC_TYPE:
{
PPCH_STRINGREF string;
PCPH_STRINGREF string;

string = PhGetServiceTypeString(serviceItem->Type);
getCellText->Text.Buffer = string->Buffer;
Expand All @@ -688,7 +688,7 @@ BOOLEAN NTAPI PhpServiceTreeNewCallback(
break;
case PHSVTLC_STATUS:
{
PPCH_STRINGREF string;
PCPH_STRINGREF string;

string = PhGetServiceStateString(serviceItem->State);
getCellText->Text.Buffer = string->Buffer;
Expand All @@ -698,7 +698,7 @@ BOOLEAN NTAPI PhpServiceTreeNewCallback(
case PHSVTLC_STARTTYPE:
{
PH_FORMAT format[2];
PPCH_STRINGREF string;
PCPH_STRINGREF string;
PWSTR additional = NULL;
SIZE_T returnLength;

Expand Down Expand Up @@ -736,7 +736,7 @@ BOOLEAN NTAPI PhpServiceTreeNewCallback(
break;
case PHSVTLC_ERRORCONTROL:
{
PPCH_STRINGREF string;
PCPH_STRINGREF string;

string = PhGetServiceErrorControlString(serviceItem->ErrorControl);
getCellText->Text.Buffer = string->Buffer;
Expand Down
40 changes: 20 additions & 20 deletions phlib/basesup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ VOID PhFreePage(

/**
* Allocates pages of memory.
*
*
* \param Size The number of bytes to allocate. The number of pages allocated will be large enough to contain \a Size bytes.
* \param Alignment The alignment value, which must be an integer power of 2.
* \return A pointer to the allocated block of memory, or NULL if the block could not be allocated.
Expand Down Expand Up @@ -1954,8 +1954,8 @@ LONG PhCompareStringZNatural(
* \param IgnoreCase TRUE to perform a case-insensitive comparison, otherwise FALSE.
*/
LONG PhCompareStringRef(
_In_ PPCH_STRINGREF String1,
_In_ PPCH_STRINGREF String2,
_In_ PCPH_STRINGREF String1,
_In_ PCPH_STRINGREF String2,
_In_ BOOLEAN IgnoreCase
)
{
Expand Down Expand Up @@ -2025,8 +2025,8 @@ LONG PhCompareStringRef(
* \param IgnoreCase TRUE to perform a case-insensitive comparison, otherwise FALSE.
*/
BOOLEAN PhEqualStringRef(
_In_ PPCH_STRINGREF String1,
_In_ PPCH_STRINGREF String2,
_In_ PCPH_STRINGREF String1,
_In_ PCPH_STRINGREF String2,
_In_ BOOLEAN IgnoreCase
)
{
Expand Down Expand Up @@ -2172,7 +2172,7 @@ BOOLEAN PhEqualStringRef(
* \a Character was not found, -1 is returned.
*/
ULONG_PTR PhFindCharInStringRef(
_In_ PPCH_STRINGREF String,
_In_ PCPH_STRINGREF String,
_In_ WCHAR Character,
_In_ BOOLEAN IgnoreCase
)
Expand Down Expand Up @@ -2270,7 +2270,7 @@ ULONG_PTR PhFindCharInStringRef(
* \a Character was not found, -1 is returned.
*/
ULONG_PTR PhFindLastCharInStringRef(
_In_ PPCH_STRINGREF String,
_In_ PCPH_STRINGREF String,
_In_ WCHAR Character,
_In_ BOOLEAN IgnoreCase
)
Expand Down Expand Up @@ -2376,8 +2376,8 @@ ULONG_PTR PhFindLastCharInStringRef(
* \a SubString was not found, -1 is returned.
*/
ULONG_PTR PhFindStringInStringRef(
_In_ PPCH_STRINGREF String,
_In_ PPCH_STRINGREF SubString,
_In_ PCPH_STRINGREF String,
_In_ PCPH_STRINGREF SubString,
_In_ BOOLEAN IgnoreCase
)
{
Expand Down Expand Up @@ -3209,8 +3209,8 @@ PPH_STRING PhConcatStrings2(
* \param String2 The second string.
*/
PPH_STRING PhConcatStringRef2(
_In_ PPCH_STRINGREF String1,
_In_ PPCH_STRINGREF String2
_In_ PCPH_STRINGREF String1,
_In_ PCPH_STRINGREF String2
)
{
PPH_STRING string;
Expand Down Expand Up @@ -3241,9 +3241,9 @@ PPH_STRING PhConcatStringRef2(
* \param String3 The third string.
*/
PPH_STRING PhConcatStringRef3(
_In_ PPCH_STRINGREF String1,
_In_ PPCH_STRINGREF String2,
_In_ PPCH_STRINGREF String3
_In_ PCPH_STRINGREF String1,
_In_ PCPH_STRINGREF String2,
_In_ PCPH_STRINGREF String3
)
{
PPH_STRING string;
Expand Down Expand Up @@ -3276,10 +3276,10 @@ PPH_STRING PhConcatStringRef3(
* \param String4 The forth string.
*/
PPH_STRING PhConcatStringRef4(
_In_ PPCH_STRINGREF String1,
_In_ PPCH_STRINGREF String2,
_In_ PPCH_STRINGREF String3,
_In_ PPCH_STRINGREF String4
_In_ PCPH_STRINGREF String1,
_In_ PCPH_STRINGREF String2,
_In_ PCPH_STRINGREF String3,
_In_ PCPH_STRINGREF String4
)
{
PPH_STRING string;
Expand Down Expand Up @@ -6056,7 +6056,7 @@ ULONG PhHashBytes(
* \param IgnoreCase TRUE for a case-insensitive hash function, otherwise FALSE.
*/
ULONG PhHashStringRef(
_In_ PPCH_STRINGREF String,
_In_ PCPH_STRINGREF String,
_In_ BOOLEAN IgnoreCase
)
{
Expand Down Expand Up @@ -6087,7 +6087,7 @@ ULONG PhHashStringRef(
}

ULONG PhHashStringRefEx(
_In_ PPCH_STRINGREF String,
_In_ PCPH_STRINGREF String,
_In_ BOOLEAN IgnoreCase,
_In_ PH_STRING_HASH HashAlgorithm
)
Expand Down
2 changes: 1 addition & 1 deletion phlib/include/kphcomms.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BOOLEAN (NTAPI *PKPH_COMMS_CALLBACK)(

_Must_inspect_result_
NTSTATUS KphCommsStart(
_In_ PPCH_STRINGREF PortName,
_In_ PCPH_STRINGREF PortName,
_In_opt_ PKPH_COMMS_CALLBACK Callback
);

Expand Down
2 changes: 1 addition & 1 deletion phlib/include/kphuser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef struct _KPH_CONFIG_PARAMETERS
_In_ PPH_STRINGREF FileName;
_In_ PPH_STRINGREF ServiceName;
_In_ PPH_STRINGREF ObjectName;
_In_opt_ PPCH_STRINGREF PortName;
_In_opt_ PCPH_STRINGREF PortName;
_In_opt_ PPH_STRINGREF Altitude;
_In_ ULONG FsSupportedFeatures;
_In_ KPH_PARAMETER_FLAGS Flags;
Expand Down
4 changes: 2 additions & 2 deletions phlib/include/mapldr.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ PHLIBAPI
PVOID
NTAPI
PhGetLoaderEntryDllBase(
_In_opt_ PPCH_STRINGREF FullDllName,
_In_opt_ PPCH_STRINGREF BaseDllName
_In_opt_ PCPH_STRINGREF FullDllName,
_In_opt_ PCPH_STRINGREF BaseDllName
);

FORCEINLINE
Expand Down
Loading

0 comments on commit 2acfa08

Please sign in to comment.