2008年8月20日星期三

API of user32.dll

BeginPaint
* Create Custom ToolTips with multiline text and Balloon shape

CallWindowProcA
* Create Controls at RunTime
* How to Subclass a Form
* How to sort items on the fly as they are added in a ListView using SubClassing
* Add a OnMoving Event to your Forms
* Create Custom ToolTips with multiline text and Balloon shape
* How to handle the Mouse Wheel events in your projects
* How to handle the Mouse Wheel events in your projects (improved)

ChangeDisplaySettingsA
* Check and Change the current Video Resolution in run time

CloseClipboard
* Copy what you see in the Screen or in a Form into the clipboard

CreateWindowExA
* Create Controls at RunTime
* Create Custom ToolTips with multiline text and Balloon shape

DefWindowProcA
* Create Controls at RunTime
* Add a OnMoving Event to your Forms

DeleteMenu
* Manage the Minimize and Maximize buttons, the Form's system menu, the position of your form (Top, Top Most, Normal...)

DrawText
* Create Custom ToolTips with multiline text and Balloon shape

EmptyClipboard
* Copy what you see in the Screen or in a Form into the clipboard

EnableWindow
* How to Hide/Show the Windows Task Bar and the Desktop...

EndPaint
* Create Custom ToolTips with multiline text and Balloon shape

EnunDisplaySettingsA
* Check and Change the current Video Resolution in run time

ExitWindowsEx
* How to shutdown Windows 95...
* Log off the current user, ShutDown or Restart Windows NT

FillRect
* Create a Form with a Faded Background

FindWindowA
* How to get the handle of a window knowing his caption
* How to Hide/Show the Windows Task Bar and the Desktop...
* How to Unload the Windows Task Bar and the Desktop...
* How to Print a Report and open a Form contained in an Access Database

GetAsyncKeyState
* How to detect system activity for mouse and keyboard
* Give user ability to interrupt loop

GetClientRect
* Create Custom ToolTips with multiline text and Balloon shape

GetCursorPos
* How to detect system activity for mouse and keyboard
* Create Custom ToolTips with multiline text and Balloon shape

GetDC
* Show/Hide a Form with an Explode/Implode animation

GetDesktopWindow
* How to launch the Control Panel Extensions

GetSysColor
* Create Custom ToolTips with multiline text and Balloon shape
* Set or read the current user desktop color settings

GetSysColorBrush
* Create Custom ToolTips with multiline text and Balloon shape

GetSystemMenu
* Manage the Minimize and Maximize buttons, the Form's system menu, the position of your form (Top, Top Most, Normal...)

GetSystemMetrics
* Check and Change the current Video Resolution in run time

GetWindow
* Get the List of the Active Tasks

GetWindowLongA
* Get the List of the Active Tasks
* Manage the Minimize and Maximize buttons, the Form's system menu, the position of your form (Top, Top Most, Normal...)
* Create Custom ToolTips with multiline text and Balloon shape
* Create Layered Windows in VB

GetWindowRect
* Create Custom ToolTips with multiline text and Balloon shape
* Show/Hide a Form with an Explode/Implode animation

GetWindowTextA
* Get the List of the Active Tasks
* Create Custom ToolTips with multiline text and Balloon shape

GetWindowTextLengthA
* Get the List of the Active Tasks
* Create Custom ToolTips with multiline text and Balloon shape

GetWindowWord
* Get the List of the Active Tasks

MoveWindow
* Create Custom ToolTips with multiline text and Balloon shape

OpenClipboard
* Copy what you see in the Screen or in a Form into the clipboard

PostMessageA
* How to Unload the Windows Task Bar and the Desktop...
* Create Custom ToolTips with multiline text and Balloon shape

ReleaseDC
* Copy what you see in the Screen or in a Form into the clipboard
* Show/Hide a Form with an Explode/Implode animation

SendMessageA
* Printing the contents of a picturebox, including (most) controls, to a printer
* How to sort items on the fly as they are added in a ListView using SubClassing
*...How to Print a Multiline TextBox with Alignment!
* How to put a progress bar inside a statusbar of a MDI form
* Create Custom ToolTips with multiline text and Balloon shape

SetClipboardData
* Copy what you see in the Screen or in a Form into the clipboard

