public void Initialize() { _callbackInstance = OnPowerChangeCallback; PowerChangeInitializeNotifications(_callbackInstance); }
extern static int PowerChangeInitializeNotifications([MarshalAs(UnmanagedType.FunctionPtr)] PowerChangeCallbackDelegate callbackPointer);