6477{
6481 LONG GotCount, AvailCount, SafeInfoCount;
6483
6484 if (UnsafeLogFont ==
NULL || UnsafeInfo ==
NULL || UnsafeInfoCount ==
NULL)
6485 {
6487 return -1;
6488 }
6489
6492 {
6494 return -1;
6495 }
6496 GotCount = 0;
6499 {
6501 return -1;
6502 }
6505 {
6507 return -1;
6508 }
6509 if (SafeInfoCount <= 0)
6510 {
6512 return -1;
6513 }
6514
6515
6518 {
6521 return -1;
6522 }
6525 {
6527 return -1;
6528 }
6529
6530
6532 GotCount =
min(AvailCount, SafeInfoCount);
6533 SafeInfoCount = AvailCount;
6534
6535
6536 if (GotCount > 0)
6537 {
6540 {
6544 return -1;
6545 }
6548 {
6551 return -1;
6552 }
6555 {
6558 return -1;
6559 }
6560 }
6561
6563
6564 return GotCount;
6565}
#define ERROR_NOT_ENOUGH_MEMORY
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define ExAllocatePoolWithTag(hernya, size, tag)
LONG FASTCALL IntGetFontFamilyInfo(HDC Dc, const LOGFONTW *SafeLogFont, PFONTFAMILYINFO SafeInfo, LONG InfoCount)
#define MmCopyToCaller(x, y, z)
#define ExFreePoolWithTag(_P, _T)
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)