SetLayeredWindowAttributes
* Create Layered Windows in VB

SetParent
* How to put a progress bar inside a statusbar of a MDI form

SetSysColors
* Set or read the current user desktop color settings

SetWindowLongA
* Create Controls at RunTime
* How to Subclass a Form
* How to sort items on the fly as they are added in a ListView using SubClassing
* Manage the Minimize and Maximize buttons, the Form's system menu, the position of your form (Top, Top Most, Normal...)
* Add a OnMoving Event to your Forms
* Create Custom ToolTips with multiline text and Balloon shape
* Create Layered Windows in VB
* How to handle the Mouse Wheel events in your projects
* How to handle the Mouse Wheel events in your projects (improved)

SetWindowPos
* Get the List of the Active Tasks
* Manage the Minimize and Maximize buttons, the Form's system menu, the position of your form (Top, Top Most, Normal...)

ShowWindow
* How to Hide/Show the Windows Task Bar and the Desktop...
* Get the List of the Active Tasks
* Create Custom ToolTips with multiline text and Balloon shape
* How to Print a Report and open a Form contained in an Access Database

SystemParametersInfoA
* How to Disable the Ctrl-Alt-Del keys combination...

UpdateLayeredWindow
* Create Layered Windows in VB

API of winmm.dll

函数名称 说明
auxGetDevCaps 查询指定的辅助输出设备以确定其性能
auxGetNumDevs 检取系统中存在的辅助输出设备的数量
auxGetVolume 返回指定的辅助输出设备的当前卷设备
auxOutMessage 向指定的辅助输出设备发送一条消息
auxSetVolume 在指定的辅助输出设备中设置卷
CloseDirver 关闭指定的可安装驱动器
DefDriverProc 为任何不由可安装驱动器处理的消息提供的缺省处理
Drivercallback 调用一个回调函数,发送一条消息给窗口或
将一个线程的阻塞解除
DrvGetModuleHandle 返回包含指定可安装驱动器模块的实例句柄
DrvsendMessage 把指定的消息发送给可安装驱动器F

GetDriverModuleHandle 返回包含指定可安装驱动器模块的实例句柄
joyGetDevCaps 查询指定的游戏杆设备以确定其性能
joyGetNumDevs 返回系统支持的游戏杆设备的数量
joyGetPos 查询指定的游戏杆设备的位置和活动性
joyGetPosEx 查询一个游戏杆设备的位置和它的按扭状态
joyGetThreshold 查询指定的游戏杆设备的当前移动阈值
joyReleaseCapture 释放由JoySetCapture函数设置的在指定游戏 杆设备上的捕获
joySetCapture 发送一个游戏杆消息到指定的窗口
joySetThreshold 设置指定的游戏杆设备的移动阈值
mciGetCreatorTask 为指定的MCI设备检取其创建的任务
mciGetDeviceID 返回和打开设备名相匹配的设备标识符
mciGetErrorString 检取描述指定媒介控制接口错误代码的字符串
mciGetYieldProc 返回和媒介控制接口的WAIT标志相关的回调函数的地址
mciSendCommand 向指定的媒介控制接口设备发送一条命令
mciSendString 向指定的媒介控制接口设备发送一个字符串
mciSetYieldProc 设置一个过程地址,在MCI设备因指定了WAITE标志而等待一个命令完成时,该过程被周期性调用
midiConnect 将指定的MIDI输入设备连接到输出设备!
midiDisconnect 断开MIDI输入设备和输出设备的连接
midiInAddBuffer 向指定的音乐仪器数字接口的输入设备增加一个缓冲区

