WMI Fun !! 〜 WMI に興味がある方・システム管理者必見! 〜 |
|
![]() |
WMI Fun !! > WMI Sample (VB) > メモリダンプの情報を設定する |
私も使っていますお勧め SIM フリースマホ ASUS Zenfone
ATM 利用時の入出金手数料が最大 7 回/月無料、 メモリダンプの情報を設定する: Win32_OSRecoveryConfiguration - WMI Sample (VB)Topics
メモリダンプの情報を設定するサンプルプログラムです。
Sample Code
Private Sub Command1_Click()
Dim OsrSet As SWbemObjectSet Dim Osr As SWbemObject Dim Locator As SWbemLocator Dim Service As SWbemServices Dim MesStr As String Set Locator = New WbemScripting.SWbemLocator Set Service = Locator.ConnectServer Set OsrSet = Service.ExecQuery _ ("Select * From Win32_OSRecoveryConfiguration") For Each Osr In OsrSet MsgBox "現在のダンプの種類: " & CStr(Osr.DebugInfoType) Osr.DebugInfoType = 0 Osr.Put_ Next Set OsrSet = Service.ExecQuery _ ("Select * From Win32_OSRecoveryConfiguration") For Each Osr In OsrSet MsgBox "現在のダンプの種類: " & CStr(Osr.DebugInfoType) Next Set OsrSet = Nothing Set Osr = Nothing Set Locator = Nothing Set Service = Nothing End Sub
![]() Comment
実行すると現在のメモリダンプのダンプの種類の設定が表示されます。その後ダンプの種類が「なし」に変更され再度現在の設定が表示されます。 ![]() Recommended book
個人的にお勧めする本の紹介です。 ![]() |
ご意見・ご要望・ご感想をこちらのアンケートからお待ちしています |
∧ ページの先頭へ… |