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

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定義一覧
関数名宣言記述例 / 説明
ImmAssociateContext Declare Function ImmAssociateContext Lib "imm32.dll" Alias "ImmAssociateContext" (ByVal hwnd As Long, ByVal himc As Long) As Long
ImmConfigureIME Declare Function ImmConfigureIME Lib "imm32.dll" Alias "ImmConfigureIME" (ByVal hkl As Long, ByVal hwnd As Long, ByVal dw As Long) As Long
ImmCreateContext Declare Function ImmCreateContext Lib "imm32.dll" Alias "ImmCreateContext" () As Long
ImmDestroyContext Declare Function ImmDestroyContext Lib "imm32.dll" Alias "ImmDestroyContext" (ByVal himc As Long) As Long
ImmEnumRegisterWord Declare Function ImmEnumRegisterWord Lib "imm32.dll" Alias "ImmEnumRegisterWordA" (ByVal hkl As Long, ByVal RegisterWordEnumProc As Long, ByVal lpszReading As String, ByVal dw As Long, ByVal lpszRegister As String, lpv As Any) As Long
ImmEscape Declare Function ImmEscape Lib "imm32.dll" Alias "ImmEscapeA" (ByVal hkl As Long, ByVal himc As Long, ByVal un As Long, lpv As Any) As Long
ImmGetCandidateList Declare Function ImmGetCandidateList Lib "imm32.dll" Alias "ImmGetCandidateListA" (ByVal himc As Long, ByVal deIndex As Long, lpCandidateList As CANDIDATELIST, ByVal dwBufLen As Long) As Long
ImmGetCandidateListCount Declare Function ImmGetCandidateListCount Lib "imm32.dll" Alias "ImmGetCandidateListCountA" (ByVal himc As Long, lpdwListCount As Long) As Long
ImmGetCandidateWindow Declare Function ImmGetCandidateWindow Lib "imm32.dll" Alias "ImmGetCandidateWindow" (ByVal himc As Long, ByVal dw As Long, lpCandidateForm As CANDIDATEFORM) As Long
ImmGetCompositionFont Declare Function ImmGetCompositionFont Lib "imm32.dll" Alias "ImmGetCompositionFontA" (ByVal himc As Long, lpLogFont As LOGFONT) As Long
ImmGetCompositionString Declare Function ImmGetCompositionString Lib "imm32.dll" Alias "ImmGetCompositionStringA" (ByVal himc As Long, ByVal dw As Long, lpv As Any, ByVal dw2 As Long) As Long
ImmGetCompositionWindow Declare Function ImmGetCompositionWindow Lib "imm32.dll" Alias "ImmGetCompositionWindow" (ByVal himc As Long, lpCompositionForm As COMPOSITIONFORM) As Long
ImmGetContext Declare Function ImmGetContext Lib "imm32.dll" Alias "ImmGetContext" (ByVal hwnd As Long) As Long
ImmGetConversionList Declare Function ImmGetConversionList Lib "imm32.dll" Alias "ImmGetConversionListA" (ByVal hkl As Long, ByVal himc As Long, ByVal lpsz As String, lpCandidateList As CANDIDATELIST, ByVal dwBufLen As Long, ByVal uFlag As Long) As Long
ImmGetConversionStatus Declare Function ImmGetConversionStatus Lib "imm32.dll" Alias "ImmGetConversionStatus" (ByVal himc As Long, lpdw As Long, lpdw2 As Long) As Long
ImmGetDefaultIMEWnd Declare Function ImmGetDefaultIMEWnd Lib "imm32.dll" Alias "ImmGetDefaultIMEWnd" (ByVal hwnd As Long) As Long
ImmGetDescription Declare Function ImmGetDescription Lib "imm32.dll" Alias "ImmGetDescriptionA" (ByVal hkl As Long, ByVal lpsz As String, ByVal uBufLen As Long) As Long
ImmGetGuideLine Declare Function ImmGetGuideLine Lib "imm32.dll" Alias " ImmGetGuideLineA" (ByVal himc As Long, ByVal dwIndex As Long, ByVal lpStr As String, ByVal dwBufLen As Long) As Long
ImmGetIMEFileName Declare Function ImmGetIMEFileName Lib "imm32.dll" Alias "ImmGetIMEFileNameA" (ByVal hkl As Long, ByVal lpStr As String, ByVal uBufLen As Long) As Long
ImmGetOpenStatus Declare Function ImmGetOpenStatus Lib "imm32.dll" Alias "ImmGetOpenStatus" (ByVal himc As Long) As Long
ImmGetProperty Declare Function ImmGetProperty Lib "imm32.dll" Alias "ImmGetProperty" (ByVal hkl As Long, ByVal dw As Long) As Long
ImmGetRegisterWordStyle Declare Function ImmGetRegisterWordStyle Lib "imm32.dll" Alias " ImmGetRegisterWordStyleA" (ByVal hkl As Long, ByVal nItem As Long, lpStyleBuf As STYLEBUF) As Long
ImmGetStatusWindowPos Declare Function ImmGetStatusWindowPos Lib "imm32.dll" Alias "ImmGetStatusWindowPos" (ByVal himc As Long, lpPoint As POINTAPI) As Long
ImmGetVirtualKey Declare Function ImmGetVirtualKey Lib "imm32.dll" Alias "ImmGetVirtualKey" (ByVal hwnd As Long) As Long
ImmInstallIME Declare Function ImmInstallIME Lib "imm32.dll" Alias "ImmInstallIMEA" (ByVal lpszIMEFileName As String, ByVal lpszLayoutText As String) As Long
ImmIsIME Declare Function ImmIsIME Lib "imm32.dll" Alias "ImmIsIME" (ByVal hkl As Long) As Long
ImmIsUIMessage Declare Function ImmIsUIMessage Lib "imm32.dll" Alias "ImmIsUIMessageA" (ByVal hwnd As Long, ByVal un As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
ImmNotifyIME Declare Function ImmNotifyIME Lib "imm32.dll" Alias "ImmNotifyIME" (ByVal himc As Long, ByVal dwAction As Long, ByVal dwIndex As Long, ByVal dwValue As Long) As Long
ImmRegisterWord Declare Function ImmRegisterWord Lib "imm32.dll" Alias "ImmRegisterWordA" (ByVal hkl As Long, ByVal lpszReading As String, ByVal dw As Long, ByVal lpszRegister As String) As Long
ImmReleaseContext Declare Function ImmReleaseContext Lib "imm32.dll" Alias "ImmReleaseContext" (ByVal hwnd As Long, ByVal himc As Long) As Long
ImmSetCandidateWindow Declare Function ImmSetCandidateWindow Lib "imm32.dll" Alias "ImmSetCandidateWindow" (ByVal himc As Long, lpCandidateForm As CANDIDATEFORM) As Long
ImmSetCompositionFont Declare Function ImmSetCompositionFont Lib "imm32.dll" Alias "ImmSetCompositionFontA" (ByVal himc As Long, lpLogFont As LOGFONT) As Long
ImmSetCompositionString Declare Function ImmSetCompositionString Lib "imm32.dll" Alias "ImmSetCompositionStringA" (ByVal himc As Long, ByVal dwIndex As Long, lpComp As Any, ByVal dw As Long, lpRead As Any, ByVal dw2 As Long) As Long
ImmSetCompositionWindow Declare Function ImmSetCompositionWindow Lib "imm32.dll" Alias "ImmSetCompositionWindow" (ByVal himc As Long, lpCompositionForm As COMPOSITIONFORM) As Long
ImmSetConversionStatus Declare Function ImmSetConversionStatus Lib "imm32.dll" Alias "ImmSetConversionStatus" (ByVal himc As Long, ByVal dw1 As Long, ByVal dw2 As Long) As Long
ImmSetOpenStatus Declare Function ImmSetOpenStatus Lib "imm32.dll" Alias "ImmSetOpenStatus" (ByVal himc As Long, ByVal b As Long) As Long
ImmSetStatusWindowPos Declare Function ImmSetStatusWindowPos Lib "imm32.dll" Alias "ImmSetStatusWindowPos" (ByVal himc As Long, lpPoint As POINTAPI) As Long
ImmSimulateHotKey Declare Function ImmSimulateHotKey Lib "imm32.dll" Alias "ImmSimulateHotKey" (ByVal hwnd As Long, ByVal dw As Long) As Long
ImmUnregisterWord Declare Function ImmUnregisterWord Lib "imm32.dll" Alias "ImmUnregisterWordA" (ByVal hkl As Long, ByVal lpszReading As String, ByVal dw As Long, ByVal lpszUnregister As String) As Long
ImpersonateDdeClientWindow Declare Function ImpersonateDdeClientWindow Lib "user32" Alias "ImpersonateDdeClientWindow" (ByVal hWndClient As Long, ByVal hWndServer As Long) As Long
DDE サーバーアプリケーションで使用し、セキュリティが確保されたサーバーのデータを不正な DDE クライアントから保護するため、DDE クライアントアプリケーションのセキュリティコンテキストを装います。
ImpersonateLoggedOnUser Declare Function ImpersonateLoggedOnUser Lib "kernel32" Alias "ImpersonateLoggedOnUser" (ByVal hToken As Long) As Long
ImpersonateNamedPipeClient Declare Function ImpersonateNamedPipeClient Lib "advapi32.dll" Alias "ImpersonateNamedPipeClient" (ByVal hNamedPipe As Long) As Long
ImpersonateSelf Declare Function ImpersonateSelf Lib "advapi32.dll" Alias "ImpersonateSelf" (ImpersonationLevel As Integer) As Long
InflateRect Declare Function InflateRect Lib "user32" Alias "InflateRect" (lpRect As RECT, ByVal x As Long, ByVal y As Long) As Long
InitAtomTable Declare Function InitAtomTable Lib "kernel32" Alias "InitAtomTable" (ByVal nSize As Long) As Long
InitializeAcl Declare Function InitializeAcl Lib "advapi32.dll" Alias "InitializeAcl" (pAcl As ACL, ByVal nAclLength As Long, ByVal dwAclRevision As Long) As Long
InitializeCriticalSection Declare Sub InitializeCriticalSection Lib "kernel32" Alias "InitializeCriticalSection" (lpCriticalSection As CRITICAL_SECTION)
指定されたクリティカルセクションオブジェクトを初期化します。
InitializeSecurityDescriptor Declare Function InitializeSecurityDescriptor Lib "advapi32.dll" Alias "InitializeSecurityDescriptor" (pSecurityDescriptor As SECURITY_DESCRIPTOR, ByVal dwRevision As Long) As Long
InitializeSid Declare Function InitializeSid Lib "advapi32.dll" Alias "InitializeSid" (Sid As Any, pIdentifierAuthority As SID_IDENTIFIER_AUTHORITY, ByVal nSubAuthorityCount As Byte) As Long
SID 構造体を初期化します。
InitiateSystemShutdown Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long
指定されたコンピュータのシャットダウン処理を開始します。
InSendMessage Declare Function InSendMessage Lib "user32" Alias "InSendMessage" () As Long
現在のウィンドウプロシージャが、他のスレッドが SendMessage 関数を呼び出して送信してきたメッセージを処理しているかどうかを判断します。
InsertMenu Declare Function InsertMenu Lib "user32" Alias "InsertMenuA" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long
指定されたメニューに新しいメニュー項目を挿入し、他のメニュー項目を下へ移動します。
InsertMenuItem Declare Function InsertMenuItem Lib "user32" Alias "InsertMenuItemA" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Boolean, ByRef lpcMenuItemInfo As MENUITEMINFO) As Long
メニュー内の指定された位置に、新しいメニュー項目を挿入します。
InterlockedDecrement Declare Function InterlockedDecrement Lib "kernel32" Alias "InterlockedDecrement" (lpAddend As Long) As Long
指定された変数の値をデクリメントし (1 つ減らします)、その結果得られた値をチェックします。
InterlockedExchange Declare Function InterlockedExchange Lib "kernel32" Alias "InterlockedExchange" (Target As Long, ByVal Value As Long) As Long
指定された 1 個の変数の内容ともう 1 つの値の交換を一括して行います。
InterlockedIncrement Declare Function InterlockedIncrement Lib "kernel32" Alias "InterlockedIncrement" (lpAddend As Long) As Long
指定された変数の値をインクリメントし (1 つ増やします)、その結果得られた値をチェックします。
IntersectClipRect Declare Function IntersectClipRect Lib "gdi32" Alias "IntersectClipRect" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
IntersectRect Declare Function IntersectRect Lib "user32" Alias "IntersectRect" (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) As Long
InvalidateRect Declare Function InvalidateRect Lib "user32" Alias "InvalidateRect" (ByVal hwnd As Long, lpRect As RECT, ByVal bErase As Long) As Long
指定されたウィンドウの更新リージョンに 1 個の長方形を追加します。
InvalidateRgn Declare Function InvalidateRgn Lib "user32" Alias "InvalidateRgn" (ByVal hwnd As Long, ByVal hRgn As Long, ByVal bErase As Long) As Long
指定されたリージョン内のクライアント領域を、ウィンドウの現在の更新リージョンへ追加し、指定されたリージョン内のクライアント領域を無効にします。
InvertRect Declare Function InvertRect Lib "user32" Alias "InvertRect" (ByVal hdc As Long, lpRect As RECT) As Long
ウィンドウ内の指定された長方形の内部の色を、ピクセル単位で論理 NOT 演算を使って反転します。
InvertRgn Declare Function InvertRgn Lib "gdi32" Alias "InvertRgn" (ByVal hdc As Long, ByVal hRgn As Long) As Long
IsBadCodePtr Declare Function IsBadCodePtr Lib "kernel32" Alias "IsBadCodePtr" (ByVal lpfn As Long) As Long
呼び出し側プロセスが、指定されたアドレスのメモリに対して読み取りアクセスを行えるかどうかを判断します。
IsBadHugeReadPtr Declare Function IsBadHugeReadPtr Lib "kernel32" Alias "IsBadHugeReadPtr" (lp As Any, ByVal ucb As Long) As Long
この関数は使われなくなりました。Win32 アプリケーションでは、IsBadHugeReadPtr 関数は、IsBadReadPtr 関数と同じです。
IsBadHugeWritePtr Declare Function IsBadHugeWritePtr Lib "kernel32" Alias "IsBadHugeWritePtr" (lp As Any, ByVal ucb As Long) As Long
この関数は使われなくなりました。Win32 アプリケーションでは、IsBadHugeWritePtr 関数は、IsBadWritePtr 関数と同じです。
IsBadReadPtr Declare Function IsBadReadPtr Lib "kernel32" Alias "IsBadReadPtr" (lp As Any, ByVal ucb As Long) As Long
呼び出し側プロセスが、指定されたメモリブロックに対して読み取りアクセスを行えるかどうかを判断します。
IsBadStringPtr Declare Function IsBadStringPtr Lib "kernel32" Alias "IsBadStringPtrA" (ByVal lpsz As String, ByVal ucchMax As Long) As Long
呼び出し側プロセスが、1 つの文字列ポインタで指定されたメモリ範囲に対して読み取りアクセスを行えるかどうかを判断します。
IsBadWritePtr Declare Function IsBadWritePtr Lib "kernel32" Alias "IsBadWritePtr" (lp As Any, ByVal ucb As Long) As Long
呼び出し側プロセスが、指定されたメモリ範囲に対して書き込みアクセスを行えるかどうかを判断します。
IsCharAlpha Declare Function IsCharAlpha Lib "user32" Alias "IsCharAlphaA" (ByVal cChar As Byte) As Long
指定された文字が英字かどうかを判断します。
IsCharAlphaNumeric Declare Function IsCharAlphaNumeric Lib "user32" Alias "IsCharAlphaNumericA" (ByVal cChar As Byte) As Long
指定された文字が、英字または数字であるかどうかを判断します。
IsCharLower Declare Function IsCharLower Lib "user32" Alias "IsCharLowerA" (ByVal cChar As Byte) As Long
指定された文字が、小文字かどうかを判断します。
IsCharUpper Declare Function IsCharUpper Lib "user32" Alias "IsCharUpperA" (ByVal cChar As Byte) As Long
指定された文字が、大文字かどうかを判断します。
IsChild Declare Function IsChild Lib "user32" Alias "IsChild" (ByVal hWndParent As Long, ByVal hwnd As Long) As Long
指定されたウィンドウが、別に指定されたウィンドウの子ウィンドウ (または子孫のウィンドウ) であるかどうかを調べます。
IsClipboardFormatAvailable Declare Function IsClipboardFormatAvailable Lib "user32" Alias "IsClipboardFormatAvailable" (ByVal wFormat As Long) As Long
指定されたデータ形式のデータがクリップボードに格納されているかどうかを調べます。
IsDBCSLeadByte Declare Function IsDBCSLeadByte Lib "kernel32" Alias "IsDBCSLeadByte" (ByVal bTestChar As Byte) As Long
指定された文字が先行バイトかどうかを調べます。
IsDialogMessage Declare Function IsDialogMessage Lib "user32" Alias "IsDialogMessageA" (ByVal hDlg As Long, lpMsg As MSG) As Long
指定されたメッセージが指定されたダイアログボックス宛のものかどうかを判断し、そうである場合はそのメッセージを処理します。
IsDlgButtonChecked Declare Function IsDlgButtonChecked Lib "user32" Alias "IsDlgButtonChecked" (ByVal hDlg As Long, ByVal nIDButton As Long) As Long
ボタンコントロールのチェック状態を取得します。
IsIconic Declare Function IsIconic Lib "user32" Alias "IsIconic" (ByVal hwnd As Long) As Long
指定されたウィンドウが最小化 (アイコン化) されているかどうかを調べます。
IsMenu Declare Function IsMenu Lib "user32" Alias "IsMenu" (ByVal hMenu As Long) As Long
指定されたハンドルがメニューハンドルであるかどうかを調べます。
IsRectEmpty Declare Function IsRectEmpty Lib "user32" Alias "IsRectEmpty" (lpRect As RECT) As Long
IsTextUnicode Declare Function IsTextUnicode Lib "advapi32" Alias "IsTextUnicode" (lpBuffer As Any, ByVal cb As Long, lpi As Long) As Long
Unicode テキストの形式がバッファに含まれている可能性が高いかどうか判定します。
IsValidAcl Declare Function IsValidAcl Lib "advapi32.dll" Alias "IsValidAcl" (pAcl As ACL) As Long
IsValidCodePage Declare Function IsValidCodePage Lib "kernel32" Alias "IsValidCodePage" (ByVal CodePage As Long) As Long
指定されたコードページが有効かどうかを判断します。
IsValidLocale Declare Function IsValidLocale Lib "KERNEL32" Alias "IsValidLocale" (ByVal Locale As Long, ByVal dwFlags As Long) As Long
ロケール識別子に対して有効性テストを実施します。
IsValidSecurityDescriptor Declare Function IsValidSecurityDescriptor Lib "advapi32.dll" Alias "IsValidSecurityDescriptor" (pSecurityDescriptor As SECURITY_DESCRIPTOR) As Long
IsValidSid Declare Function IsValidSid Lib "advapi32.dll" Alias "IsValidSid" (pSid As Any) As Long
リビジョン番号が既知の範囲内にあるか、副権限 (サブオーソリティ) の数が最大値以下であるかどうかを検証することにより、SID 構造体を確認します。
IsWindow Declare Function IsWindow Lib "user32" Alias "IsWindow" (ByVal hwnd As Long) As Long
指定されたウィンドウハンドルを持つウィンドウが存在しているかどうかを調べます。
IsWindowEnabled Declare Function IsWindowEnabled Lib "user32" Alias "IsWindowEnabled" (ByVal hwnd As Long) As Long
指定されたウィンドウが有効か無効かを調べます。
IsWindowUnicode Declare Function IsWindowUnicode Lib "user32" Alias "IsWindowUnicode" (ByVal hwnd As Long) As Long
指定されたウィンドウが Unicode のネイティブウィンドウであるかどうかを調べます。
IsWindowVisible Declare Function IsWindowVisible Lib "user32" Alias "IsWindowVisible" (ByVal hwnd As Long) As Long
指定されたウィンドウの表示状態を調べます。
IsZoomed Declare Function IsZoomed Lib "user32" Alias "IsZoomed" (ByVal hwnd As Long) As Long
指定されたウィンドウが最大化されているかどうかを調べます。


コメント
コメントする








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