midiInClose 关闭指定的音乐仪器数字接口的输入设备
midiInGetDveCaps 查询指定的音乐仪器数字接口的输入设备以确定其性能
midiInGetErrorText 检取有关音乐仪器数字接口的输入设备指定错误的文本说明
midiInGetID 获得一个音乐一起数字接口的输入设备的标识符
midiInGetNumDevs 检取系统中音乐仪器数字接口的输入设备的数量
midiInMessage 向指定的音乐仪器数字接口的输入设备驱动器发送一条消息
midiInOpen 打开指定的音乐仪器数字接口的输入设备
midiInPrepareHeader 为音乐仪器数字接口的输入设备准备一个缓冲区
midiInReset 在给定的MIDI输入设备上输入,并将所有挂起的输入缓冲区标记为已执行的
midiInStart 启动在指定的音乐仪器数字接口的输入设备上的输入
midiInStop 停止在给定的音乐仪器数字接口的输入设备上的输入
midiInUnprepareHeader 消除由midiInPrepareHeader函数完成的准备
midiOutCacheDrumPatches 请求内部的一个MIDI合成设备预装指定的基于键的击打音色集
midiOutCachePatches 请求内部的音乐仪器数字接口的合成设备预装指定的音色集
midiOutClose 关闭指定的音乐仪器数字接口的输出设备
midiOutGetDevCaps 查询指定的音乐仪器数字接口的输出设备,以确定其性能
midiOutGetErrorText 检取有关MIDI输出设备指定采取的文本说明
midiOutGetID 检取指定的MIDI输出设备的标识符
midiOutGetNumDevs 检取系统中存在的MIDI输出设备的数量

midiOutGetVolume 返回一个MIDI输出设备的当前卷设置
midiOutLongMsg 向指定的MIDI输出设备发送一条系统专用的MIDI消息
midiOutMessage 向一MIDI输出设备驱动器发送一条消息
midiOutOpen 打开指定的MIDI输出设备进行回放
midiOutPrepareHeader 为MIDI输出设备准备一个缓冲区
midiOutReset 为指定的MIDI输出设备关闭所有MIDI通道上的所有标志
midiOutSetVolume 设置一个MIDI输出设备的卷
midiOutShortMsg 向指定的MIDI输出设备发送一条短MIDI消息
midiOutUnprepareHeader 清除由midiOutPrepareHeader函数完成的准备
midiStreamClose 关闭一个打开的MIDI流
midiStreamOpen 为输出,打开一个MIDI流
midiStreamOut 在MIDI输出设备上播放或排队一个MIDI数据流
midiStreamPause 暂停一个MIDI流的播放
midiStreamPosition 在一个MIDI流中检取当前位置
midiStreamProperty 设置或检取与MIDI输出设备相关MIDI数据流的特性
midiStreamRestart 重新启动一个暂停的MIDI流.
midiStreamStop 关掉指定MIDI输出设备的所有MIDI通道
mixerClose 关闭指定的混频器
mixerGetControlDetails 检取和一个声频指线路相关的单一控件的细节
mixerGetDevCaps 查询指定的混频器以确定其性能

mixerGetID 获取指定混频器的标识符
mixerGetLineContrils 检取和一个声频线路相关的一个或多个控件
mixerGetLineInfo 检取混频器有关特有线路的信息
mixerGetNumDevs 返回系统中存在的混频器的数量
mixerMessage 把一个定制混频器驱动器消息直接发送给混频器驱动器
mixerOpen 打开指定的混频器,在应用程序关闭该句柄前保证该设备不被移走
mixerSetControlDetails 设置和一个声频指线路相关的单一控件的细节
mmioAsvance 填充一个文件的I/O缓冲区
mmioAscend 取出一个RIFF文件块
mmioClose 关闭有mmioOpen打开的文件
mmioCreateChunk 创建由mmioOpen函数打开的RIFF文件中的一个块
mmioDescend 进入由mmioOpen函数打开的RIFF文件的块中,并查找一个块
mmioFlush 把文件缓冲区的数据写入磁盘中
mmioGetInfo 检取有关由mmioOpen函数创建的RIFF文件的信息
mmioInstallIOProcA 装入或删除一个自定义的I/O过程
mmioOpen 为输入/输出打开一个文件
mmioRead 从由mmioOpen函数打开的文件中读取指定字节数的数据
mmioRename 重新命名指定的文件
mmioSeek 改变由mmioOpen函数打开的文件中的当前指针位置

