Windows API:VB6・VBAでの宣言一覧(P)

Windows APIのVB6やVBAでの宣言方法がなかなか覚えられないので一覧を作ってみました。
VB6のAPIビューアにあるものを一通り一覧にしましたが…思ったより多いですね…;
(多すぎてブログの文字数制限を超えたので一覧は分割しています;)
使い方もぼちぼち更新していきます。

絞込:

| A | B | C | D | E | F | G1 | G2 | H | | J | K | L | M | N | O | P | Q | R | S1 | S2 | T | U | V | W | X | Y | Z |

WindowsAPI:VB6・VBA定義一覧
関数名宣言記述例 / 説明
PackDDElParam Declare Function PackDDElParam Lib "user32" Alias "PackDDElParam" (ByVal msg As Long, ByVal uiLo As Long, ByVal uiHi As Long) As Long
DDE の lParam 値を、プロセス間で DDE データを共有するときに使う内部構造にパックします。
PageSetupDlg Declare Function PageSetupDlg Lib "comdlg32.dll" Alias "PageSetupDlgA" (pPageSetupDlg As PageSetupDlg) As Long
ユーザーがページ印刷の属性を指定するための[ページ設定]ダイアログボックスを作成します。
PaintDesktop Declare Function PaintDesktop Lib "user32" Alias "PaintDesktop" (ByVal hdc As Long) As Long
指定されたデバイスコンテキストのクリッピング領域内を、デスクトップパターン、または壁紙で埋めつくします。
PaintRgn Declare Function PaintRgn Lib "gdi32" Alias "PaintRgn" (ByVal hdc As Long, ByVal hRgn As Long) As Long
PatBlt Declare Function PatBlt Lib "gdi32" Alias "PatBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal dwRop As Long) As Long
指定されたデバイスコンテキストで現在選択されているブラシを使って、指定された長方形を描画します。
PathToRegion Declare Function PathToRegion Lib "gdi32" Alias "PathToRegion" (ByVal hdc As Long) As Long
PeekMessage Declare Function PeekMessage Lib "user32" Alias "PeekMessageA" (lpMsg As MSG, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long, ByVal wRemoveMsg As Long) As Long
着信した送信済みメッセージをディスパッチ (送出) し、スレッドのメッセージキューにポスト済みメッセージが存在するかどうかをチェックします。
PeekNamedPipe Declare Function PeekNamedPipe Lib "kernel32" Alias "PeekNamedPipe" (ByVal hNamedPipe As Long, lpBuffer As Any, ByVal nBufferSize As Long, lpBytesRead As Long, lpTotalBytesAvail As Long, lpBytesLeftThisMessage As Long) As Long
名前付きパイプまたは名前なしパイプのデータをバッファへコピーし、そのデータをパイプから削除しません。また、パイプ内のデータに関する情報を取得します。
Pie Declare Function Pie Lib "gdi32" Alias "Pie" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long, ByVal X4 As Long, ByVal Y4 As Long) As Long
1 個の扇形を描画します。
PlayEnhMetaFile Declare Function PlayEnhMetaFile Lib "gdi32" Alias "PlayEnhMetaFile" (ByVal hdc As Long, ByVal hemf As Long, lpRect As RECT) As Long
PlayEnhMetaFileRecord Declare Function PlayEnhMetaFileRecord Lib "gdi32" Alias "PlayEnhMetaFileRecord" (ByVal hdc As Long, lpHandletable As HANDLETABLE, lpEnhMetaRecord As ENHMETARECORD, ByVal nHandles As Long) As Long
PlayMetaFile Declare Function PlayMetaFile Lib "gdi32" Alias "PlayMetaFile" (ByVal hdc As Long, ByVal hMF As Long) As Long
PlayMetaFileRecord Declare Function PlayMetaFileRecord Lib "gdi32" Alias "PlayMetaFileRecord" (ByVal hdc As Long, lpHandletable As HANDLETABLE, lpMetaRecord As METARECORD, ByVal nHandles As Long) As Long
PlaySound Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
ファイル名、リソース、システムイベントのいずれかで指定されたサウンドを再生します。各システムイベントは、レジストリ内または WIN.INI ファイル内で、1 つのサウンドに関連付けることもできます。
PlgBlt Declare Function PlgBlt Lib "gdi32" Alias "PlgBlt" (ByVal hdcDest As Long, lpPoint As POINTAPI, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hbmMask As Long, ByVal xMask As Long, ByVal yMask As Long) As Long
転送元のデバイスコンテキストの長方形から、転送先のデバイスコンテキストの平行四辺形へ、カラーデータのビットをビットブロック転送します。
PolyBezier Declare Function PolyBezier Lib "gdi32" Alias "PolyBezier" (ByVal hdc As Long, lppt As POINTAPI, ByVal cPoints As Long) As Long
PolyBezierTo Declare Function PolyBezierTo Lib "gdi32" Alias "PolyBezierTo" (ByVal hdc As Long, lppt As POINTAPI, ByVal cCount As Long) As Long
PolyDraw Declare Function PolyDraw Lib "gdi32" Alias "PolyDraw" (ByVal hdc As Long, lppt As POINTAPI, lpbTypes As Byte, ByVal cCount As Long) As Long
Polygon Declare Function Polygon Lib "gdi32" Alias "Polygon" (ByVal hdc As Long, lpPoint As POINTAPI, ByVal nCount As Long) As Long
多角形を描画します。
Polyline Declare Function Polyline Lib "gdi32" Alias "Polyline" (ByVal hdc As Long, lpPoint As POINTAPI, ByVal nCount As Long) As Long
PolylineTo Declare Function PolylineTo Lib "gdi32" Alias "PolylineTo" (ByVal hdc As Long, lppt As POINTAPI, ByVal cCount As Long) As Long
PolyPolygon Declare Function PolyPolygon Lib "gdi32" Alias "PolyPolygon" (ByVal hdc As Long, lpPoint As POINTAPI, lpPolyCounts As Long, ByVal nCount As Long) As Long
複数の閉じた多角形を描画します。
PolyPolyline Declare Function PolyPolyline Lib "gdi32" Alias "PolyPolyline" (ByVal hdc As Long, lppt As POINTAPI, lpdwPolyPoints As Long, ByVal cCount As Long) As Long
PolyTextOut Declare Function PolyTextOut Lib "gdi32" Alias "PolyTextOutA" (ByVal hdc As Long, pptxt As POLYTEXT, cStrings As Long) As Long
指定されたデバイスコンテキストで現在選択されているフォントおよびテキストの色を使って、文字列を描画します。
PostMessage Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
指定されたウィンドウを作成したスレッドに関連付けられているメッセージキューに、1 つのメッセージをポストします (書き込みます)。
PostQuitMessage Declare Sub PostQuitMessage Lib "user32" Alias "PostQuitMessage" (ByVal nExitCode As Long)
指定されたスレッドが自らの終了を要求したことをシステムに伝えます。
PostThreadMessage Declare Function PostThreadMessage Lib "user32" Alias "PostThreadMessageA" (ByVal idThread As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
指定されたスレッドのメッセージキューに 1 つのメッセージをポストします。
PrepareTape Declare Function PrepareTape Lib "kernel32" Alias "PrepareTape" (ByVal hDevice As Long, ByVal dwOperation As Long, ByVal bimmediate As Long) As Long
アクセスするまたは削除するテープを準備します。
PrintDlg Declare Function PrintDlg Lib "comdlg32.dll" Alias "PrintDlgA" (pPrintDlg As PrintDlg) As Long
[印刷]ダイアログボックスを作成します。
PrinterMessageBox Declare Function PrinterMessageBox Lib "winspool.drv" Alias "PrinterMessageBoxA" (ByVal hPrinter As Long, ByVal error As Long, ByVal hwnd As Long, ByVal pText As String, ByVal pCaption As String, ByVal dwType As Long) As Long
印刷中のジョブのエラーを印刷中のアプリケーションからユーザーに通知するメッセージボックスを表示します。
PrinterProperties Declare Function PrinterProperties Lib "winspool.drv" Alias "PrinterProperties" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
指定されたプリンタの [〜のプロパティ ] ダイアログボックスを表示します。
PrivilegeCheck Declare Function PrivilegeCheck Lib "advapi32.dll" Alias "PrivilegeCheck" (ByVal ClientToken As Long, RequiredPrivileges As PRIVILEGE_SET, ByVal pfResult As Long) As Long
PrivilegedServiceAuditAlarm Declare Function PrivilegedServiceAuditAlarm Lib "advapi32.dll" Alias "PrivilegedServiceAuditAlarmA" (ByVal SubsystemName As String, ByVal ServiceName As String, ByVal ClientToken As Long, Privileges As PRIVILEGE_SET, ByVal AccessGranted As Long) As Long
PtInRect Declare Function PtInRect Lib "user32" Alias "PtInRect" (lpRect As RECT, pt As POINTAPI) As Long
PtInRegion Declare Function PtInRegion Lib "gdi32" Alias "PtInRegion" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long
PtVisible Declare Function PtVisible Lib "gdi32" Alias "PtVisible" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
PulseEvent Declare Function PulseEvent Lib "kernel32" Alias "PulseEvent" (ByVal hEvent As Long) As Long
指定されたイベントオブジェクトをシグナル状態に設定し、待機スレッドが存在する場合は適切な数のスレッドを解放し、その後でイベントオブジェクトを非シグナル状態に戻します。
PurgeComm Declare Function PurgeComm Lib "kernel32" Alias "PurgeComm" (ByVal hFile As Long, ByVal dwFlags As Long) As Long


コメント
コメントする








    
この記事のトラックバックURL
トラックバック