Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d838385b
Commit
d838385b
authored
Jun 13, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and fix function prototypes.
parent
fd5f7729
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
11 deletions
+68
-11
nt.c
dlls/ntdll/nt.c
+5
-5
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
sync.c
dlls/ntdll/sync.c
+3
-3
winternl.h
include/winternl.h
+58
-1
No files found.
dlls/ntdll/nt.c
View file @
d838385b
...
...
@@ -413,12 +413,12 @@ NTSTATUS WINAPI NtPrivilegeCheck(
*/
NTSTATUS
WINAPI
NtQuerySection
(
IN
HANDLE
SectionHandle
,
IN
PVOID
SectionInformationClass
,
IN
SECTION_INFORMATION_CLASS
SectionInformationClass
,
OUT
PVOID
SectionInformation
,
IN
ULONG
Length
,
OUT
PULONG
ResultLength
)
{
FIXME
(
"(%p,%
p
,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(%p,%
d
,%p,0x%08lx,%p) stub!
\n
"
,
SectionHandle
,
SectionInformationClass
,
SectionInformation
,
Length
,
ResultLength
);
return
0
;
}
...
...
@@ -432,10 +432,10 @@ NTSTATUS WINAPI NtQuerySection(
* ZwCreatePort [NTDLL.@]
*/
NTSTATUS
WINAPI
NtCreatePort
(
PHANDLE
PortHandle
,
POBJECT_ATTRIBUTES
ObjectAttributes
,
DWORD
MaxConnectInfoLength
,
DWORD
MaxDataLength
,
DWORD
unknown
)
ULONG
MaxConnectInfoLength
,
ULONG
MaxDataLength
,
PULONG
reserved
)
{
FIXME
(
"(%p,%p,
0x%08lx,0x%08lx,0x%08lx
),stub!
\n
"
,
PortHandle
,
ObjectAttributes
,
MaxConnectInfoLength
,
MaxDataLength
,
unknown
);
FIXME
(
"(%p,%p,
%lu,%lu,%p
),stub!
\n
"
,
PortHandle
,
ObjectAttributes
,
MaxConnectInfoLength
,
MaxDataLength
,
reserved
);
return
0
;
}
...
...
dlls/ntdll/ntdll.spec
View file @
d838385b
...
...
@@ -93,7 +93,7 @@
@ stdcall NtCreateMutant(ptr long ptr long)
@ stdcall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr)
@ stdcall NtCreatePagingFile(long long long long)
@ stdcall NtCreatePort(ptr ptr long long
long
)
@ stdcall NtCreatePort(ptr ptr long long
ptr
)
@ stub NtCreateProcess
@ stub NtCreateProfile
@ stdcall NtCreateSection(ptr long ptr ptr long long long)
...
...
@@ -188,7 +188,7 @@
@ stdcall NtQueryPerformanceCounter(ptr ptr)
@ stdcall NtQuerySection (long long long long long)
@ stdcall NtQuerySecurityObject (long long long long long)
@ stdcall NtQuerySemaphore (long long
long long long
)
@ stdcall NtQuerySemaphore (long long
ptr long ptr
)
@ stdcall NtQuerySymbolicLinkObject(long ptr ptr)
@ stub NtQuerySystemEnvironmentValue
@ stdcall NtQuerySystemInformation(long long long long)
...
...
dlls/ntdll/sync.c
View file @
d838385b
...
...
@@ -123,12 +123,12 @@ NTSTATUS WINAPI NtOpenSemaphore( OUT PHANDLE SemaphoreHandle,
*/
NTSTATUS
WINAPI
NtQuerySemaphore
(
HANDLE
SemaphoreHandle
,
PVOID
SemaphoreInformationClass
,
OUT
PVOID
SemaphoreInformation
,
SEMAPHORE_INFORMATION_CLASS
SemaphoreInformationClass
,
PVOID
SemaphoreInformation
,
ULONG
Length
,
PULONG
ReturnLength
)
{
FIXME
(
"(%p,%
p
,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(%p,%
d
,%p,0x%08lx,%p) stub!
\n
"
,
SemaphoreHandle
,
SemaphoreInformationClass
,
SemaphoreInformation
,
Length
,
ReturnLength
);
return
STATUS_SUCCESS
;
}
...
...
include/winternl.h
View file @
d838385b
...
...
@@ -1448,6 +1448,54 @@ typedef struct _KEY_MULTIPLE_VALUE_INFORMATION
typedef
VOID
(
*
PTIMER_APC_ROUTINE
)
(
PVOID
,
ULONG
,
LONG
);
typedef
enum
_EVENT_TYPE
{
NotificationEvent
,
SynchronizationEvent
}
EVENT_TYPE
,
*
PEVENT_TYPE
;
typedef
enum
_EVENT_INFORMATION_CLASS
{
EventBasicInformation
}
EVENT_INFORMATION_CLASS
,
*
PEVENT_INFORMATION_CLASS
;
typedef
struct
_EVENT_BASIC_INFORMATION
{
EVENT_TYPE
EventType
;
LONG
EventState
;
}
EVENT_BASIC_INFORMATION
,
*
PEVENT_BASIC_INFORMATION
;
typedef
enum
_SEMAPHORE_INFORMATION_CLASS
{
SemaphoreBasicInformation
}
SEMAPHORE_INFORMATION_CLASS
,
*
PSEMAPHORE_INFORMATION_CLASS
;
typedef
struct
_SEMAPHORE_BASIC_INFORMATION
{
ULONG
CurrentCount
;
ULONG
MaximumCount
;
}
SEMAPHORE_BASIC_INFORMATION
,
*
PSEMAPHORE_BASIC_INFORMATION
;
typedef
enum
_SECTION_INFORMATION_CLASS
{
SectionBasicInformation
,
SectionImageInformation
,
}
SECTION_INFORMATION_CLASS
;
typedef
struct
_SECTION_BASIC_INFORMATION
{
ULONG
BaseAddress
;
ULONG
Attributes
;
LARGE_INTEGER
Size
;
}
SECTION_BASIC_INFORMATION
,
*
PSECTION_BASIC_INFORMATION
;
typedef
struct
_SECTION_IMAGE_INFORMATION
{
PVOID
EntryPoint
;
ULONG
StackZeroBits
;
ULONG
StackReserved
;
ULONG
StackCommit
;
ULONG
ImageSubsystem
;
WORD
SubsystemVersionLow
;
WORD
SubsystemVersionHigh
;
ULONG
Unknown1
;
ULONG
ImageCharacteristics
;
ULONG
ImageMachineType
;
ULONG
Unknown2
[
3
];
}
SECTION_IMAGE_INFORMATION
,
*
PSECTION_IMAGE_INFORMATION
;
/***********************************************************************
* Function declarations
...
...
@@ -1493,6 +1541,7 @@ NTSTATUS WINAPI NtCreateKey(PHKEY,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,co
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
);
NTSTATUS
WINAPI
NtCreatePort
(
PHANDLE
,
POBJECT_ATTRIBUTES
,
ULONG
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtCreateSection
(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
const
LARGE_INTEGER
*
,
ULONG
,
ULONG
,
HANDLE
);
NTSTATUS
WINAPI
NtCreateSemaphore
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
LONG
,
LONG
);
NTSTATUS
WINAPI
NtCreateTimer
(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
TIMER_TYPE
);
...
...
@@ -1512,6 +1561,7 @@ NTSTATUS WINAPI NtFlushInstructionCache(HANDLE,LPCVOID,ULONG);
NTSTATUS
WINAPI
NtFlushKey
(
HKEY
);
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
);
NTSTATUS
WINAPI
NtGetContextThread
(
HANDLE
,
CONTEXT
*
);
NTSTATUS
WINAPI
NtImpersonateAnonymousToken
(
HANDLE
);
NTSTATUS
WINAPI
NtImpersonateClientOfPort
(
HANDLE
,
PPORT_MESSAGE
);
...
...
@@ -1544,6 +1594,7 @@ NTSTATUS WINAPI NtQueryDefaultLocale(BOOLEAN,LCID*);
NTSTATUS
WINAPI
NtQueryDefaultUILanguage
(
LANGID
*
);
NTSTATUS
WINAPI
NtQueryDirectoryFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FILE_INFORMATION_CLASS
,
BOOLEAN
,
PUNICODE_STRING
,
BOOLEAN
);
NTSTATUS
WINAPI
NtQueryEaFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
BOOLEAN
,
PVOID
,
ULONG
,
PVOID
,
BOOLEAN
);
NTSTATUS
WINAPI
NtQueryEvent
(
HANDLE
,
EVENT_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryFullAttributesFile
(
const
OBJECT_ATTRIBUTES
*
,
FILE_NETWORK_OPEN_INFORMATION
*
);
NTSTATUS
WINAPI
NtQueryInformationAtom
(
RTL_ATOM
,
ATOM_INFORMATION_CLASS
,
RTL_ATOM_TABLE
,
ULONG
,
ULONG
*
);
NTSTATUS
WINAPI
NtQueryInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
LONG
,
FILE_INFORMATION_CLASS
);
...
...
@@ -1553,9 +1604,12 @@ NTSTATUS WINAPI NtQueryInformationToken(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
NTSTATUS
WINAPI
NtQueryInstallUILanguage
(
LANGID
*
);
NTSTATUS
WINAPI
NtQueryKey
(
HKEY
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryMultipleValueKey
(
HKEY
,
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
);
NTSTATUS
WINAPI
NtQuerySecurityObject
(
HANDLE
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQuerySection
(
HANDLE
,
SECTION_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQuerySemaphore
(
HANDLE
,
SEMAPHORE_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQuerySystemInformation
(
SYSTEM_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQuerySystemTime
(
PLARGE_INTEGER
);
NTSTATUS
WINAPI
NtQueryTimer
(
HANDLE
,
TIMER_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
...
...
@@ -1588,6 +1642,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
NtSetValueKey
(
HKEY
,
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
NtSuspendThread
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtTerminateProcess
(
HANDLE
,
LONG
);
...
...
@@ -1633,6 +1688,7 @@ NTSTATUS WINAPI RtlCharToInteger(PCSZ,ULONG,PULONG);
NTSTATUS
WINAPI
RtlCheckRegistryKey
(
ULONG
,
PWSTR
);
void
WINAPI
RtlClearAllBits
(
PRTL_BITMAP
);
void
WINAPI
RtlClearBits
(
PRTL_BITMAP
,
ULONG
,
ULONG
);
PDEBUG_BUFFER
WINAPI
RtlCreateQueryDebugBuffer
(
ULONG
,
BOOLEAN
);
ULONG
WINAPI
RtlCompactHeap
(
HANDLE
,
ULONG
);
LONG
WINAPI
RtlCompareString
(
const
STRING
*
,
const
STRING
*
,
BOOLEAN
);
LONG
WINAPI
RtlCompareUnicodeString
(
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
BOOLEAN
);
...
...
@@ -1671,6 +1727,7 @@ NTSTATUS WINAPI RtlDestroyEnvironment(PWSTR);
NTSTATUS
WINAPI
RtlDestroyHandleTable
(
RTL_HANDLE_TABLE
*
);
HANDLE
WINAPI
RtlDestroyHeap
(
HANDLE
);
void
WINAPI
RtlDestroyProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
*
);
NTSTATUS
WINAPI
RtlDestroyQueryDebugBuffer
(
PDEBUG_BUFFER
);
DOS_PATHNAME_TYPE
WINAPI
RtlDetermineDosPathNameType_U
(
PCWSTR
);
BOOLEAN
WINAPI
RtlDoesFileExists_U
(
LPCWSTR
);
BOOLEAN
WINAPI
RtlDosPathNameToNtPathName_U
(
PCWSTR
,
PUNICODE_STRING
,
PWSTR
*
,
CURDIR
*
);
...
...
@@ -1805,9 +1862,9 @@ BOOLEAN WINAPI RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRI
NTSTATUS
WINAPI
RtlQueryAtomInAtomTable
(
RTL_ATOM_TABLE
,
RTL_ATOM
,
ULONG
*
,
ULONG
*
,
WCHAR
*
,
ULONG
*
);
NTSTATUS
WINAPI
RtlQueryEnvironmentVariable_U
(
PWSTR
,
PUNICODE_STRING
,
PUNICODE_STRING
);
NTSTATUS
WINAPI
RtlQueryInformationAcl
(
PACL
,
LPVOID
,
DWORD
,
ACL_INFORMATION_CLASS
);
NTSTATUS
WINAPI
RtlQueryProcessDebugInformation
(
ULONG
,
ULONG
,
PDEBUG_BUFFER
);
NTSTATUS
WINAPI
RtlQueryRegistryValues
(
ULONG
,
PCWSTR
,
PRTL_QUERY_REGISTRY_TABLE
,
PVOID
,
PVOID
);
NTSTATUS
WINAPI
RtlQueryTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
);
void
WINAPI
RtlRaiseException
(
PEXCEPTION_RECORD
);
void
WINAPI
RtlRaiseStatus
(
NTSTATUS
);
ULONG
WINAPI
RtlRandom
(
PULONG
);
...
...
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