mmioSendMessage 向与指定文件相联系的I/O过程发送一条消息
mmioSetBuffer 允许或禁止文件缓冲区的I/O,或改变这个缓冲区,或改变这个缓冲区的大小
mmioSetInfo 更新从被打开文件中检取的信息
mmioStringToFOURCC 把一个以NULL结束的字符串转换成一个4字符代码
mmioWrite 向由mmioOpen函数打开的文件中写入指定字节数的数据
mmsystemGetVersion 返回多媒体扩展系统软件的当前版本号
OpenDriver 打开一个可安装驱动器实例,并用缺省设置或指定值初始化该实例
PlaySound 播放一个波形声音
SendDriveMessage 向指定的可安装驱动器发送一条消息
SndPlaySound 播放一个由文件名或由登记的[SOUND]段的入口指定的波形声音
timeBeginPeriod 设置应用程序或驱动程序使用的最小定时器分
辨率
timeEndPeriod 清除应用程序或驱动程序使用的最小定时器分
辨率
timeGetDevCaps 查询定时器设备以确定其性能
timeGetSystemTime 检取从WINDOWS开始已逝去的毫秒数m
timeGetTime 检取从WINDOWS开始已逝去的毫秒数,此函数
比上一条函数开销小
timeKillEvent 毁掉指定的定时器回调事件
timeSetEvent 设置一个定时器回调事件
waveInAddBuffer 向波形输入设备添加一个输入缓冲区
WaveInClose 关闭指定的波形输入设置

waveInGetDevCaps 查询指定的波形输入设备以确定其性能
waveInGetErrorText 检取由指定的错误代码标识的文本说明
waveInGetID 获取指定的波形输入设备的标识符
waveInGetNumDevs 返回系统中存在的波形输入设备的数量
waveInGetPosition 检取指定波形输入设备的当前位置
waveInMessage 发送一条消息给波形输入设备的驱动器
waveInOpen 为录音而打开一个波形输入设备
waveInPrepareHeader 为波形输入准备一个输入缓冲区
waveInReset 停止给定的波形输入设备的输入,且将当前位
置清零
waveInStart 启动在指定的波形输入设备的输入
waveInStop 停止在指定的波形输入设备上的输入
waveInUnprepareHeader 清除由waveInPrepareHeader函数实现的准备
waveOutBreakLoop 中断给定的波形输出设备上一个循环,并允许
播放驱动器列表中的下一个块
waveOutClose 关闭指定的波形输出设备
waveOutGetDevCaps 查询一个指定的波形输出设备以确定其性能
waveOutGetErrorText 检取由指定的错误代码标识的文本说明
waveOutGetID 检取指定的波形输出设备的标识符
waveOutGetNumDevs 检取系统中存在的波形输出设备的数量
waveOutGetPitch 查询一个波形输出设备的当前音调设置
waveOutGetPlaybackRate 查询一个波形输出设备当前播放的速度
waveOutGetPosition 检取指定波形输出设备的当前播放位置
waveOutGetVolume 查询指定波形输出设备的当前音量设置
waveOutMessage 发送一条消息给一个波形输出设备的驱动器
waveOutOpen 为播放打开一个波形输出设备
waveOutPause 暂停指定波形输出设备上的播放
waveOutPrepareHeader 为播放准备一个波形缓冲区
waveOutRestart 重新启动一个被暂停的波形输出设备
waveOutSetPitch 设置一个波形输出设备的音调
waveOutSetPlaybackRate 设置指定波形输出设备的速度
waveOutSetVolume 设置指定的波形输出设备的音量
waveOutUnprepareHeader 清除由waveOutPrepareHeader函数实现的准备
waveOutWrite 向指定的波形输出设备发送一个数据块

2008年8月6日星期三

AxWMPLib.AxWindowsMediaPlayer

MediaPlayer控制項屬性

