Panda3D
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions
winGraphicsPipe.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "winGraphicsPipe.h"
#include "config_windisplay.h"
#include "displaySearchParameters.h"
#include "displayInformation.h"
#include "dtool_config.h"
#include "pbitops.h"
#include <psapi.h>
#include <powrprof.h>
#include <intrin.h>

Go to the source code of this file.

Macros

#define MAXIMUM_PROCESSORS   32
 

Typedefs

typedef long(__stdcall * CallNtPowerInformationType) (POWER_INFORMATION_LEVEL information_level, PVOID InputBuffer, ULONG InputBufferLength, PVOID OutputBuffer, ULONG OutputBufferLength)
 
typedef BOOL(WINAPI * GetProcessMemoryInfoType) (HANDLE Process, PROCESS_MEMORY_COUNTERS *ppsmemCounters, DWORD cb)
 
typedef struct _PROCESSOR_POWER_INFORMATION * PPROCESSOR_POWER_INFORMATION
 
typedef enum _Process_DPI_Awareness Process_DPI_Awareness
 
typedef struct _PROCESSOR_POWER_INFORMATION PROCESSOR_POWER_INFORMATION
 

Enumerations

enum  _Process_DPI_Awareness { Process_DPI_Unaware = 0 , Process_System_DPI_Aware = 1 , Process_Per_Monitor_DPI_Aware = 2 }
 

Functions

void count_number_of_cpus (DisplayInformation *display_information)
 
void get_memory_information (DisplayInformation *display_information)
 
int update_cpu_frequency_function (int processor_number, DisplayInformation *display_information)
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-12-20

Definition in file winGraphicsPipe.cxx.

Macro Definition Documentation

◆ MAXIMUM_PROCESSORS

#define MAXIMUM_PROCESSORS   32

Definition at line 28 of file winGraphicsPipe.cxx.

Typedef Documentation

◆ CallNtPowerInformationType

typedef long(__stdcall * CallNtPowerInformationType) (POWER_INFORMATION_LEVEL information_level, PVOID InputBuffer, ULONG InputBufferLength, PVOID OutputBuffer, ULONG OutputBufferLength)

Definition at line 47 of file winGraphicsPipe.cxx.

◆ GetProcessMemoryInfoType

typedef BOOL(WINAPI * GetProcessMemoryInfoType) (HANDLE Process, PROCESS_MEMORY_COUNTERS *ppsmemCounters, DWORD cb)

Definition at line 46 of file winGraphicsPipe.cxx.

Enumeration Type Documentation

◆ _Process_DPI_Awareness

enum _Process_DPI_Awareness

Definition at line 31 of file winGraphicsPipe.cxx.

Function Documentation

◆ count_number_of_cpus()

void count_number_of_cpus ( DisplayInformation * display_information)

Definition at line 154 of file winGraphicsPipe.cxx.

◆ get_memory_information()

void get_memory_information ( DisplayInformation * display_information)

Definition at line 54 of file winGraphicsPipe.cxx.

◆ update_cpu_frequency_function()

int update_cpu_frequency_function ( int processor_number,
DisplayInformation * display_information )

Definition at line 98 of file winGraphicsPipe.cxx.