共用方式為


VIBRATENOTE

Send Feedback

This structure defines a single vibration note within a vibration song.

typedef struct {
  WORD wDuration;
  BYTE bAmplitude;
  BYTE bFrequency;
} VIBRATENOTE;

Members

  • wDuration
    The duration of the note in milliseconds.

  • bAmplitude
    A value that defines the amplitude of the note. There is no predefined unit of measurement for this member; the device driver is free to interpret this value using any unit of measurement.

    Value Description
    0 Vibration is disabled for the note.
    1-7 The amplitude of the note as interpreted by the device.
    0xFF The default vibration amplitude of the device.
  • bFrequency
    A value that defines the frequency of the note. There is no predefined unit of measurement for this member; the device driver is free to interpret this value using any unit of measurement.

    Value Description
    0 Vibration is disabled for the note.
    1-7 The frequency of the note as interpreted by the device.
    0xFF The default vibration frequency of the device.

Requirements

Pocket PC: Not supported
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: Declared in vibrate.h
Library: Use aygshell.lib

See Also

Vibrate

VibrateGetDeviceCaps

VibrateStop

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.