AllowChangeDisplaySize 返回或設置最終用戶是否能設置顯示尺寸(邏輯型)
AllowScan
返回或設置是否允許掃描(邏輯型)
AnimationAtStart
返回或設置控制項開始播放之前是否先播放一個動畫序列(邏輯型)
AudioStream
返回或設置音頻流的編號(用於多音頻流的剪輯,默認爲-1)(長整型)
AutoRewind
返回或設置媒體文件播放完畢後是否自動回繞(邏輯型)
AutoSize
返回或設置是否自動調整控制項大小來適應載入的媒體(邏輯型)
AutoStart
返回或設置在載入媒體文件之後是否自動開始播放(邏輯型)
Balance
返回或設置指定身歷聲媒體文件的播放聲道(-10000爲左聲道,10000爲右聲道,0爲身歷聲)(長整型)
Bandwidth
返回或設置當前文件的帶寬(長整型)
BaseURL
返回基本的 HTTP URL(字串)
BufferingCount
返回媒體文件重播時緩衝的總時間(長整型)
BufferingProgress
返回緩衝完成的百分比(長整型)
BufferingTime
返回緩衝的時間(雙精度型)
CanPreview
返回或設置當前顯示的剪輯是能否被預覽(邏輯型)
CanScan
返回或設置當前文件是否支援快進或快退(邏輯型)
CanSeek
返回或設置當前文件是否能搜索並定位到某個時間(邏輯型)
CanSeekToMarkers
返回或設置文件是否支援搜索到標簽(邏輯型)
CaptioningID
返回在標題中顯示的幀或控制項的名稱(字串)
ChannelDescription
返回電臺的描述(字串)
ChannelName
返回電臺的名稱(字串)
ChannelURL
返回電臺的元文件的位置(字串)
ClickToPlay
返回或設置是否可以通過點擊圖像暫停或播放剪輯(邏輯型)
ClientID
返回用戶端唯一的識別字(字串)
CodecCount
返回文件使用的可安裝的 codecs 的個數(長整型)
ContactAddress
返回電臺的聯繫地址(字串)
ContactEmail
返回電臺的聯繫電子郵件地址(字串)
ContactPhone
返回電臺的聯繫電話(字串)
CreationDate
返回剪輯的創建日期(日期型)
CurrentMarker
返回或設置當前書簽號碼(長整型)
CurrentPosition
返回或設置剪輯的當前位置(雙精度型)
CursorType
返回或設置指標類型(長整型)
DefaultFrame
返回或設置控制項的默認目標 Http (字串)
DisplayBackColor
返回或設置顯示面板的背景色(OLE_COLOR )
DisplayForeColor
返回或設置顯示面板的前景色(OLE_COLOR )
DisplayMode
返回或設置顯示面板是否用秒或幀的形式顯示當前位置(MPDisplayModeConstants )
DisplaySize
返回或設置圖像顯示視窗的大小(MPDisplaySizeConstant )
Duration
返回或設置剪輯剪輯的播放時間(雙精度型)
EnableContextMenu
返回或設置是否允許使用上下文功能表(邏輯型)
Enabled
返回或設置控制項是否可用(邏輯型)
EnableFullScreenControls
返回或設置全螢幕控制是否可用(邏輯型)
EnablePositionControls
返回或設置位置控制是否可用(邏輯型)
EnableTracker
返回或設置搜索欄控制是否可用(邏輯型)
ErrorCode
返回當前錯誤代碼(長整型)
ErrorCorrection
返回當前剪輯的錯誤修正類型(長整型)
ErrorDescription
返回當前錯誤的描述(字串)
FileName
返回或設置要播放的剪輯的檔案名稱(字串)
HasError
返回控制項是否發生錯誤(邏輯型)
HasMultipleItems
返回或設置控制項是否包含某些多重專案的內容(邏輯型)
ImageSourceHeight
返回或設置當前剪輯的原始圖像高度(長整型)
ImageSourceWidth
返回或設置當前剪輯的原始圖像寬度(長整型)
InvokeURLs
返回或設置 URL 是否自動發送請求(邏輯型)
IsBroadcast
返回或設置源是否進行廣播(邏輯型)
IsDurationValid
返回或設置持續時間值是否有效(邏輯型)
Language
返回或設置用於本地化語言支援的當前區域語言(長整型)
LostPackets
返回丟失的資料包數量(長整型)
MarkerCount
返回文件書簽的數量(長整型)
Mute
返回或設置控制項是否播放聲音(邏輯型)
OpenState
返回控制項的內容源狀態(長整型)
PlayCount
返回或設置一個剪輯播放的次數(長整型)
PlayState
返回控制項的當前操作狀態(長整型)
PreviewMode
返回或設置控制項是否處在預覽模式(邏輯型)
Rate
返回或設置重播幀頻(雙精度型)
ReadyState
返回控制項是否準備就緒(ReadyStateConstant )
ReceivedPackets
返回已接收到的資料包的數量(長整型)
ReceptionQuality
返回最後 30 秒接收到的資料包的百分比(長整型)
RecoveredPackets
返回已轉換的資料包的數量(長整型)
SAMIFileName
返回或設置 closed-captioning 檔案名(字串)
SAMILang
返回或設置 closed captioning 語言(字串)
SAMIStyle
返回或設置 closed captioning 風格(字串)
SelectionEnd
返回或設置流的結束位置(雙精度型)
SelectionStart
返回或設置流的起始位置(雙精度型)
SendErrorEvents
返回或設置控制項是否發送錯誤事件(邏輯型)
SendKeyboardEvents
返回或設置控制項是否發送鍵盤事件(邏輯型)
SendMouseClickEvents
返回或設置控制項是否發送滑鼠單擊事件(邏輯型)
SendMouseMoveEvents
返回或設置控制項是否發送滑鼠移動事件(邏輯型)
SendOpenStateChangeEvents
返回或設置控制項是否發送打開狀態改變事件(邏輯型)
SendPlayStateChangeEvents
返回或設置控制項是否發送播放狀態改變事件(邏輯型)
SendWarningEvents
返回或設置控制項是否發送警告事件(邏輯型)
ShowAudioControls
返回或設置是否顯示音頻控制(邏輯型)
ShowCaptioning
返回或設置是否顯示字幕(邏輯型)
ShowControls
返回或設置控制面板是否可見(邏輯型)
ShowDisplay
返回或設置是否顯示顯示面板(邏輯型)
ShowGotoBar
返回或設置是否顯示跳轉欄(邏輯型)
ShowPositionControls
返回或設置是否顯示位置控制(邏輯型)
ShowStatusBar
返回或設置是否顯示狀態欄(邏輯型)
ShowTracker
返回或設置是否顯示搜索欄(邏輯型)
SourceLink
返回內容文件的路徑(字串)
SourceProtocol
返回用於接收資料的協定(長整型)
StreamCount
返回媒體幀的數量(長整型)
TransparentAtStart
返回或設置在開始播放之前和停止之後控制項是否透明(邏輯型)
VideoBorder3D
返回或設置視頻邊框是否顯示爲 3D 效果(邏輯型)
VideoBorderColor
返回或設置視頻邊框的顔色(OLE_顔色)
VideoBorderWidth
返回或設置視頻邊框的寬度(長整型)
Volume
返回或設置音量(長整型)

