internal static extern uint PowerEnumerate(IntPtr RootPowerKey, IntPtr SchemeGuid, IntPtr SubGroupOfPowerSettingsGuid, POWER_DATA_ACCESSOR AccessFlags, uint Index, ref Guid Buffer, ref uint BufferSize);
Exemple #2
0
 private static extern UInt32 PowerEnumerate(
     IntPtr RootPowerKey,
     IntPtr SchemeGuid,
     IntPtr SubGroupOfPowerSettingsGuid,
     /*
     [MarshalAs(UnmanagedType.LPStruct)] Guid SchemeGuid,
     [MarshalAs(UnmanagedType.LPStruct)] Guid SubGroupOfPowerSettingsGuid,
     * */
     POWER_DATA_ACCESSOR AccessFlags,
     UInt32 Index,
     IntPtr Buffer,
     ref UInt32 BufferSize
     );
 public static extern UInt32 PowerEnumerate(IntPtr RootPowerKey, IntPtr SchemeGuid, IntPtr SubGroupOfPowerettingsGuid, POWER_DATA_ACCESSOR AccessFlags, UInt32 Index, ref Guid Buffer, ref UInt32 BufferSize);