Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5b2d5fd7
Commit
5b2d5fd7
authored
Jun 17, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use HANDLE instead of HKEY in the NT API.
parent
a5abe264
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
111 additions
and
141 deletions
+111
-141
registry.c
dlls/advapi32/registry.c
+5
-5
computername.c
dlls/kernel/computername.c
+4
-4
cpu.c
dlls/kernel/cpu.c
+1
-1
except.c
dlls/kernel/except.c
+1
-1
locale.c
dlls/kernel/locale.c
+19
-19
oldconfig.c
dlls/kernel/oldconfig.c
+11
-11
path.c
dlls/kernel/path.c
+1
-1
process.c
dlls/kernel/process.c
+3
-3
relay16.c
dlls/kernel/relay16.c
+1
-1
volume.c
dlls/kernel/volume.c
+1
-1
cdrom.c
dlls/ntdll/cdrom.c
+0
-1
critsection.c
dlls/ntdll/critsection.c
+0
-1
debugbuffer.c
dlls/ntdll/debugbuffer.c
+0
-1
debugtools.c
dlls/ntdll/debugtools.c
+0
-1
directory.c
dlls/ntdll/directory.c
+1
-2
env.c
dlls/ntdll/env.c
+0
-1
error.c
dlls/ntdll/error.c
+0
-1
exception.c
dlls/ntdll/exception.c
+0
-1
handletable.c
dlls/ntdll/handletable.c
+0
-1
heap.c
dlls/ntdll/heap.c
+0
-1
large_int.c
dlls/ntdll/large_int.c
+0
-1
loader.c
dlls/ntdll/loader.c
+0
-1
loadorder.c
dlls/ntdll/loadorder.c
+7
-8
nt.c
dlls/ntdll/nt.c
+0
-1
om.c
dlls/ntdll/om.c
+0
-1
process.c
dlls/ntdll/process.c
+0
-1
reg.c
dlls/ntdll/reg.c
+31
-32
relay.c
dlls/ntdll/relay.c
+1
-2
resource.c
dlls/ntdll/resource.c
+0
-1
rtl.c
dlls/ntdll/rtl.c
+0
-1
rtlbitmap.c
dlls/ntdll/rtlbitmap.c
+0
-1
rtlstr.c
dlls/ntdll/rtlstr.c
+0
-1
sec.c
dlls/ntdll/sec.c
+0
-1
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+0
-1
signal_sparc.c
dlls/ntdll/signal_sparc.c
+0
-1
string.c
dlls/ntdll/string.c
+0
-1
time.c
dlls/ntdll/time.c
+1
-2
version.c
dlls/ntdll/version.c
+2
-3
virtual.c
dlls/ntdll/virtual.c
+0
-1
wcstring.c
dlls/ntdll/wcstring.c
+0
-1
ioports.c
dlls/winedos/ioports.c
+1
-1
ppdev.c
dlls/winedos/ppdev.c
+1
-1
winternl.h
include/winternl.h
+19
-19
No files found.
dlls/advapi32/registry.c
View file @
5b2d5fd7
...
...
@@ -97,7 +97,7 @@ inline static int is_version_nt(void)
}
/* create one of the HKEY_* special root keys */
static
HKEY
create_special_root_hkey
(
H
KEY
hkey
,
DWORD
access
)
static
HKEY
create_special_root_hkey
(
H
ANDLE
hkey
,
DWORD
access
)
{
HKEY
ret
=
0
;
int
idx
=
(
UINT
)
hkey
-
(
UINT
)
HKEY_SPECIAL_ROOT_FIRST
;
...
...
@@ -167,7 +167,7 @@ DWORD WINAPI RegCreateKeyExW( HKEY hkey, LPCWSTR name, DWORD reserved, LPCWSTR c
RtlInitUnicodeString
(
&
nameW
,
name
);
RtlInitUnicodeString
(
&
classW
,
class
);
return
RtlNtStatusToDosError
(
NtCreateKey
(
retkey
,
access
,
&
attr
,
0
,
return
RtlNtStatusToDosError
(
NtCreateKey
(
(
PHANDLE
)
retkey
,
access
,
&
attr
,
0
,
&
classW
,
options
,
dispos
)
);
}
...
...
@@ -223,7 +223,7 @@ DWORD WINAPI RegCreateKeyExA( HKEY hkey, LPCSTR name, DWORD reserved, LPCSTR cla
{
if
(
!
(
status
=
RtlAnsiStringToUnicodeString
(
&
classW
,
&
classA
,
TRUE
)))
{
status
=
NtCreateKey
(
retkey
,
access
,
&
attr
,
0
,
&
classW
,
options
,
dispos
);
status
=
NtCreateKey
(
(
PHANDLE
)
retkey
,
access
,
&
attr
,
0
,
&
classW
,
options
,
dispos
);
RtlFreeUnicodeString
(
&
classW
);
}
}
...
...
@@ -286,7 +286,7 @@ DWORD WINAPI RegOpenKeyExW( HKEY hkey, LPCWSTR name, DWORD reserved, REGSAM acce
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
RtlInitUnicodeString
(
&
nameW
,
name
);
return
RtlNtStatusToDosError
(
NtOpenKey
(
retkey
,
access
,
&
attr
)
);
return
RtlNtStatusToDosError
(
NtOpenKey
(
(
PHANDLE
)
retkey
,
access
,
&
attr
)
);
}
...
...
@@ -331,7 +331,7 @@ DWORD WINAPI RegOpenKeyExA( HKEY hkey, LPCSTR name, DWORD reserved, REGSAM acces
if
(
!
(
status
=
RtlAnsiStringToUnicodeString
(
&
NtCurrentTeb
()
->
StaticUnicodeString
,
&
nameA
,
FALSE
)))
{
status
=
NtOpenKey
(
retkey
,
access
,
&
attr
);
status
=
NtOpenKey
(
(
PHANDLE
)
retkey
,
access
,
&
attr
);
}
return
RtlNtStatusToDosError
(
status
);
}
...
...
dlls/kernel/computername.c
View file @
5b2d5fd7
...
...
@@ -203,7 +203,7 @@ static BOOL get_use_dns_option(void)
static
const
WCHAR
UseDNSW
[]
=
{
'U'
,
's'
,
'e'
,
'D'
,
'n'
,
's'
,
'C'
,
'o'
,
'm'
,
'p'
,
'u'
,
't'
,
'e'
,
'r'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
char
tmp
[
80
];
H
KEY
root
,
hkey
;
H
ANDLE
root
,
hkey
;
DWORD
dummy
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
@@ -235,7 +235,7 @@ static BOOL get_use_dns_option(void)
*/
void
COMPUTERNAME_Init
(
void
)
{
H
KEY
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
H
ANDLE
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
char
buf
[
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
)
+
(
MAX_COMPUTERNAME_LENGTH
+
1
)
*
sizeof
(
WCHAR
)];
...
...
@@ -316,7 +316,7 @@ BOOL WINAPI GetComputerNameW(LPWSTR name,LPDWORD size)
{
UNICODE_STRING
nameW
;
OBJECT_ATTRIBUTES
attr
;
H
KEY
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
H
ANDLE
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
char
buf
[
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
)
+
(
MAX_COMPUTERNAME_LENGTH
+
1
)
*
sizeof
(
WCHAR
)];
DWORD
len
=
sizeof
(
buf
);
LPWSTR
theName
=
(
LPWSTR
)
(
buf
+
offsetof
(
KEY_VALUE_PARTIAL_INFORMATION
,
Data
));
...
...
@@ -574,7 +574,7 @@ BOOL WINAPI SetComputerNameW( LPCWSTR lpComputerName )
{
UNICODE_STRING
nameW
;
OBJECT_ATTRIBUTES
attr
;
H
KEY
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
H
ANDLE
hkey
=
INVALID_HANDLE_VALUE
,
hsubkey
=
INVALID_HANDLE_VALUE
;
int
plen
=
strlenW
(
lpComputerName
);
int
i
;
NTSTATUS
st
=
STATUS_INTERNAL_ERROR
;
...
...
dlls/kernel/cpu.c
View file @
5b2d5fd7
...
...
@@ -119,7 +119,7 @@ static void create_registry_keys( const SYSTEM_INFO *info )
/* static const WCHAR VenidAMDW[] = {'A','u','t','h','e','n','t','i','c','A','M','D',0}; */
unsigned
int
i
;
H
KEY
hkey
,
system_key
,
cpu_key
;
H
ANDLE
hkey
,
system_key
,
cpu_key
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
,
valueW
;
...
...
dlls/kernel/except.c
View file @
5b2d5fd7
...
...
@@ -223,7 +223,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
char
*
cmdline
,
*
env
,
*
p
;
H
KEY
hDbgConf
;
H
ANDLE
hDbgConf
;
DWORD
bAuto
=
FALSE
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
;
...
...
dlls/kernel/locale.c
View file @
5b2d5fd7
...
...
@@ -54,8 +54,8 @@ static const union cptable *oem_cptable;
static
const
union
cptable
*
mac_cptable
;
static
const
union
cptable
*
unix_cptable
;
/* NULL if UTF8 */
static
H
KEY
NLS_RegOpenKey
(
HKEY
hRootKey
,
LPCWSTR
szKeyName
);
static
H
KEY
NLS_RegOpenSubKey
(
HKEY
hRootKey
,
LPCWSTR
szKeyName
);
static
H
ANDLE
NLS_RegOpenKey
(
HANDLE
hRootKey
,
LPCWSTR
szKeyName
);
static
H
ANDLE
NLS_RegOpenSubKey
(
HANDLE
hRootKey
,
LPCWSTR
szKeyName
);
static
const
WCHAR
szNlsKeyName
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
...
...
@@ -219,13 +219,13 @@ static const union cptable *get_codepage_table( unsigned int codepage )
*
* Create the Control Panel\\International registry key.
*/
inline
static
H
KEY
create_registry_key
(
void
)
inline
static
H
ANDLE
create_registry_key
(
void
)
{
static
const
WCHAR
intlW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
' '
,
'P'
,
'a'
,
'n'
,
'e'
,
'l'
,
'\\'
,
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
'a'
,
'l'
,
0
};
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
hkey
;
H
ANDLE
hkey
;
if
(
RtlOpenCurrentUser
(
KEY_ALL_ACCESS
,
&
hkey
)
!=
STATUS_SUCCESS
)
return
0
;
...
...
@@ -292,7 +292,7 @@ void LOCALE_InitRegistry(void)
char
buffer
[
20
];
WCHAR
bufferW
[
80
];
DWORD
count
,
i
;
H
KEY
hkey
;
H
ANDLE
hkey
;
LCID
lcid
=
GetUserDefaultLCID
();
if
(
!
(
hkey
=
create_registry_key
()))
...
...
@@ -782,7 +782,7 @@ static INT get_registry_locale_info( LPCWSTR value, LPWSTR buffer, INT len )
{
DWORD
size
;
INT
ret
;
H
KEY
hkey
;
H
ANDLE
hkey
;
NTSTATUS
status
;
UNICODE_STRING
nameW
;
KEY_VALUE_PARTIAL_INFORMATION
*
info
;
...
...
@@ -1101,7 +1101,7 @@ BOOL WINAPI SetLocaleInfoW( LCID lcid, LCTYPE lctype, LPCWSTR data )
static
const
WCHAR
intlW
[]
=
{
'i'
,
'n'
,
't'
,
'l'
,
0
};
UNICODE_STRING
valueW
;
NTSTATUS
status
;
H
KEY
hkey
;
H
ANDLE
hkey
;
lcid
=
ConvertDefaultLocale
(
lcid
);
...
...
@@ -2585,11 +2585,11 @@ void LOCALE_Init(void)
mac_cptable
->
info
.
codepage
,
unix_cp
);
}
static
H
KEY
NLS_RegOpenKey
(
HKEY
hRootKey
,
LPCWSTR
szKeyName
)
static
H
ANDLE
NLS_RegOpenKey
(
HANDLE
hRootKey
,
LPCWSTR
szKeyName
)
{
UNICODE_STRING
keyName
;
OBJECT_ATTRIBUTES
attr
;
H
KEY
hkey
;
H
ANDLE
hkey
;
RtlInitUnicodeString
(
&
keyName
,
szKeyName
);
InitializeObjectAttributes
(
&
attr
,
&
keyName
,
0
,
hRootKey
,
NULL
);
...
...
@@ -2600,9 +2600,9 @@ static HKEY NLS_RegOpenKey(HKEY hRootKey, LPCWSTR szKeyName)
return
hkey
;
}
static
H
KEY
NLS_RegOpenSubKey
(
HKEY
hRootKey
,
LPCWSTR
szKeyName
)
static
H
ANDLE
NLS_RegOpenSubKey
(
HANDLE
hRootKey
,
LPCWSTR
szKeyName
)
{
H
KEY
hKey
=
NLS_RegOpenKey
(
hRootKey
,
szKeyName
);
H
ANDLE
hKey
=
NLS_RegOpenKey
(
hRootKey
,
szKeyName
);
if
(
hRootKey
)
NtClose
(
hRootKey
);
...
...
@@ -2610,7 +2610,7 @@ static HKEY NLS_RegOpenSubKey(HKEY hRootKey, LPCWSTR szKeyName)
return
hKey
;
}
static
BOOL
NLS_RegEnumSubKey
(
H
KEY
hKey
,
UINT
ulIndex
,
LPWSTR
szKeyName
,
static
BOOL
NLS_RegEnumSubKey
(
H
ANDLE
hKey
,
UINT
ulIndex
,
LPWSTR
szKeyName
,
ULONG
keyNameSize
)
{
BYTE
buffer
[
80
];
...
...
@@ -2633,7 +2633,7 @@ static BOOL NLS_RegEnumSubKey(HKEY hKey, UINT ulIndex, LPWSTR szKeyName,
return
TRUE
;
}
static
BOOL
NLS_RegEnumValue
(
H
KEY
hKey
,
UINT
ulIndex
,
static
BOOL
NLS_RegEnumValue
(
H
ANDLE
hKey
,
UINT
ulIndex
,
LPWSTR
szValueName
,
ULONG
valueNameSize
,
LPWSTR
szValueData
,
ULONG
valueDataSize
)
{
...
...
@@ -2660,7 +2660,7 @@ static BOOL NLS_RegEnumValue(HKEY hKey, UINT ulIndex,
return
TRUE
;
}
static
BOOL
NLS_RegGetDword
(
H
KEY
hKey
,
LPCWSTR
szValueName
,
DWORD
*
lpVal
)
static
BOOL
NLS_RegGetDword
(
H
ANDLE
hKey
,
LPCWSTR
szValueName
,
DWORD
*
lpVal
)
{
BYTE
buffer
[
128
];
const
KEY_VALUE_PARTIAL_INFORMATION
*
info
=
(
KEY_VALUE_PARTIAL_INFORMATION
*
)
buffer
;
...
...
@@ -2749,7 +2749,7 @@ typedef struct
static
BOOL
NLS_EnumSystemLanguageGroups
(
ENUMLANGUAGEGROUP_CALLBACKS
*
lpProcs
)
{
WCHAR
szNumber
[
10
],
szValue
[
4
];
H
KEY
hKey
;
H
ANDLE
hKey
;
BOOL
bContinue
=
TRUE
;
ULONG
ulIndex
=
0
;
...
...
@@ -2898,7 +2898,7 @@ BOOL WINAPI IsValidLanguageGroup(LGRPID lgrpid, DWORD dwFlags)
static
const
WCHAR
szFormat
[]
=
{
'%'
,
'x'
,
'\0'
};
WCHAR
szValueName
[
16
],
szValue
[
2
];
BOOL
bSupported
=
FALSE
,
bInstalled
=
FALSE
;
H
KEY
hKey
;
H
ANDLE
hKey
;
switch
(
dwFlags
)
...
...
@@ -2951,7 +2951,7 @@ static BOOL NLS_EnumLanguageGroupLocales(ENUMLANGUAGEGROUPLOCALE_CALLBACKS *lpPr
'A'
,
'l'
,
't'
,
'e'
,
'r'
,
'n'
,
'a'
,
't'
,
'e'
,
' '
,
'S'
,
'o'
,
'r'
,
't'
,
's'
,
'\0'
};
WCHAR
szNumber
[
10
],
szValue
[
4
];
H
KEY
hKey
;
H
ANDLE
hKey
;
BOOL
bContinue
=
TRUE
,
bAlternate
=
FALSE
;
LGRPID
lgrpid
;
ULONG
ulIndex
=
1
;
/* Ignore default entry of 1st key */
...
...
@@ -3104,7 +3104,7 @@ BOOL WINAPI EnumSystemGeoID(GEOCLASS geoclass, GEOID reserved, GEO_ENUMPROC pGeo
'C'
,
'o'
,
'u'
,
'n'
,
't'
,
'r'
,
'y'
,
'C'
,
'o'
,
'd'
,
'e'
,
'\0'
};
WCHAR
szNumber
[
10
];
H
KEY
hKey
;
H
ANDLE
hKey
;
ULONG
ulIndex
=
0
;
TRACE
(
"(0x%08lX,0x%08lX,%p)
\n
"
,
geoclass
,
reserved
,
pGeoEnumProc
);
...
...
@@ -3121,7 +3121,7 @@ BOOL WINAPI EnumSystemGeoID(GEOCLASS geoclass, GEOID reserved, GEO_ENUMPROC pGeo
{
BOOL
bContinue
=
TRUE
;
DWORD
dwGeoId
;
H
KEY
hSubKey
=
NLS_RegOpenKey
(
hKey
,
szNumber
);
H
ANDLE
hSubKey
=
NLS_RegOpenKey
(
hKey
,
szNumber
);
if
(
hSubKey
)
{
...
...
dlls/kernel/oldconfig.c
View file @
5b2d5fd7
...
...
@@ -71,7 +71,7 @@ static int create_drives( int devices_only )
char
dest
[
1024
];
char
*
buffer
;
WCHAR
*
p
,
name
[
3
];
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
dummy
;
int
i
,
count
=
0
;
...
...
@@ -176,7 +176,7 @@ static void create_dos_devices(void)
if
(
!
mkdir
(
buffer
,
0777
))
/* we created it, so now create the devices */
{
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
dummy
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
@@ -306,7 +306,7 @@ static void convert_drive_types(void)
UNICODE_STRING
nameW
;
DWORD
dummy
;
ULONG
disp
;
H
KEY
hkey_old
,
hkey_new
;
H
ANDLE
hkey_old
,
hkey_new
;
int
i
;
attr
.
Length
=
sizeof
(
attr
);
...
...
@@ -350,7 +350,7 @@ static void convert_drive_types(void)
/* convert the environment variable entries from the old format to the new one */
static
void
convert_environment
(
H
KEY
hkey_current_user
)
static
void
convert_environment
(
H
ANDLE
hkey_current_user
)
{
static
const
WCHAR
wineW
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
@@ -374,7 +374,7 @@ static void convert_environment( HKEY hkey_current_user )
UNICODE_STRING
nameW
;
DWORD
dummy
;
ULONG
disp
;
H
KEY
hkey_old
,
hkey_env
;
H
ANDLE
hkey_old
,
hkey_env
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
...
...
@@ -485,7 +485,7 @@ static ULONG allocate_default_keys(void)
static
const
WCHAR
ConfigManagerW
[]
=
{
'D'
,
'y'
,
'n'
,
'D'
,
'a'
,
't'
,
'a'
,
'\\'
,
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
' '
,
'M'
,
'a'
,
'n'
,
'a'
,
'g'
,
'e'
,
'r'
,
'\\'
,
'E'
,
'n'
,
'u'
,
'm'
,
0
};
H
KEY
hkey
;
H
ANDLE
hkey
;
ULONG
dispos
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
@@ -527,10 +527,10 @@ static void init_cdrom_registry( HANDLE handle )
char
buffer
[
40
];
DWORD
value
;
const
char
*
data
;
H
KEY
scsiKey
;
H
KEY
portKey
;
H
KEY
busKey
;
H
KEY
targetKey
;
H
ANDLE
scsiKey
;
H
ANDLE
portKey
;
H
ANDLE
busKey
;
H
ANDLE
targetKey
;
DWORD
disp
;
IO_STATUS_BLOCK
io
;
SCSI_ADDRESS
scsi_addr
;
...
...
@@ -673,7 +673,7 @@ static void create_hardware_branch(void)
*/
void
convert_old_config
(
void
)
{
H
KEY
hkey_current_user
;
H
ANDLE
hkey_current_user
;
if
(
allocate_default_keys
()
==
REG_OPENED_EXISTING_KEY
)
return
;
/* someone else already loaded the registry */
...
...
dlls/kernel/path.c
View file @
5b2d5fd7
...
...
@@ -133,7 +133,7 @@ static BOOL add_boot_rename_entry( LPCWSTR source, LPCWSTR dest, DWORD flags )
UNICODE_STRING
nameW
,
source_name
,
dest_name
;
KEY_VALUE_PARTIAL_INFORMATION
*
info
;
BOOL
rc
=
FALSE
;
H
KEY
Reboot
=
0
;
H
ANDLE
Reboot
=
0
;
DWORD
len1
,
len2
;
DWORD
DataSize
=
0
;
BYTE
*
Buffer
=
NULL
;
...
...
dlls/kernel/process.c
View file @
5b2d5fd7
...
...
@@ -416,7 +416,7 @@ static BOOL build_initial_environment( char **environ )
* helper for set_registry_environment().
* Note that Windows happily truncates the value if it's too big.
*/
static
void
set_registry_variables
(
H
KEY
hkey
,
ULONG
type
)
static
void
set_registry_variables
(
H
ANDLE
hkey
,
ULONG
type
)
{
UNICODE_STRING
env_name
,
env_value
;
NTSTATUS
status
;
...
...
@@ -481,7 +481,7 @@ static void set_registry_environment(void)
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
hkey
;
H
ANDLE
hkey
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
...
...
@@ -500,7 +500,7 @@ static void set_registry_environment(void)
}
/* then the ones for the current user */
if
(
RtlOpenCurrentUser
(
KEY_ALL_ACCESS
,
(
HKEY
*
)
&
attr
.
RootDirectory
)
!=
STATUS_SUCCESS
)
return
;
if
(
RtlOpenCurrentUser
(
KEY_ALL_ACCESS
,
&
attr
.
RootDirectory
)
!=
STATUS_SUCCESS
)
return
;
RtlInitUnicodeString
(
&
nameW
,
envW
);
if
(
NtOpenKey
(
&
hkey
,
KEY_ALL_ACCESS
,
&
attr
)
==
STATUS_SUCCESS
)
{
...
...
dlls/kernel/relay16.c
View file @
5b2d5fd7
...
...
@@ -109,7 +109,7 @@ void RELAY16_InitDebugLists(void)
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
name
;
char
buffer
[
1024
];
H
KEY
root
,
hkey
;
H
ANDLE
root
,
hkey
;
DWORD
count
;
WCHAR
*
str
;
static
const
WCHAR
configW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
dlls/kernel/volume.c
View file @
5b2d5fd7
...
...
@@ -172,7 +172,7 @@ static UINT get_registry_drive_type( const WCHAR *root )
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
's'
,
0
};
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
dummy
;
UINT
ret
=
DRIVE_UNKNOWN
;
char
tmp
[
32
+
sizeof
(
KEY_VALUE_PARTIAL_INFORMATION
)];
...
...
dlls/ntdll/cdrom.c
View file @
5b2d5fd7
...
...
@@ -80,7 +80,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "winioctl.h"
#include "ntddstor.h"
...
...
dlls/ntdll/critsection.c
View file @
5b2d5fd7
...
...
@@ -28,7 +28,6 @@
#include "winerror.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
...
...
dlls/ntdll/debugbuffer.c
View file @
5b2d5fd7
...
...
@@ -28,7 +28,6 @@
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "wine/debug.h"
...
...
dlls/ntdll/debugtools.c
View file @
5b2d5fd7
...
...
@@ -37,7 +37,6 @@
#include "ntstatus.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "excpt.h"
#include "ntdll_misc.h"
...
...
dlls/ntdll/directory.c
View file @
5b2d5fd7
...
...
@@ -59,7 +59,6 @@
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "ntstatus.h"
#include "winternl.h"
#include "ntdll_misc.h"
...
...
@@ -503,7 +502,7 @@ static void init_options(void)
static
const
WCHAR
ShowDotFilesW
[]
=
{
'S'
,
'h'
,
'o'
,
'w'
,
'D'
,
'o'
,
't'
,
'F'
,
'i'
,
'l'
,
'e'
,
's'
,
0
};
static
const
WCHAR
ShowDirSymlinksW
[]
=
{
'S'
,
'h'
,
'o'
,
'w'
,
'D'
,
'i'
,
'r'
,
'S'
,
'y'
,
'm'
,
'l'
,
'i'
,
'n'
,
'k'
,
's'
,
0
};
char
tmp
[
80
];
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
dummy
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
dlls/ntdll/env.c
View file @
5b2d5fd7
...
...
@@ -25,7 +25,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
dlls/ntdll/error.c
View file @
5b2d5fd7
...
...
@@ -26,7 +26,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "winerror.h"
#include "wine/debug.h"
...
...
dlls/ntdll/exception.c
View file @
5b2d5fd7
...
...
@@ -29,7 +29,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/exception.h"
#include "wine/server.h"
...
...
dlls/ntdll/handletable.c
View file @
5b2d5fd7
...
...
@@ -22,7 +22,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
...
...
dlls/ntdll/heap.c
View file @
5b2d5fd7
...
...
@@ -35,7 +35,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "winerror.h"
#include "winnt.h"
...
...
dlls/ntdll/large_int.c
View file @
5b2d5fd7
...
...
@@ -24,7 +24,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
/*
...
...
dlls/ntdll/loader.c
View file @
5b2d5fd7
...
...
@@ -31,7 +31,6 @@
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "module.h"
...
...
dlls/ntdll/loadorder.c
View file @
5b2d5fd7
...
...
@@ -30,7 +30,6 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winreg.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "module.h"
...
...
@@ -382,11 +381,11 @@ static inline BOOL get_default_load_order( const WCHAR *module, enum loadorder_t
*
* Open the registry key to the app-specific DllOverrides list.
*/
static
H
KEY
open_app_key
(
const
WCHAR
*
app_name
,
const
WCHAR
*
module
)
static
H
ANDLE
open_app_key
(
const
WCHAR
*
app_name
,
const
WCHAR
*
module
)
{
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
root
,
hkey
;
H
ANDLE
root
,
hkey
;
WCHAR
*
str
;
static
const
WCHAR
AppDefaultsW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'A'
,
'p'
,
'p'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
's'
,
'\\'
,
0
};
...
...
@@ -424,7 +423,7 @@ static HKEY open_app_key( const WCHAR *app_name, const WCHAR *module )
*
* Load the registry loadorder value for a given module.
*/
static
BOOL
get_registry_value
(
H
KEY
hkey
,
const
WCHAR
*
module
,
enum
loadorder_type
lo
[]
)
static
BOOL
get_registry_value
(
H
ANDLE
hkey
,
const
WCHAR
*
module
,
enum
loadorder_type
lo
[]
)
{
UNICODE_STRING
valueW
;
char
buffer
[
80
];
...
...
@@ -481,9 +480,9 @@ void MODULE_GetLoadOrderW( enum loadorder_type loadorder[], const WCHAR *app_nam
static
const
WCHAR
DllOverridesW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'D'
,
'l'
,
'l'
,
'O'
,
'v'
,
'e'
,
'r'
,
'r'
,
'i'
,
'd'
,
'e'
,
's'
,
0
};
static
H
KEY
std_key
=
(
HKEY
)
-
1
;
/* key to standard section, cached */
static
H
ANDLE
std_key
=
(
HANDLE
)
-
1
;
/* key to standard section, cached */
H
KEY
app_key
=
0
;
H
ANDLE
app_key
=
0
;
WCHAR
*
module
,
*
basename
;
UNICODE_STRING
path_str
;
int
len
;
...
...
@@ -531,11 +530,11 @@ void MODULE_GetLoadOrderW( enum loadorder_type loadorder[], const WCHAR *app_nam
}
/* then explicit module name in standard section */
if
(
std_key
==
(
H
KEY
)
-
1
)
if
(
std_key
==
(
H
ANDLE
)
-
1
)
{
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
root
;
H
ANDLE
root
;
RtlOpenCurrentUser
(
KEY_ALL_ACCESS
,
&
root
);
attr
.
Length
=
sizeof
(
attr
);
...
...
dlls/ntdll/nt.c
View file @
5b2d5fd7
...
...
@@ -31,7 +31,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "wine/server.h"
...
...
dlls/ntdll/om.c
View file @
5b2d5fd7
...
...
@@ -33,7 +33,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "wine/server.h"
...
...
dlls/ntdll/process.c
View file @
5b2d5fd7
...
...
@@ -30,7 +30,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "wine/server.h"
...
...
dlls/ntdll/reg.c
View file @
5b2d5fd7
This diff is collapsed.
Click to expand it.
dlls/ntdll/relay.c
View file @
5b2d5fd7
...
...
@@ -29,7 +29,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "excpt.h"
#include "wine/exception.h"
...
...
@@ -113,7 +112,7 @@ void RELAY_InitDebugLists(void)
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
name
;
char
buffer
[
1024
];
H
KEY
root
,
hkey
;
H
ANDLE
root
,
hkey
;
DWORD
count
;
WCHAR
*
str
;
static
const
WCHAR
configW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
dlls/ntdll/resource.c
View file @
5b2d5fd7
...
...
@@ -39,7 +39,6 @@
#include "winbase.h"
#include "winnls.h"
#include "winnt.h"
#include "winreg.h"
#include "winternl.h"
#include "winerror.h"
#include "excpt.h"
...
...
dlls/ntdll/rtl.c
View file @
5b2d5fd7
...
...
@@ -33,7 +33,6 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
...
...
dlls/ntdll/rtlbitmap.c
View file @
5b2d5fd7
...
...
@@ -33,7 +33,6 @@
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/debug.h"
...
...
dlls/ntdll/rtlstr.c
View file @
5b2d5fd7
...
...
@@ -29,7 +29,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
dlls/ntdll/sec.c
View file @
5b2d5fd7
...
...
@@ -35,7 +35,6 @@
#include "windef.h"
#include "winbase.h"
#include "wine/exception.h"
#include "winreg.h"
#include "ntdll_misc.h"
#include "excpt.h"
#include "wine/library.h"
...
...
dlls/ntdll/signal_powerpc.c
View file @
5b2d5fd7
...
...
@@ -52,7 +52,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/library.h"
#include "wine/exception.h"
...
...
dlls/ntdll/signal_sparc.c
View file @
5b2d5fd7
...
...
@@ -33,7 +33,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "winnt.h"
...
...
dlls/ntdll/string.c
View file @
5b2d5fd7
...
...
@@ -28,7 +28,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
...
...
dlls/ntdll/time.c
View file @
5b2d5fd7
...
...
@@ -41,7 +41,6 @@
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -848,7 +847,7 @@ static int TIME_GetTimeZoneInfoFromReg(LPTIME_ZONE_INFORMATION tzinfo)
BYTE
buf
[
90
];
KEY_VALUE_PARTIAL_INFORMATION
*
KpInfo
=
(
KEY_VALUE_PARTIAL_INFORMATION
*
)
buf
;
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
size
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
dlls/ntdll/version.c
View file @
5b2d5fd7
...
...
@@ -31,7 +31,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
...
...
@@ -190,7 +189,7 @@ static WINDOWS_VERSION forcedWinVersion; /* init value irrelevant */
*
* Parse the contents of the Version key.
*/
static
BOOL
parse_win_version
(
H
KEY
hkey
)
static
BOOL
parse_win_version
(
H
ANDLE
hkey
)
{
static
const
WCHAR
WindowsW
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
...
...
@@ -247,7 +246,7 @@ void VERSION_Init( const WCHAR *appname )
{
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
H
KEY
hkey
,
config_key
;
H
ANDLE
hkey
,
config_key
;
static
const
WCHAR
configW
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
...
...
dlls/ntdll/virtual.c
View file @
5b2d5fd7
...
...
@@ -44,7 +44,6 @@
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "winioctl.h"
#include "wine/library.h"
...
...
dlls/ntdll/wcstring.c
View file @
5b2d5fd7
...
...
@@ -31,7 +31,6 @@
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
dlls/winedos/ioports.c
View file @
5b2d5fd7
...
...
@@ -254,7 +254,7 @@ static inline void outl( DWORD value, WORD port )
static
void
IO_port_init
(
void
)
{
char
tmp
[
1024
];
H
KEY
hkey
;
H
ANDLE
hkey
;
DWORD
dummy
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
...
...
dlls/winedos/ppdev.c
View file @
5b2d5fd7
...
...
@@ -75,7 +75,7 @@ char IO_pp_init(void)
{
char
name
[
80
];
char
buffer
[
256
];
H
KEY
hkey
;
H
ANDLE
hkey
;
int
i
,
idx
=
0
,
fd
,
res
,
userbase
,
nports
=
0
;
char
*
timeout
;
char
ret
=
1
;
...
...
include/winternl.h
View file @
5b2d5fd7
...
...
@@ -1608,7 +1608,7 @@ NTSTATUS WINAPI NtCreateDirectoryObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES)
NTSTATUS
WINAPI
NtCreateEvent
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
BOOLEAN
,
BOOLEAN
);
NTSTATUS
WINAPI
NtCreateFile
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtCreateIoCompletion
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
ULONG
);
NTSTATUS
WINAPI
NtCreateKey
(
PH
KEY
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
ULONG
,
const
UNICODE_STRING
*
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtCreateKey
(
PH
ANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
ULONG
,
const
UNICODE_STRING
*
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtCreateMailslotFile
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
PIO_STATUS_BLOCK
,
ULONG
,
ULONG
,
ULONG
,
PLARGE_INTEGER
);
NTSTATUS
WINAPI
NtCreateMutant
(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
BOOLEAN
);
NTSTATUS
WINAPI
NtCreateNamedPipeFile
(
PHANDLE
,
ULONG
,
POBJECT_ATTRIBUTES
,
PIO_STATUS_BLOCK
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
ULONG
,
PLARGE_INTEGER
);
...
...
@@ -1621,18 +1621,18 @@ NTSTATUS WINAPI NtCreateTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*, T
NTSTATUS
WINAPI
NtDelayExecution
(
BOOLEAN
,
const
LARGE_INTEGER
*
);
NTSTATUS
WINAPI
NtDeleteAtom
(
RTL_ATOM
);
NTSTATUS
WINAPI
NtDeleteFile
(
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtDeleteKey
(
H
KEY
);
NTSTATUS
WINAPI
NtDeleteValueKey
(
H
KEY
,
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtDeleteKey
(
H
ANDLE
);
NTSTATUS
WINAPI
NtDeleteValueKey
(
H
ANDLE
,
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtDeviceIoControlFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
PVOID
,
ULONG
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtDisplayString
(
PUNICODE_STRING
);
NTSTATUS
WINAPI
NtDuplicateObject
(
HANDLE
,
HANDLE
,
HANDLE
,
PHANDLE
,
ACCESS_MASK
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtDuplicateToken
(
HANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
SECURITY_IMPERSONATION_LEVEL
,
TOKEN_TYPE
,
PHANDLE
);
NTSTATUS
WINAPI
NtEnumerateKey
(
H
KEY
,
ULONG
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtEnumerateValueKey
(
H
KEY
,
ULONG
,
KEY_VALUE_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtEnumerateKey
(
H
ANDLE
,
ULONG
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtEnumerateValueKey
(
H
ANDLE
,
ULONG
,
KEY_VALUE_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtFindAtom
(
const
WCHAR
*
,
ULONG
,
RTL_ATOM
*
);
NTSTATUS
WINAPI
NtFlushBuffersFile
(
HANDLE
,
IO_STATUS_BLOCK
*
);
NTSTATUS
WINAPI
NtFlushInstructionCache
(
HANDLE
,
LPCVOID
,
ULONG
);
NTSTATUS
WINAPI
NtFlushKey
(
H
KEY
);
NTSTATUS
WINAPI
NtFlushKey
(
H
ANDLE
);
NTSTATUS
WINAPI
NtFlushVirtualMemory
(
HANDLE
,
LPCVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtFsControlFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
PVOID
,
ULONG
,
PVOID
,
ULONG
);
...
...
@@ -1641,18 +1641,18 @@ NTSTATUS WINAPI NtImpersonateAnonymousToken(HANDLE);
NTSTATUS
WINAPI
NtImpersonateClientOfPort
(
HANDLE
,
PPORT_MESSAGE
);
NTSTATUS
WINAPI
NtImpersonateThread
(
HANDLE
,
HANDLE
,
PSECURITY_QUALITY_OF_SERVICE
);
NTSTATUS
WINAPI
NtInitiatePowerAction
(
POWER_ACTION
,
SYSTEM_POWER_STATE
,
ULONG
,
BOOLEAN
);
NTSTATUS
WINAPI
NtListenPort
(
HANDLE
,
PLPC_MESSAGE
);
NTSTATUS
WINAPI
NtListenPort
(
HANDLE
,
PLPC_MESSAGE
);
NTSTATUS
WINAPI
NtLoadDriver
(
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtLoadKey
(
const
OBJECT_ATTRIBUTES
*
,
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtLockFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
void
*
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
ULONG
*
,
BOOLEAN
,
BOOLEAN
);
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtMapViewOfSection
(
HANDLE
,
HANDLE
,
PVOID
*
,
ULONG
,
ULONG
,
const
LARGE_INTEGER
*
,
ULONG
*
,
SECTION_INHERIT
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtNotifyChangeKey
(
H
KEY
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
BOOLEAN
,
PVOID
,
ULONG
,
BOOLEAN
);
NTSTATUS
WINAPI
NtNotifyChangeKey
(
H
ANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
BOOLEAN
,
PVOID
,
ULONG
,
BOOLEAN
);
NTSTATUS
WINAPI
NtOpenDirectoryObject
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtOpenEvent
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtOpenFile
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
,
PIO_STATUS_BLOCK
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtOpenIoCompletion
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtOpenKey
(
PH
KEY
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtOpenKey
(
PH
ANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtOpenMutant
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtOpenProcessToken
(
HANDLE
,
DWORD
,
HANDLE
*
);
NTSTATUS
WINAPI
NtOpenSection
(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
);
...
...
@@ -1680,8 +1680,8 @@ NTSTATUS WINAPI NtQueryInformationProcess(HANDLE,PROCESSINFOCLASS,PVOID,ULONG,P
NTSTATUS
WINAPI
NtQueryInformationThread
(
HANDLE
,
THREADINFOCLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryInformationToken
(
HANDLE
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
);
NTSTATUS
WINAPI
NtQueryInstallUILanguage
(
LANGID
*
);
NTSTATUS
WINAPI
NtQueryKey
(
H
KEY
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryMultipleValueKey
(
H
KEY
,
PKEY_MULTIPLE_VALUE_INFORMATION
,
ULONG
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryKey
(
H
ANDLE
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryMultipleValueKey
(
H
ANDLE
,
PKEY_MULTIPLE_VALUE_INFORMATION
,
ULONG
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryMutant
(
HANDLE
,
MUTANT_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryObject
(
HANDLE
,
OBJECT_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryPerformanceCounter
(
PLARGE_INTEGER
,
PLARGE_INTEGER
);
...
...
@@ -1693,7 +1693,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG,P
NTSTATUS
WINAPI
NtQuerySystemTime
(
PLARGE_INTEGER
);
NTSTATUS
WINAPI
NtQueryTimer
(
HANDLE
,
TIMER_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryTimerResolution
(
PULONG
,
PULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryValueKey
(
H
KEY
,
const
UNICODE_STRING
*
,
KEY_VALUE_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryValueKey
(
H
ANDLE
,
const
UNICODE_STRING
*
,
KEY_VALUE_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryVirtualMemory
(
HANDLE
,
LPCVOID
,
MEMORY_INFORMATION_CLASS
,
PVOID
,
ULONG
,
ULONG
*
);
NTSTATUS
WINAPI
NtQueryVolumeInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FS_INFORMATION_CLASS
);
void
WINAPI
NtRaiseException
(
PEXCEPTION_RECORD
,
PCONTEXT
,
BOOL
);
...
...
@@ -1703,21 +1703,21 @@ NTSTATUS WINAPI NtRegisterThreadTerminatePort(HANDLE);
NTSTATUS
WINAPI
NtReleaseMutant
(
HANDLE
,
PLONG
);
NTSTATUS
WINAPI
NtReleaseSemaphore
(
HANDLE
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtRemoveIoCompletion
(
HANDLE
,
PULONG
,
PULONG
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
);
NTSTATUS
WINAPI
NtReplaceKey
(
POBJECT_ATTRIBUTES
,
H
KEY
,
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtReplaceKey
(
POBJECT_ATTRIBUTES
,
H
ANDLE
,
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtReplyWaitReceivePort
(
HANDLE
,
PULONG
,
PLPC_MESSAGE
,
PLPC_MESSAGE
);
NTSTATUS
WINAPI
NtReplyWaitReplyPort
(
HANDLE
,
PLPC_MESSAGE
);
NTSTATUS
WINAPI
NtRequestWaitReplyPort
(
HANDLE
,
PLPC_MESSAGE
,
PLPC_MESSAGE
);
NTSTATUS
WINAPI
NtResetEvent
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtRestoreKey
(
H
KEY
,
HANDLE
,
ULONG
);
NTSTATUS
WINAPI
NtRestoreKey
(
H
ANDLE
,
HANDLE
,
ULONG
);
NTSTATUS
WINAPI
NtResumeThread
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtSaveKey
(
H
KEY
,
HANDLE
);
NTSTATUS
WINAPI
NtSaveKey
(
H
ANDLE
,
HANDLE
);
NTSTATUS
WINAPI
NtSetContextThread
(
HANDLE
,
const
CONTEXT
*
);
NTSTATUS
WINAPI
NtSetDefaultLocale
(
BOOLEAN
,
LCID
);
NTSTATUS
WINAPI
NtSetDefaultUILanguage
(
LANGID
);
NTSTATUS
WINAPI
NtSetEaFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtSetEvent
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtSetInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FILE_INFORMATION_CLASS
);
NTSTATUS
WINAPI
NtSetInformationKey
(
H
KEY
,
const
int
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtSetInformationKey
(
H
ANDLE
,
const
int
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtSetInformationObject
(
HANDLE
,
OBJECT_INFORMATION_CLASS
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtSetInformationProcess
(
HANDLE
,
PROCESS_INFORMATION_CLASS
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtSetInformationThread
(
HANDLE
,
THREADINFOCLASS
,
LPCVOID
,
ULONG
);
...
...
@@ -1728,7 +1728,7 @@ NTSTATUS WINAPI NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCR
NTSTATUS
WINAPI
NtSetSystemTime
(
const
LARGE_INTEGER
*
,
LARGE_INTEGER
*
);
NTSTATUS
WINAPI
NtSetTimer
(
HANDLE
,
const
LARGE_INTEGER
*
,
PTIMER_APC_ROUTINE
,
PVOID
,
BOOLEAN
,
ULONG
,
BOOLEAN
*
);
NTSTATUS
WINAPI
NtSetTimerResolution
(
ULONG
,
BOOLEAN
,
PULONG
);
NTSTATUS
WINAPI
NtSetValueKey
(
H
KEY
,
const
UNICODE_STRING
*
,
ULONG
,
ULONG
,
const
void
*
,
ULONG
);
NTSTATUS
WINAPI
NtSetValueKey
(
H
ANDLE
,
const
UNICODE_STRING
*
,
ULONG
,
ULONG
,
const
void
*
,
ULONG
);
NTSTATUS
WINAPI
NtSetVolumeInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FS_INFORMATION_CLASS
);
NTSTATUS
WINAPI
NtSignalAndWaitForSingleObject
(
HANDLE
,
HANDLE
,
BOOLEAN
,
const
LARGE_INTEGER
*
);
NTSTATUS
WINAPI
NtShutdownSystem
(
SHUTDOWN_ACTION
);
...
...
@@ -1736,7 +1736,7 @@ NTSTATUS WINAPI NtSuspendThread(HANDLE,PULONG);
NTSTATUS
WINAPI
NtTerminateProcess
(
HANDLE
,
LONG
);
NTSTATUS
WINAPI
NtTerminateThread
(
HANDLE
,
LONG
);
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtUnloadKey
(
H
KEY
);
NTSTATUS
WINAPI
NtUnloadKey
(
H
ANDLE
);
NTSTATUS
WINAPI
NtUnlockFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
PULONG
);
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtUnmapViewOfSection
(
HANDLE
,
PVOID
);
...
...
@@ -1941,7 +1941,7 @@ ULONG WINAPI RtlNumberOfClearBits(PCRTL_BITMAP);
UINT
WINAPI
RtlOemStringToUnicodeSize
(
const
STRING
*
);
NTSTATUS
WINAPI
RtlOemStringToUnicodeString
(
UNICODE_STRING
*
,
const
STRING
*
,
BOOLEAN
);
NTSTATUS
WINAPI
RtlOemToUnicodeN
(
LPWSTR
,
DWORD
,
LPDWORD
,
LPCSTR
,
DWORD
);
DWORD
WINAPI
RtlOpenCurrentUser
(
ACCESS_MASK
,
PH
KEY
);
DWORD
WINAPI
RtlOpenCurrentUser
(
ACCESS_MASK
,
PH
ANDLE
);
NTSTATUS
WINAPI
RtlPinAtomInAtomTable
(
RTL_ATOM_TABLE
,
RTL_ATOM
);
BOOLEAN
WINAPI
RtlPrefixString
(
const
STRING
*
,
const
STRING
*
,
BOOLEAN
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment