Changeset 585
- Timestamp:
- Aug 11, 2008, 10:37:02 PM (16 years ago)
- Location:
- trunk/ab5.0/ablib/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/Registry.ab
r577 r585 45 45 Function Name( ) As String 46 46 Dim name As String 47 If IsNothing(This.subkeyname) Then47 If ActiveBasic.IsNothing(This.subkeyname) Then 48 48 name = This.rootkeyname 49 49 Else … … 76 76 '新しいサブキーを作成するか、または既存のサブキーを開きます。 77 77 Function CreateSubKey( subkey As String ) As RegistryKey 78 If IsNothing(subkey) Then Return Nothing78 If ActiveBasic.IsNothing(subkey) Then Return Nothing 79 79 Dim buf = subkey 80 80 '末尾の\を除去 … … 108 108 '指定したサブキーを削除します。文字列 subkey では、大文字と小文字は区別されません。 109 109 Sub DeleteSubKey ( subkey As String ) 110 If IsNothing( subkey ) Then Exit Sub110 If ActiveBasic.IsNothing( subkey ) Then Exit Sub 111 111 This.DeleteSubKey( subkey, True ) 112 112 End Sub 113 113 Sub DeleteSubKey ( subkey As String, throwOnMissingSubKey As Boolean ) 114 If IsNothing( subkey ) Then Exit Sub114 If ActiveBasic.IsNothing( subkey ) Then Exit Sub 115 115 Dim key = This.OpenSubKey(subkey) 116 116 If key.SubKeyCount <> 0 Then … … 128 128 'サブキーとその子サブキーを再帰的に削除します。文字列 subkey では、大文字と小文字は区別されません。 129 129 Sub DeleteSubKeyTree ( subkey As String ) 130 If IsNothing( subkey ) Then Exit Sub130 If ActiveBasic.IsNothing( subkey ) Then Exit Sub 131 131 Dim key = This.OpenSubKey( subkey ) 132 132 If key.SubKeyCount <> 0 Then … … 142 142 '指定した値をこのキーから削除します。 143 143 Sub DeleteValue ( name As String ) 144 If IsNothing( name ) Then Exit Sub144 If ActiveBasic.IsNothing( name ) Then Exit Sub 145 145 This.DeleteValue( name, True ) 146 146 End Sub 147 147 Sub DeleteValue ( name As String, throwOnMissingValue As Boolean ) 148 If IsNothing( name ) Then Exit Sub148 If ActiveBasic.IsNothing( name ) Then Exit Sub 149 149 RegDeleteValue( This.handle, ToTCStr(name) ) 150 150 This.edited = True … … 203 203 Return New System.String( pbData As LPCTSTR ) 204 204 Case REG_MULTI_SZ 205 Return New System.String( pbData As LPCTSTR ) 205 Dim list As System.Collections.Generic.List<String> 206 Dim s As System.String 207 Do 208 s = New System.String(pbData As *TCHAR) 209 If s.Length = 0 Then Exit Do 210 list.Add(s) 211 pbData += (s.Length + SizeOf(TCHAR)) 212 Loop 213 Return list 206 214 Case REG_QWORD 207 215 Dim qw As QWord … … 221 229 '指定した名前に関連付けられた値のレジストリ データ型を取得します。 222 230 Function GetValueKind ( name As String ) As RegistryValueKind 223 If IsNothing( name ) Then Exit Sub231 If ActiveBasic.IsNothing( name ) Then Exit Sub 224 232 Dim dwType As DWord 225 233 If ERROR_SUCCESS <> RegQueryValueEx( This.handle, ToTCStr(name), 0, VarPtr(dwType), NULL, NULL ) Then … … 262 270 '指定したサブキーを取得します。 263 271 Function OpenSubKey ( name As String ) As RegistryKey 264 If IsNothing(name) Then Return Nothing272 If ActiveBasic.IsNothing(name) Then Return Nothing 265 273 Dim buf = name 266 274 '末尾の\を除去 … … 338 346 339 347 Sub SubKey( subkey As String ) 340 If IsNothing(subkey) Then Exit Sub348 If ActiveBasic.IsNothing(subkey) Then Exit Sub 341 349 This.subkeyname = subkey 342 350 End Sub -
trunk/ab5.0/ablib/src/api_mmsys.sbp
r341 r585 1510 1510 Declare Function joyGetNumDevs Lib "winmm" () As DWord 1511 1511 #ifdef UNICODE 1512 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsW" (uJoyID As DWord, pjc As *JOYCAPSW, cbjc As DWord) As MMRESULT1513 #else 1514 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsA" (uJoyID As DWord, pjc As *JOYCAPS, cbjc As DWord) As MMRESULT1515 #endif 1516 Declare Function joyGetPos Lib "winmm" (uJoyID As DWord, pji As *JOYINFO) As MMRESULT1517 Declare Function joyGetPosEx Lib "winmm" (uJoyID As DWord, pji As *JOYINFOEX) As MMRESULT1518 Declare Function joyGetThreshold Lib "winmm" (uJoyID As DWord, puThreshold As *DWord) As MMRESULT1512 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsW" (uJoyID As DWord, ByRef pjc As JOYCAPSW, cbjc As DWord) As MMRESULT 1513 #else 1514 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsA" (uJoyID As DWord, ByRef pjc As JOYCAPSA, cbjc As DWord) As MMRESULT 1515 #endif 1516 Declare Function joyGetPos Lib "winmm" (uJoyID As DWord, ByRef pji As JOYINFO) As MMRESULT 1517 Declare Function joyGetPosEx Lib "winmm" (uJoyID As DWord, ByRef pji As JOYINFOEX) As MMRESULT 1518 Declare Function joyGetThreshold Lib "winmm" (uJoyID As DWord, ByRef puThreshold As DWord) As MMRESULT 1519 1519 Declare Function joyReleaseCapture Lib "winmm" (uJoyID As DWord) As MMRESULT 1520 1520 Declare Function joySetCapture Lib "winmm" (hwnd As HWND, uJoyID As DWord, uPeriod As DWord, fChanged As BOOL) As MMRESULT … … 2002 2002 TypeDef LPMCI_GENERIC_PARMS = *MCI_GENERIC_PARMS 2003 2003 2004 Type MCI_OPEN_PARMS 2004 Type MCI_OPEN_PARMSA 2005 2005 dwCallback As DWord 2006 2006 wDeviceID As DWord … … 2009 2009 lpstrAlias As LPSTR 2010 2010 End Type 2011 TypeDef PMCI_OPEN_PARMS = *MCI_OPEN_PARMS 2012 TypeDef LPMCI_OPEN_PARMS = *MCI_OPEN_PARMS 2011 TypeDef PMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA 2012 TypeDef LPMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA 2013 2014 Type MCI_OPEN_PARMSW 2015 dwCallback As DWord 2016 wDeviceID As DWord 2017 lpstrDeviceType As LPWSTR 2018 lpstrElementName As LPWSTR 2019 lpstrAlias As LPWSTR 2020 End Type 2021 TypeDef PMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW 2022 TypeDef LPMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW 2023 2024 #ifdef UNICODE 2025 TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSW 2026 TypeDef PMCI_OPEN_PARMS = PMCI_OPEN_PARMSW 2027 TypeDef LPMCI_OPEN_PARMS = LPMCI_OPEN_PARMSW 2028 #else 2029 TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSA 2030 TypeDef PMCI_OPEN_PARMS = PMCI_OPEN_PARMSA 2031 TypeDef LPMCI_OPEN_PARMS = LPMCI_OPEN_PARMSA 2032 #endif 2013 2033 2014 2034 Type MCI_PLAY_PARMS
Note:
See TracChangeset
for help on using the changeset viewer.