Changeset 141 for Include/api_reg.sbp


Ignore:
Timestamp:
Mar 8, 2007, 10:42:50 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_reg.sbp

    r35 r141  
    55#ifndef _INC_REG
    66#define _INC_REG
     7
     8#ifdef UNICODE
     9Const _FuncName_RegConnectRegistry = "RegConnectRegistryW"
     10Const _FuncName_RegCreateKeyEx = "RegCreateKeyExW"
     11Const _FuncName_RegDeleteKey = "RegDeleteKeyW"
     12Const _FuncName_RegDeleteValue = "RegDeleteValueW"
     13Const _FuncName_RegEnumKeyEx = "RegEnumKeyExW"
     14Const _FuncName_RegEnumValue = "RegEnumValueW"
     15Const _FuncName_RegLoadKey = "RegLoadKeyW"
     16Const _FuncName_RegOpenKeyEx = "RegOpenKeyExW"
     17Const _FuncName_RegQueryInfoKey = "RegQueryInfoKeyW"
     18Const _FuncName_RegQueryMultipleValues = "RegQueryMultipleValuesW"
     19Const _FuncName_RegQueryValueEx = "RegQueryValueExW"
     20Const _FuncName_RegSaveKey = "RegSaveKeyW"
     21Const _FuncName_RegSetValueEx = "RegSetValueExW"
     22Const _FuncName_RegUnLoadKey = "RegUnLoadKeyW"
     23#else
     24Const _FuncName_RegConnectRegistry = "RegConnectRegistryA"
     25Const _FuncName_RegCreateKeyEx = "RegCreateKeyExA"
     26Const _FuncName_RegDeleteKey = "RegDeleteKeyA"
     27Const _FuncName_RegDeleteValue = "RegDeleteValueA"
     28Const _FuncName_RegEnumKeyEx = "RegEnumKeyExA"
     29Const _FuncName_RegEnumValue = "RegEnumValueA"
     30Const _FuncName_RegLoadKey = "RegLoadKeyA"
     31Const _FuncName_RegOpenKeyEx = "RegOpenKeyExA"
     32Const _FuncName_RegQueryInfoKey = "RegQueryInfoKeyA"
     33Const _FuncName_RegQueryMultipleValues = "RegQueryMultipleValuesA"
     34Const _FuncName_RegQueryValueEx = "RegQueryValueExA"
     35Const _FuncName_RegSaveKey = "RegSaveKeyA"
     36Const _FuncName_RegSetValueEx = "RegSetValueExA"
     37Const _FuncName_RegUnLoadKey = "RegUnLoadKeyA"
     38#endif
    739
    840
     
    5789Const REG_RESOURCE_LIST =       8
    5890
     91Type VALENTW
     92    ve_valuename As PWSTR
     93    ve_valuelen As DWord
     94    ve_valueptr As ULONG_PTR
     95    ve_type As DWord
     96End Type
     97Type VALENTA
     98    ve_valuename As PSTR
     99    ve_valuelen As DWord
     100    ve_valueptr As ULONG_PTR
     101    ve_type As DWord
     102End Type
     103
     104#ifdef UNICODE
     105TypeDef VALENT = VALENTW
     106#else
     107TypeDef VALENT = VALENTA
     108#endif
    59109
    60110'------------------------
     
    62112
    63113Declare Function RegCloseKey Lib "advapi32" (hKey As HKEY) As Long
    64 Declare Function RegConnectRegistry Lib "advapi32" Alias "RegConnectRegistryA" (pMachineName As PCSTR, hKey As HKEY, ByRef hkResult As HKEY) As Long
    65 Declare Function RegCreateKeyEx Lib "advapi32" Alias "RegCreateKeyExA" (hKey As HKEY, lpSubKey As PCSTR, Reserved As DWord, lpClass As PSTR, dwOptions As DWord, samDesired As Long, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, ByRef phkResult As HKEY, lpdwDisposition As *DWord) As Long
    66 Declare Function RegDeleteKey Lib "advapi32" Alias "RegDeleteKeyA" (hKey As HKEY, lpSubKey As PCSTR) As Long
    67 Declare Function RegDeleteValue Lib "advapi32" Alias "RegDeleteValueA" (hKey As HKEY, lpValueName As PCSTR) As Long
    68 Declare Function RegEnumKeyEx Lib "advapi32" Alias "RegEnumKeyExA" (hKey As HKEY, dwIndex As DWord, pName As PSTR, ByRef cName As DWord, pReserved As *DWord, pClass As PSTR, ByRef cClass As DWord, pftLastWriteTime As *FILETIME) As Long
    69 Declare Function RegEnumValue Lib "advapi32" Alias "RegEnumValueA" (hKey As HKEY, dwIndex As DWord, pValueName As PSTR, ByRef cValueName As DWord, pReserved As *DWord, pType As *DWord, pData As *Byte, pcbData As *DWord) As Long
     114Declare Function RegConnectRegistry Lib "advapi32" Alias _FuncName_RegConnectRegistry (pMachineName As PCTSTR, hKey As HKEY, ByRef hkResult As HKEY) As Long
     115Declare Function RegCreateKeyEx Lib "advapi32" Alias _FuncName_RegCreateKeyEx (hKey As HKEY, lpSubKey As PCTSTR, Reserved As DWord, lpClass As PTSTR, dwOptions As DWord, samDesired As Long, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, ByRef phkResult As HKEY, lpdwDisposition As *DWord) As Long
     116Declare Function RegDeleteKey Lib "advapi32" Alias _FuncName_RegDeleteKey (hKey As HKEY, lpSubKey As PCTSTR) As Long
     117Declare Function RegDeleteValue Lib "advapi32" Alias _FuncName_RegDeleteValue (hKey As HKEY, lpValueName As PCTSTR) As Long
     118Declare Function RegEnumKeyEx Lib "advapi32" Alias _FuncName_RegEnumKeyEx (hKey As HKEY, dwIndex As DWord, pName As PTSTR, ByRef cName As DWord, pReserved As *DWord, pClass As PTSTR, ByRef cClass As DWord, pftLastWriteTime As *FILETIME) As Long
     119Declare Function RegEnumValue Lib "advapi32" Alias _FuncName_RegEnumValue (hKey As HKEY, dwIndex As DWord, pValueName As PTSTR, ByRef cValueName As DWord, pReserved As *DWord, pType As *DWord, pData As *Byte, pcbData As *DWord) As Long
    70120Declare Function RegFlushKey Lib "advapi32"(hKey As HKEY) As Long
    71 Declare Function RegLoadKey Lib "advapi32" Alias "RegLoadKeyA" (hKey As HKEY, pSubKey As PCSTR, pFile As PCSTR) As Long
    72 Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" (hKey As HKEY, lpSubKey As PCSTR, ulOptions As DWord, samDesired As Long, ByRef phkResult As HKEY) As Long
    73 Declare Function RegQueryInfoKey Lib "advapi32" Alias "RegQueryInfoKeyA" (hKey As HKEY, pClass As PSTR, pcClass As *DWord, pReserved As *DWord, pcSubKeys As *DWord, pcMaxSubKeyLen As *DWord, pcMaxClassLen As *DWord, pcValues As *DWord, pcMaxValueNameLen As *DWord, pcMaxValueLen As *DWord, pcbSecurityDescriptor As *DWord, pftLastWriteTime As *FILETIME) As Long
    74 Declare Function RegQueryMultipleValues Lib "advapi32" Alias "RegQueryMultipleValuesA" (hKey As HKEY, val_list As *VALENT, num_vals As DWord, pValueBuf As PSTR, ByRef dwTotsize As DWord) As Long
    75 Declare Function RegQueryValueEx Lib "advapi32" Alias "RegQueryValueExA" (hKey As HKEY, lpValueName As PCSTR, lpReserved As DWord, lpType As *DWord, lpData As VoidPtr, lpcbData As *DWord) As Long
    76 Declare Function RegSaveKey Lib "advapi32" Alias "RegSaveKeyA" (hKey As HKEY, pFile As PCSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As Long
    77 Declare Function RegSetValueEx Lib "advapi32" Alias "RegSetValueExA" (hKey As HKEY, lpValueName As PCSTR, Reserved As DWord, dwType As DWord, lpData As VoidPtr, cbData As DWord) As Long
    78 Declare Function RegUnLoadKey Lib "advapi32" Alias "RegUnLoadKeyA" (hKey As HKEY, pSubKey As PCSTR) As Long
    79 
    80 Type VALENT
    81     ve_valuename As PSTR
    82     ve_valuelen As DWord
    83     ve_valueptr As ULONG_PTR
    84     ve_type As DWord
    85 End Type
    86 #endif '_INC_REG
     121/*
     122Declare Function RegLoadKey Lib "advapi32" Alias _FuncName_RegLoadKey (hKey As HKEY, pSubKey As PCTSTR, pFile As PCTSTR) As Long
     123Declare Function RegOpenKeyEx Lib "advapi32" Alias _FuncName_RegOpenKeyEx (hKey As HKEY, lpSubKey As PCTSTR, ulOptions As DWord, samDesired As Long, ByRef phkResult As HKEY) As Long
     124Declare Function RegQueryInfoKey Lib "advapi32" Alias _FuncName_RegQueryInfoKey (hKey As HKEY, pClass As PTSTR, pcClass As *DWord, pReserved As *DWord, pcSubKeys As *DWord, pcMaxSubKeyLen As *DWord, pcMaxClassLen As *DWord, pcValues As *DWord, pcMaxValueNameLen As *DWord, pcMaxValueLen As *DWord, pcbSecurityDescriptor As *DWord, pftLastWriteTime As *FILETIME) As Long
     125Declare Function RegQueryMultipleValues Lib "advapi32" Alias _FuncName_RegQueryMultipleValues (hKey As HKEY, val_list As *VALENT, num_vals As DWord, pValueBuf As PTSTR, ByRef dwTotsize As DWord) As Long
     126Declare Function RegQueryValueEx Lib "advapi32" Alias _FuncName_RegQueryValueEx (hKey As HKEY, lpValueName As PCTSTR, lpReserved As DWord, lpType As *DWord, lpData As VoidPtr, lpcbData As *DWord) As Long
     127Declare Function RegSaveKey Lib "advapi32" Alias _FuncName_RegSaveKey (hKey As HKEY, pFile As PCTSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As Long
     128Declare Function RegSetValueEx Lib "advapi32" Alias _FuncName_RegSetValueEx (hKey As HKEY, lpValueName As PCTSTR, Reserved As DWord, dwType As DWord, lpData As VoidPtr, cbData As DWord) As Long
     129Declare Function RegUnLoadKey Lib "advapi32" Alias _FuncName_RegUnLoadKey (hKey As HKEY, pSubKey As PCTSTR) As Long
     130*/
     131'_INC_REG
Note: See TracChangeset for help on using the changeset viewer.