屬性/方法名:

說明:

[基本屬性]

 

URL:String;

指定媒體位置,本機或網路位址

uiMode:String;

播放器介面模式,可爲Full, Mini, None, Invisible

playState:integer;

播放狀態,1=停止,2=暫停,3=播放,6=正在緩衝,9=正在連接,10=準備就緒

enableContextMenu:Boolean;

啓用/禁用右鍵功能表

fullScreen:boolean;

是否全屏顯示

[controls]

wmp.controls //播放器基本控制

controls.play;

播放

controls.pause;

暫停

controls.stop;

停止

controls.currentPosition:double;

當前進度

controls.currentPositionString:string;

當前進度,字串格式。如“00:23”

controls.fastForward;

快進

controls.fastReverse;

快退

controls.next;

下一曲

controls.previous;

上一曲

[settings]

wmp.settings //播放器基本設置

settings.volume:integer;

音量,0-100

settings.autoStart:Boolean;

是否自動播放

settings.mute:Boolean;

是否靜音

settings.playCount:integer;

播放次數

[currentMedia]

wmp.currentMedia //當前媒體屬性

currentMedia.duration:double;

媒體總長度

currentMedia.durationString:string;

媒體總長度,字串格式。如“03:24”

currentMedia.getItemInfo(const string);

獲 取當前媒體資訊"Title"=媒體標題,"Author"=藝術家,"Copyright"=版權資訊,"Description"=媒體內容描述, "Duration"=持續時間(秒),"FileSize"=文件大小,"FileType"=文件類型,"sourceURL"=原始地址

currentMedia.setItemInfo(const string);

通過屬性名設置媒體資訊

currentMedia.name:string;

currentMedia.getItemInfo("Title")

[currentPlaylist]

wmp.currentPlaylist //當前播放列表屬性

currentPlaylist.count:integer;

當前播放列表所包含媒體數

currentPlaylist.Item[integer];

獲取或設置指定專案媒體資訊,其子屬性同wmp.currentMedi