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

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定義一覧
関数名宣言記述例 / 説明
AbortDoc Declare Function AbortDoc Lib "gdi32" Alias "AbortDoc" (ByVal hdc As Long) As Long
現在の印刷ジョブを停止し、直前の StartDoc 関数呼び出し以降に発行されたすべての内容を消去します。
AbortPath Declare Function AbortPath Lib "gdi32" Alias "AbortPath" (ByVal hdc As Long) As Long
AbortPrinter Declare Function AbortPrinter Lib "winspool.drv" Alias "AbortPrinter" (ByVal hPrinter As Long) As Long
プリンタがスプール用に構成されていれば、プリンタのスプールファイルを削除します。
AbortSystemShutdown Declare Function AbortSystemShutdown Lib "advapi32.dll" Alias "AbortSystemShutdownA" (ByVal lpMachineName As String) As Long
InitiateSystemShutdown 関数が開始したシステムのシャットダウン処理を中止します。
AccessCheck Declare Function AccessCheck Lib "advapi32.dll" Alias "AccessCheck" (pSecurityDescriptor As SECURITY_DESCRIPTOR, ByVal ClientToken As Long, ByVal DesiredAccess As Long, GenericMapping As GENERIC_MAPPING, PrivilegeSet As PRIVILEGE_SET, PrivilegeSetLength A s Long, GrantedAccess As Long, ByVal Status As Long) As Long
AccessCheckAndAuditAlarm Declare Function AccessCheckAndAuditAlarm Lib "advapi32.dll" Alias "AccessCheckAndAuditAlarmA" (ByVal SubsystemName As String, HandleId As Any, ByVal ObjectTypeName As String, ByVal ObjectName As String, SecurityDescriptor As SECURITY_DESCRIPTOR, ByVal De siredAccess As Long, GenericMapping As GENERIC_MAPPING, ByVal ObjectCreation As Long, GrantedAccess As Long, ByVal AccessStatus As Long, ByVal pfGenerateOnClose As Long) As Long
ActivateKeyboardLayout Declare Function ActivateKeyboardLayout Lib "user32" Alias "ActivateKeyboardLayout" (ByVal HKL As Long, ByVal flags As Long) As Long
呼び出し側スレッドまたは現在のプロセスに対して入力ロケール識別子を設定します。
AddAccessAllowedAce Declare Function AddAccessAllowedAce Lib "advapi32.dll" Alias "AddAccessAllowedAce" (pAcl As ACL, ByVal dwAceRevision As Long, ByVal AccessMask As Long, pSid As Any) As Long
AddAccessDeniedAce Declare Function AddAccessDeniedAce Lib "advapi32.dll" Alias "AddAccessDeniedAce" (pAcl As ACL, ByVal dwAceRevision As Long, ByVal AccessMask As Long, pSid As Any) As Long
AddAce Declare Function AddAce Lib "advapi32.dll" Alias "AddAce" (pAcl As ACL, ByVal dwAceRevision As Long, ByVal dwStartingAceIndex As Long, pAceList As Any, ByVal nAceListLength As Long) As Long
AddAuditAccessAce Declare Function AddAuditAccessAce Lib "advapi32.dll" Alias "AddAuditAccessAce" (pAcl As ACL, ByVal dwAceRevision As Long, ByVal dwAccessMask As Long, pSid As Any, ByVal bAuditSuccess As Long, ByVal bAuditFailure As Long) As Long
AddFontResource Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Long
指定されたファイルからシステムフォントテーブルにフォントリソースを追加します。
AddForm Declare Function AddForm Lib "winspool.drv" Alias "AddFormA" (ByVal hPrinter As Long, ByVal Level As Long, pForm As Byte) As Long
指定されたプリンタ用に選択できる利用可能なフォームのリストにフォームを追加します。
AddJob Declare Function AddJob Lib "winspool.drv" Alias "AddJobA" (ByVal hPrinter As Long, ByVal Level As Long, pData As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long
スプールされた印刷ジョブの格納に利用できるファイルを表すパス文字列を取得します。
AddMonitor Declare Function AddMonitor Lib "winspool.drv" Alias "AddMonitorA" (ByVal pName As String, ByVal Level As Long, pMonitors As Byte) As Long
ローカルプリンタモニタをインストールし、構成ファイル、データファイル、モニタファイルをリンクします。
AddPort Declare Function AddPort Lib "winspool.drv" Alias "AddPortA" (ByVal pName As String, ByVal hwnd As Long, ByVal pMonitorName As String) As Long
サポートされるポートのリストにポートの名前を追加します。
AddPrinter Declare Function AddPrinter Lib "winspool.drv" Alias "AddPrinterA" (ByVal pName As String, ByVal Level As Long, pPrinter As Any) As Long
指定されたサーバーでサポートされるプリンタのリストにプリンタを追加します。
AddPrinterConnection Declare Function AddPrinterConnection Lib "winspool.drv" Alias "AddPrinterConnectionA" (ByVal pName As String) As Long
指定されたプリンタへの現在のユーザーの接続を追加します。
AddPrinterDriver Declare Function AddPrinterDriver Lib "winspool.drv" Alias "AddPrinterDriverA" (ByVal pName As String, ByVal Level As Long, pDriverInfo As Any) As Long
AddPrinterDriver 関数はローカルまたはリモートのプリンタドライバをインストールし、構成ファイル、データファイル、ドライバファイルをリンクします。
AddPrintProcessor Declare Function AddPrintProcessor Lib "winspool.drv" Alias "AddPrintProcessorA" (ByVal pName As String, ByVal pEnvironment As String, ByVal pPathName As String, ByVal pPrintProcessorName As String) As Long
指定されたサーバー上にプリントプロセッサをインストールし、サポートされるプリントプロセッサの内部リストにそのプリントプロセッサ名を追加します。
AddPrintProvidor Declare Function AddPrintProvidor Lib "winspool.drv" Alias "AddPrintProvidorA" (ByVal pName As String, ByVal Level As Long, pProvidorInfo As Byte) As Long
ローカルプリントプロバイダをインストールし、構成ファイル、データファイル、プロバイダファイルをリンクします。
AdjustTokenGroups Declare Function AdjustTokenGroups Lib "advapi32.dll" Alias "AdjustTokenGroups" (ByVal TokenHandle As Long, ByVal ResetToDefault As Long, NewState As TOKEN_GROUPS, ByVal BufferLength As Long, PreviousState As TOKEN_GROUPS, ReturnLength As Long) As Long
指定したアクセストークン内のグループを調整します。
AdjustTokenPrivileges Declare Function AdjustTokenPrivileges Lib "advapi32.dll" Alias "AdjustTokenPrivileges" (ByVal TokenHandle As Long, ByVal DisableAllPrivileges As Long, NewState As TOKEN_PRIVILEGES, ByVal BufferLength As Long, PreviousState As TOKEN_PRIVILEGES, ReturnLeng th As Long) As Long
指定したアクセストークン内の特権を有効または無効にします。
AdjustWindowRect Declare Function AdjustWindowRect Lib "user32" Alias "AdjustWindowRect" (lpRect As RECT, ByVal dwStyle As Long, ByVal bMenu As Long) As Long
指定されたクライアント領域を確保するために必要なウィンドウ座標を計算します。
AdjustWindowRectEx Declare Function AdjustWindowRectEx Lib "user32" Alias "AdjustWindowRectEx" (lpRect As RECT, ByVal dsStyle As Long, ByVal bMenu As Long, ByVal dwEsStyle As Long) As Long
指定されたクライアント領域を確保するために必要なウィンドウ座標を計算します。
AdvancedDocumentProperties Declare Function AdvancedDocumentProperties Lib "winspool.drv" Alias "AdvancedDocumentPropertiesA" (ByVal hwnd As Long, ByVal hPrinter As Long, ByVal pDeviceName As String, pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE) As Long
指定されたプリンタのプリンタ設定ダイアログボックスを表示し、ユーザーがそのプリンタを設定できるようにします。
AllocateAndInitializeSid Declare Function AllocateAndInitializeSid Lib "advapi32.dll" Alias "AllocateAndInitializeSid" (pIdentifierAuthority As SID_IDENTIFIER_AUTHORITY, ByVal nSubAuthorityCount As Byte, ByVal nSubAuthority0 As Long, ByVal nSubAuthority1 As Long, ByVal nSubAuthor ity2 As Long, ByVal nSubAuthority3 As Long, ByVal nSubAuthority4 As Long, ByVal nSubAuthority5 As Long, ByVal nSubAuthority6 As Long, ByVal nSubAuthority7 As Long, lpPSid As Long) As Long
セキュリティ識別子 (SID) を割り当て、最大8つの副権限 (サブオーソリティ) を使って初期化します。
AllocateLocallyUniqueId Declare Function AllocateLocallyUniqueId Lib "advapi32.dll" Alias "AllocateLocallyUniqueId" (Luid As LARGE_INTEGER) As Long
ローカル一意識別子 (LUID) を割り当てます。
AllocConsole Declare Function AllocConsole Lib "kernel32" Alias "AllocConsole" () As Long
呼び出し側プロセスに新しいコンソールを割り当てます。
AngleArc Declare Function AngleArc Lib "gdi32" Alias "AngleArc" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal dwRadius As Long, ByVal eStartAngle As Double, ByVal eSweepAngle As Double) As Long
AnimatePalette Declare Function AnimatePalette Lib "gdi32" Alias "AnimatePaletteA" (ByVal hPalette As Long, ByVal wStartIndex As Long, ByVal wNumEntries As Long, lpPaletteColors As PALETTEENTRY) As Long
AnyPopup Declare Function AnyPopup Lib "user32" Alias "AnyPopup" () As Long
所有しているウィンドウ、可視ウィンドウ、トップレベルポップアップ、オーバーラップウィンドウのいずれかが画面上に存在するかどうかを調べます。
AppendMenu Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long
メニューの末尾に新しいメニュー項目を追加します。
Arc Declare Function Arc Lib "gdi32" Alias "Arc" (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
ArcTo Declare Function ArcTo Lib "gdi32" Alias "ArcTo" (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
AreAllAccessesGranted Declare Function AreAllAccessesGranted Lib "advapi32.dll" Alias "AreAllAccessesGranted" (ByVal GrantedAccess As Long, ByVal DesiredAccess As Long) As Long
AreAnyAccessesGranted Declare Function AreAnyAccessesGranted Lib "advapi32.dll" Alias "AreAnyAccessesGranted" (ByVal GrantedAccess As Long, ByVal DesiredAccess As Long) As Long
ArrangeIconicWindows Declare Function ArrangeIconicWindows Lib "user32" Alias "ArrangeIconicWindows" (ByVal hwnd As Long) As Long
指定された親ウィンドウが持つ最小化 (アイコン化) された子ウィンドウをすべて整列します。
AttachThreadInput Declare Function AttachThreadInput Lib "user32" Alias "AttachThreadInput" (ByVal idAttach As Long, ByVal idAttachTo As Long, ByVal fAttach As Long) As Long
特定のスレッドの入力処理機構を別のスレッドにアタッチします。
auxGetDevCaps Declare Function auxGetDevCaps Lib "winmm.dll" Alias "auxGetDevCapsA" (ByVal uDeviceID As Long, lpCaps As AUXCAPS, ByVal uSize As Long) As Long
指定された補助出力デバイスの機能を取得します。
auxGetNumDevs Declare Function auxGetNumDevs Lib "winmm.dll" Alias "auxGetNumDevs" () As Long
システムにインストールされている補助出力デバイスの数を取得します。
auxGetVolume Declare Function auxGetVolume Lib "winmm.dll" Alias "auxGetVolume" (ByVal uDeviceID As Long, lpdwVolume As Long) As Long
指定された補助出力デバイスの、現在のボリューム設定を取得します。
auxOutMessage Declare Function auxOutMessage Lib "winmm.dll" Alias "auxOutMessage" (ByVal uDeviceID As Long, ByVal msg As Long, ByVal dw1 As Long, ByVal dw2 As Long) As Long
指定された補助出力デバイスに、メッセージを送信します。
auxSetVolume Declare Function auxSetVolume Lib "winmm.dll" Alias "auxSetVolume" (ByVal uDeviceID As Long, ByVal dwVolume As Long) As Long
指定された補助出力デバイスのボリュームを設定します。


コメント
コメントする








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