コード例 #1
0
 private static void SetVibrate(bool state)
 {
     Led.NLED_SETTINGS_INFO info = new Led.NLED_SETTINGS_INFO {
         LedNum = 1, OffOnBlink = state ? 1 : 0
     };
     NativeMethods.NLedSetDevice(1, ref info);
 }
コード例 #2
0
 internal static extern bool NLedSetDevice(short nID, ref Led.NLED_SETTINGS_INFO pOutput);