Ejemplo n.º 1
0
 public PointerResult CallNtPowerInformation(
     PowerInformationLevel informationLevel,
     IntPtr inputBuffer,
     int inputBufSize,
     IntPtr outputBuffer,
     int outputBufferSize)
 {
     return(new PointerResult(PowerManagementInterop.CallNtPowerInformation(
                                  informaitonLevel: (int)informationLevel,
                                  inputBuffer: inputBuffer,
                                  inputBufSize: inputBufSize,
                                  outputBuffer: outputBuffer,
                                  outputBufferSize: outputBufferSize)));
 }
Ejemplo n.º 2
0
        public PointerResult CallNtPowerInformation(
            PowerInformationLevel informationLevel,
            IntPtr lpInputBuffer,
            int inputBufSize,
            ProcessorPowerInformation[] lpOutputBuffer,
            int nOutputBufferSize)
        {
            var result = PowerManagementInterop.CallNtPowerInformation(
                (int)informationLevel,
                lpInputBuffer,
                inputBufSize,
                lpOutputBuffer,
                nOutputBufferSize);

            return(new PointerResult(result));
        }