ReactOS  0.4.15-dev-5112-g22d8c0f
kernel32.h
Go to the documentation of this file.
1 #pragma once
2 
3 //
4 // Kernel32 Filter IDs
5 //
6 #define kernel32file 200
7 #define kernel32ver 201
8 #define actctx 202
9 #define resource 203
10 #define kernel32session 204
11 #define comm 205
12 #define profile 206
13 #define nls 207
14 
15 
16 #if DBG
17 #define DEBUG_CHANNEL(ch) static ULONG gDebugChannel = ch;
18 #else
19 #define DEBUG_CHANNEL(ch)
20 #endif
21 
22 #define TRACE(fmt, ...) TRACE__(gDebugChannel, fmt, ##__VA_ARGS__)
23 #define WARN(fmt, ...) WARN__(gDebugChannel, fmt, ##__VA_ARGS__)
24 #define FIXME(fmt, ...) WARN__(gDebugChannel, fmt,## __VA_ARGS__)
25 #define ERR(fmt, ...) ERR__(gDebugChannel, fmt, ##__VA_ARGS__)
26 
27 #define STUB \
28  SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
29  DPRINT1("%s() is UNIMPLEMENTED!\n", __FUNCTION__)
30 
31 #define debugstr_a
32 #define debugstr_w
33 #define debugstr_wn
34 #define wine_dbgstr_w
35 #define debugstr_guid
36 
37 #include "wine/unicode.h"
38 #include "baseheap.h"
39 
40 #define MAGIC(c1,c2,c3,c4) ((c1) + ((c2)<<8) + ((c3)<<16) + ((c4)<<24))
41 
42 #define MAGIC_HEAP MAGIC( 'H','E','A','P' )
43 
44 #define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
45 #define ROUNDDOWN(a,b) (((a)/(b))*(b))
46 
47 #define ROUND_DOWN(n, align) \
48  (((ULONG)n) & ~((align) - 1l))
49 
50 #define ROUND_UP(n, align) \
51  ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
52 
53 #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
54 
55 #define __TRY _SEH2_TRY
56 #define __EXCEPT_PAGE_FAULT _SEH2_EXCEPT(_SEH2_GetExceptionCode() == STATUS_ACCESS_VIOLATION)
57 #define __ENDTRY _SEH2_END
58 
59 /* Undocumented CreateProcess flag */
60 #define STARTF_SHELLPRIVATE 0x400
61 
62 typedef struct _CODEPAGE_ENTRY
63 {
70 
71 typedef struct tagLOADPARMS32
72 {
78 } LOADPARMS32;
79 
81 {
90 
92 {
98 
99 typedef struct _BASEP_ACTCTX_BLOCK
100 {
106 
107 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_ERROR 1
108 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_SUCCESS 2
109 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_CONTINUE 3
110 
112 
113 typedef
114 DWORD
117  DWORD dwMilliseconds);
118 
120 
121 /* Flags for PrivCopyFileExW && BasepCopyFileExW */
122 #define BASEP_COPY_METADATA 0x10
123 #define BASEP_COPY_SACL 0x20
124 #define BASEP_COPY_OWNER_AND_GROUP 0x40
125 #define BASEP_COPY_DIRECTORY 0x80
126 #define BASEP_COPY_BACKUP_SEMANTICS 0x100
127 #define BASEP_COPY_REPLACE 0x200
128 #define BASEP_COPY_SKIP_DACL 0x400
129 #define BASEP_COPY_PUBLIC_MASK 0xF
130 #define BASEP_COPY_BASEP_MASK 0xFFFFFFF0
131 
132 /* Flags for PrivMoveFileIdentityW */
133 #define PRIV_DELETE_ON_SUCCESS 0x1
134 #define PRIV_ALLOW_NON_TRACKABLE 0x2
135 
136 /* GLOBAL VARIABLES **********************************************************/
137 
138 extern BOOL bIsFileApiAnsi;
139 extern HMODULE hCurrentModule;
140 
142 
147 
149 
151 
153 
154 /* FUNCTION PROTOTYPES *******************************************************/
155 
156 VOID
157 NTAPI
159 
160 PTEB GetTeb(VOID);
161 
164 
165 DWORD FilenameW2A_FitOrFail(LPSTR DestA, INT destLen, LPCWSTR SourceW, INT sourceLen);
166 DWORD FilenameU2A_FitOrFail(LPSTR DestA, INT destLen, PUNICODE_STRING SourceU);
167 
168 #define HeapAlloc RtlAllocateHeap
169 #define HeapReAlloc RtlReAllocateHeap
170 #define HeapFree RtlFreeHeap
171 #define _lread(a, b, c) (long)(_hread(a, b, (long)c))
172 
174 WINAPI
176  IN DWORD dwMilliseconds);
177 
179 WINAPI
181  IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL,
183 
184 NTSTATUS
185 WINAPI
188  _In_opt_ SIZE_T StackCommit,
189  _In_opt_ SIZE_T StackReserve,
190  _Out_ PINITIAL_TEB InitialTeb);
191 
192 VOID
193 WINAPI
196  _In_ PINITIAL_TEB InitialTeb);
197 
198 VOID
199 WINAPI
202  IN PVOID StartAddress,
203  IN PVOID StackAddress,
205 
206 VOID
207 WINAPI
209 
210 VOID
211 WINAPI
213 
214 VOID
215 NTAPI
217  IN PBASEP_ACTCTX_BLOCK ActivationBlock
218 );
219 
220 NTSTATUS
221 NTAPI
223  IN DWORD Flags,
226  OUT PBASEP_ACTCTX_BLOCK *ActivationBlock
227 );
228 
229 NTSTATUS
230 NTAPI
232  IN PVOID DllHandle,
234  OUT PVOID *ActCtx
235 );
236 
238 VOID
239 WINAPI
241  _In_ LPTHREAD_START_ROUTINE lpStartAddress,
242  _In_ LPVOID lpParameter);
243 
245 VOID
246 WINAPI
248 
250 
252 VOID
253 WINAPI
255  _In_ PPROCESS_START_ROUTINE lpStartAddress);
256 
257 PVOID
258 WINAPI
260 
261 VOID
262 WINAPI
265 
267 WINAPI
269 
270 BOOLEAN
271 WINAPI
273  IN LPCSTR String);
274 
278 
280 
284 
286 
287 ULONG
288 NTAPI
290 
291 ULONG
292 NTAPI
294 
299 
302 
303 HANDLE
304 WINAPI
306 
307 NTSTATUS
308 WINAPI
309 BasepMapFile(IN LPCWSTR lpApplicationName,
312 
314 IntGetCodePageEntry(UINT CodePage);
315 
316 LPWSTR
317 WINAPI
319  IN LPWSTR FullPath,
321 );
322 
323 LPWSTR
324 WINAPI
326  IN LPWSTR FullPath
327 );
328 
329 ULONG
330 WINAPI
332  IN PUNICODE_STRING PathName,
334 );
335 
336 NTSTATUS
337 WINAPI
342  IN USHORT ExeType,
345  IN PVOID* SxsData,
348 );
349 
350 BOOLEAN
351 WINAPI
353  VOID
354 );
355 
356 VOID
357 WINAPI
359 
360 DWORD
361 WINAPI
363 
364 VOID
365 NTAPI
367  IN PVOID Context,
368  OUT BOOLEAN *StopEnumeration);
369 
370 typedef NTSTATUS
373  IN ULONG CertFlag
374 );
375 
376 typedef NTSTATUS
379 );
380 
381 typedef NTSTATUS
383  IN HANDLE Token,
384  IN HANDLE Process,
386 );
387 
388 typedef struct _BASEP_APPCERT_ENTRY
389 {
394 
395 typedef struct _BASE_MSG_SXS_HANDLES
396 {
402 
404 {
408 
410 {
415 
416 NTSTATUS
417 NTAPI
423  IN PVOID Context,
425 );
426 
429 
430 VOID
431 WINAPI
435 );
436 
437 BOOL
439  IN LPCWSTR lpExistingFileName,
440  IN LPCWSTR lpNewFileName,
441  IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
442  IN LPVOID lpData OPTIONAL,
443  IN LPBOOL pbCancel OPTIONAL,
444  IN DWORD dwCopyFlags,
445  IN DWORD dwBasepFlags,
446  OUT LPHANDLE lpExistingHandle,
447  OUT LPHANDLE lpNewHandle
448 );
449 
450 BOOL
452  IN LPCWSTR lpszMountPoint,
453  OUT LPWSTR lpszVolumeName,
454  IN DWORD cchBufferLength,
455  OUT LPBOOL IsAMountPoint
456 );
457 
458 BOOL
460  IN LPCWSTR lpszMountPoint,
461  OUT LPWSTR lpszVolumeName,
462  IN DWORD cchBufferLength,
463  OUT LPBOOL IsAMountPoint
464 );
465 
466 BOOL
469  IN PUNICODE_STRING NtPathName
470 );
471 
472 /* FIXME: This is EXPORTED! It should go in an external kernel32.h header */
473 VOID
474 WINAPI
476  IN PVOID AppCompatData,
477  IN PVOID AppCompatSxsData
478 );
479 
480 NTSTATUS
481 WINAPI
483  IN HANDLE UserToken,
486  OUT PBOOLEAN InJob,
487  OUT PHANDLE NewToken,
488  OUT PHANDLE JobHandle
489 );
UNICODE_STRING BaseWindowsSystemDirectory
Definition: path.c:20
DWORD FilenameW2A_FitOrFail(LPSTR DestA, INT destLen, LPCWSTR SourceW, INT sourceLen)
Definition: fileutils.c:98
CONST WCHAR * PCWCH
Definition: ntbasedef.h:411
UNICODE_STRING BaseWindowsDirectory
Definition: path.c:20
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
HANDLE WINAPI BaseGetNamedObjectDirectory(VOID)
Definition: utils.c:63
const uint16_t * PCWSTR
Definition: typedefs.h:57
PVOID PVOID PWCHAR PVOID Environment
Definition: env.c:47
#define IN
Definition: typedefs.h:39
VOID WINAPI BasepFreeAppCompatData(IN PVOID AppCompatData, IN PVOID AppCompatSxsData)
Definition: appcache.c:342
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID PULONG PULONG FusionFlags
Definition: env.c:47
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:726
NTSTATUS NTAPI BasepProbeForDllManifest(IN PVOID DllHandle, IN PCWSTR FullDllName, OUT PVOID *ActCtx)
Definition: actctx.c:136
NTSTATUS NTAPI BasepAllocateActivationContextActivationBlock(IN DWORD Flags, IN PVOID CompletionRoutine, IN PVOID CompletionContext, OUT PBASEP_ACTCTX_BLOCK *ActivationBlock)
Definition: actctx.c:45
PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString
Definition: utils.c:27
NTSTATUS WINAPI BasepCheckWinSaferRestrictions(IN HANDLE UserToken, IN LPWSTR ApplicationName, IN HANDLE FileHandle, OUT PBOOLEAN InJob, OUT PHANDLE NewToken, OUT PHANDLE JobHandle)
Definition: utils.c:921
ULONG(NTAPI * PRTL_COUNT_STRINGA)(IN PANSI_STRING UnicodeString)
Definition: kernel32.h:285
#define _In_opt_
Definition: ms_sal.h:309
BOOL BasepCopyFileExW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName, IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL, IN LPVOID lpData OPTIONAL, IN LPBOOL pbCancel OPTIONAL, IN DWORD dwCopyFlags, IN DWORD dwBasepFlags, OUT LPHANDLE lpExistingHandle, OUT LPHANDLE lpNewHandle)
Definition: copy.c:202
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
_In_ WDFREQUEST _In_opt_ PFN_WDF_REQUEST_COMPLETION_ROUTINE _In_opt_ __drv_aliasesMem WDFCONTEXT CompletionContext
Definition: wdfrequest.h:893
LARGE_INTEGER ViewBase
Definition: kernel32.h:400
PBASEP_APPCERT_PLUGIN_FUNC fPluginCertFunc
Definition: kernel32.h:392
BOOL IsThisARootDirectory(IN HANDLE VolumeHandle, IN PUNICODE_STRING NtPathName)
Definition: volume.c:154
#define _Out_
Definition: ms_sal.h:345
LPSTR lpCmdLine
Definition: kernel32.h:74
LPSTR lpEnvAddress
Definition: kernel32.h:73
uint16_t * PWSTR
Definition: typedefs.h:56
VOID WINAPI BaseMarkFileForDelete(IN HANDLE FileHandle, IN ULONG FileAttributes)
Definition: utils.c:876
PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize
Definition: utils.c:28
LONG NTSTATUS
Definition: precomp.h:26
ULONG WINAPI BaseIsDosApplication(IN PUNICODE_STRING PathName, IN NTSTATUS Status)
Definition: vdm.c:66
RTL_CRITICAL_SECTION gcsAppCert
Definition: proc.c:29
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID _Out_ PHANDLE Token
NTSTATUS(NTAPI * PRTL_CONVERT_STRING)(IN PUNICODE_STRING UnicodeString, IN PANSI_STRING AnsiString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:275
PLDR_DATA_TABLE_ENTRY BasepExeLdrEntry
Definition: proc.c:25
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
NTSTATUS WINAPI BaseCreateStack(_In_ HANDLE hProcess, _In_opt_ SIZE_T StackCommit, _In_opt_ SIZE_T StackReserve, _Out_ PINITIAL_TEB InitialTeb)
Definition: utils.c:354
NTSTATUS(NTAPI * PBASEP_APPCERT_PLUGIN_FUNC)(IN LPWSTR ApplicationName, IN ULONG CertFlag)
Definition: kernel32.h:371
WDF_EXTERN_C_START typedef _Must_inspect_result_ _In_opt_ PCUNICODE_STRING UnicodeString
Definition: wdfstring.h:64
uint16_t * PWCHAR
Definition: typedefs.h:56
DWORD(* WaitForInputIdleType)(HANDLE hProcess, DWORD dwMilliseconds)
Definition: kernel32.h:115
_In_ PVOID _Out_opt_ PULONG_PTR _Outptr_opt_ PCUNICODE_STRING * ObjectName
Definition: cmfuncs.h:62
_In_ PVOID Parameter
Definition: ldrtypes.h:241
Definition: kernel32.h:388
char * LPSTR
Definition: xmlstorage.h:182
WORD wMagicValue
Definition: kernel32.h:75
PRTL_CONVERT_STRING Basep8BitStringToUnicodeString
Definition: utils.c:26
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG _Out_opt_ PULONG _Out_opt_ PULONG ValueType
Definition: wdfregistry.h:279
struct _SXS_OVERRIDE_MANIFEST * PSXS_OVERRIDE_MANIFEST
#define FASTCALL
Definition: nt_native.h:50
PLARGE_INTEGER WINAPI BaseFormatTimeOut(OUT PLARGE_INTEGER Timeout, IN DWORD dwMilliseconds)
Definition: utils.c:288
LIST_ENTRY Entry
Definition: kernel32.h:390
#define DWORD
Definition: nt_native.h:44
WaitForInputIdleType UserWaitForInputIdleRoutine
Definition: proc.c:20
int32_t INT
Definition: typedefs.h:58
#define DECLSPEC_NORETURN
Definition: ntbasedef.h:176
RTL_CRITICAL_SECTION BaseDllDirectoryLock
Definition: dllmain.c:32
BOOLEAN WINAPI Basep8BitStringToDynamicUnicodeString(OUT PUNICODE_STRING UnicodeString, IN LPCSTR String)
Definition: utils.c:225
struct _CODEPAGE_ENTRY CODEPAGE_ENTRY
HANDLE BaseNamedObjectDirectory
Definition: dllmain.c:24
VOID WINAPI BaseInitializeContext(IN PCONTEXT Context, IN PVOID Parameter, IN PVOID StartAddress, IN PVOID StackAddress, IN ULONG ContextType)
Definition: utils.c:513
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2430
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
HMODULE hCurrentModule
Definition: dllmain.c:25
unsigned int BOOL
Definition: ntddk_ex.h:94
DECLSPEC_NORETURN VOID WINAPI BaseProcessStartup(_In_ PPROCESS_START_ROUTINE lpStartAddress)
Definition: proc.c:451
PRTL_COUNT_STRINGA Basep8BitStringToUnicodeSize
Definition: utils.c:29
PVOID CompletionContext
Definition: kernel32.h:103
LIST_ENTRY BasepAppCertDllsList
Definition: proc.c:28
UINT CodePage
Definition: kernel32.h:65
SYSTEM_BASIC_INFORMATION BaseCachedSysInfo
DWORD(WINAPI * PPROCESS_START_ROUTINE)(VOID)
Definition: kernel32.h:249
unsigned char BOOLEAN
DWORD WINAPI BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:4182
PVOID ActivationContext
Definition: kernel32.h:102
PCODEPAGE_ENTRY FASTCALL IntGetCodePageEntry(UINT CodePage)
Definition: nls.c:213
struct _BASEP_ACTCTX_BLOCK BASEP_ACTCTX_BLOCK
#define _In_
Definition: ms_sal.h:308
const char * LPCSTR
Definition: xmlstorage.h:183
_In_ PCWSTR FullDllName
Definition: ldrtypes.h:247
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE _In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG FileAttributes
Definition: fltkernel.h:1230
VOID NTAPI BaseDllInitializeMemoryManager(VOID)
Definition: heapmem.c:26
Status
Definition: gdiplustypes.h:24
BOOL BasepGetVolumeNameForVolumeMountPoint(IN LPCWSTR lpszMountPoint, OUT LPWSTR lpszVolumeName, IN DWORD cchBufferLength, OUT LPBOOL IsAMountPoint)
Definition: mntpoint.c:398
LPWSTR WINAPI BaseComputeProcessExePath(IN LPWSTR FullPath)
Definition: path.c:405
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
LIST_ENTRY Entry
Definition: kernel32.h:64
struct _BASEP_ACTCTX_BLOCK * PBASEP_ACTCTX_BLOCK
static DWORD LPDWORD LPCSTR DWORD srclen
Definition: directory.c:51
struct _SXS_OVERRIDE_MANIFEST SXS_OVERRIDE_MANIFEST
#define WINAPI
Definition: msvc.h:6
UNICODE_STRING Name
Definition: kernel32.h:391
struct _CODEPAGE_ENTRY * PCODEPAGE_ENTRY
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
NTSTATUS(NTAPI * PBASEP_APPCERT_EMBEDDED_FUNC)(IN LPWSTR ApplicationName)
Definition: kernel32.h:377
_In_ GUID _In_ PVOID ValueData
Definition: hubbusif.h:311
BOOL BasepGetVolumeNameFromReparsePoint(IN LPCWSTR lpszMountPoint, OUT LPWSTR lpszVolumeName, IN DWORD cchBufferLength, OUT LPBOOL IsAMountPoint)
Definition: mntpoint.c:257
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2652
_Must_inspect_result_ _Out_ PHANDLE VolumeHandle
Definition: fltkernel.h:2283
struct tagLOADPARMS32 LOADPARMS32
struct _BASEP_APPCERT_ENTRY * PBASEP_APPCERT_ENTRY
_In_ PCWSTR _Out_ PVOID * ActCtx
Definition: ldrtypes.h:247
struct _BASE_MSG_SXS_HANDLES * PBASE_MSG_SXS_HANDLES
LPWSTR WINAPI BaseComputeProcessDllPath(IN LPWSTR FullPath, IN PVOID Environment)
Definition: path.c:420
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:240
char * PBOOLEAN
Definition: retypes.h:11
NTSTATUS(NTAPI * PSAFER_REPLACE_PROCESS_THREAD_TOKENS)(IN HANDLE Token, IN HANDLE Process, IN HANDLE Thread)
Definition: kernel32.h:382
#define NTSTATUS
Definition: precomp.h:20
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
#define VOID
Definition: acefi.h:82
PUNICODE_STRING Nt
Definition: kernel32.h:406
Definition: btrfs_drv.h:1866
DWORD(WINAPI * LPPROGRESS_ROUTINE)(_In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ DWORD, _In_ DWORD, _In_ HANDLE, _In_ HANDLE, _In_opt_ LPVOID)
Definition: winbase.h:1424
struct _BASE_MSG_SXS_HANDLES BASE_MSG_SXS_HANDLES
_BASE_CURRENT_DIR_PLACEMENT
Definition: kernel32.h:91
PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER
Definition: winbase.h:1438
NTSTATUS(NTAPI * PRTL_CONVERT_STRINGA)(IN PANSI_STRING AnsiString, IN PCUNICODE_STRING UnicodeString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:281
Definition: typedefs.h:119
GLenum src
Definition: glext.h:6340
VOID WINAPI BasepAnsiStringToHeapUnicodeString(IN LPCSTR AnsiString, OUT LPWSTR *UnicodeString)
Definition: utils.c:263
WORD wCmdShow
Definition: kernel32.h:76
BOOLEAN WINAPI IsShimInfrastructureDisabled(VOID)
Definition: appcache.c:37
LPOVERLAPPED_COMPLETION_ROUTINE CompletionRoutine
Definition: kernel32.h:104
void(CALLBACK * LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD, DWORD, LPOVERLAPPED)
Definition: winbase.h:1436
VOID NTAPI BasepFreeActivationContextActivationBlock(IN PBASEP_ACTCTX_BLOCK ActivationBlock)
Definition: actctx.c:26
enum _BASE_SEARCH_PATH_TYPE * PBASE_SEARCH_PATH_TYPE
ULONG_PTR SIZE_T
Definition: typedefs.h:80
Definition: compat.h:694
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1230
PVOID AllocateMemory(IN UINT Size)
Definition: utility.c:20
PVOID PVOID PWCHAR ApplicationName
Definition: env.c:47
BOOL * LPBOOL
Definition: windef.h:162
NTSTATUS WINAPI BasepCheckBadapp(IN HANDLE FileHandle, IN PWCHAR ApplicationName, IN PWCHAR Environment, IN USHORT ExeType, IN PVOID *SdbQueryAppCompatData, IN PULONG SdbQueryAppCompatDataSize, IN PVOID *SxsData, IN PULONG SxsDataSize, OUT PULONG FusionFlags)
Definition: appcache.c:272
static ULONG Timeout
Definition: ping.c:61
UNICODE_STRING BaseDefaultPath
Definition: path.c:21
ULONG(NTAPI * PRTL_COUNT_STRING)(IN PUNICODE_STRING UnicodeString)
Definition: kernel32.h:279
PVOID PVOID PWCHAR PVOID USHORT ExeType
Definition: env.c:47
Definition: kernel32.h:62
unsigned short USHORT
Definition: pedump.c:61
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID PULONG SxsDataSize
Definition: env.c:47
DWORD FilenameW2A_N(LPSTR dest, INT destlen, LPCWSTR src, INT srclen)
Definition: fileutils.c:146
_In_ WDFREQUEST _In_opt_ PFN_WDF_REQUEST_COMPLETION_ROUTINE CompletionRoutine
Definition: wdfrequest.h:893
PBASE_STATIC_SERVER_DATA BaseStaticServerData
Definition: dllmain.c:19
unsigned int * PULONG
Definition: retypes.h:1
#define alloc
Definition: rosglue.h:13
unsigned int UINT
Definition: ndis.h:50
PBYTE SectionMapping
Definition: kernel32.h:67
POBJECT_ATTRIBUTES WINAPI BaseFormatObjectAttributes(OUT POBJECT_ATTRIBUTES ObjectAttributes, IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL, IN PUNICODE_STRING ObjectName)
Definition: utils.c:304
PUNICODE_STRING WINAPI Basep8BitStringToStaticUnicodeString(IN LPCSTR AnsiString)
Definition: utils.c:188
PUNICODE_STRING Win32
Definition: kernel32.h:405
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
VOID WINAPI BaseFreeThreadStack(_In_ HANDLE hProcess, _In_ PINITIAL_TEB InitialTeb)
Definition: utils.c:495
#define OUT
Definition: typedefs.h:40
BOOL bIsFileApiAnsi
Definition: utils.c:25
VOID WINAPI BaseProcessStartThunk(VOID)
struct _BASEP_APPCERT_ENTRY BASEP_APPCERT_ENTRY
unsigned int ULONG
Definition: retypes.h:1
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE ContextType
Definition: fltkernel.h:1443
DWORD FilenameU2A_FitOrFail(LPSTR DestA, INT destLen, PUNICODE_STRING SourceU)
Definition: fileutils.c:56
VOID NTAPI BasepLocateExeLdrEntry(IN PLDR_DATA_TABLE_ENTRY Entry, IN PVOID Context, OUT BOOLEAN *StopEnumeration)
Definition: utils.c:156
NTSTATUS WINAPI BasepMapFile(IN LPCWSTR lpApplicationName, OUT PHANDLE hSection, IN PUNICODE_STRING ApplicationName)
Definition: utils.c:688
LPTOP_LEVEL_EXCEPTION_FILTER GlobalTopLevelExceptionFilter
Definition: except.c:165
enum _BASE_CURRENT_DIR_PLACEMENT BASE_CURRENT_DIR_PLACEMENT
UNICODE_STRING BaseDefaultPathAppend
Definition: path.c:21
DECLSPEC_NORETURN VOID WINAPI BaseFiberStartup(VOID)
struct _SXS_WIN32_NT_PATH_PAIR * PSXS_WIN32_NT_PATH_PAIR
static char * dest
Definition: rtl.c:135
PWCHAR FilenameA2W(LPCSTR NameA, BOOL alloc)
Definition: fileutils.c:18
_BASE_SEARCH_PATH_TYPE
Definition: kernel32.h:80
NTSTATUS NTAPI BasepConfigureAppCertDlls(IN PWSTR ValueName, IN ULONG ValueType, IN PVOID ValueData, IN ULONG ValueLength, IN PVOID Context, IN PVOID EntryContext)
Definition: proc.c:189
HANDLE SectionHandle
Definition: kernel32.h:66
VOID WINAPI InitCommandLines(VOID)
Definition: proc.c:842
PVOID WINAPI BasepIsRealtimeAllowed(IN BOOLEAN Keep)
Definition: utils.c:665
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID * SxsData
Definition: env.c:47
PTEB GetTeb(VOID)
Definition: thread.c:438
ULONG NTAPI BasepUnicodeStringToAnsiSize(IN PUNICODE_STRING String)
Definition: utils.c:49
DWORD dwReserved
Definition: kernel32.h:77
_In_ const BITMAPINFO _In_ UINT _In_opt_ HANDLE hSection
Definition: wingdi.h:3239
BYTE * PBYTE
Definition: pedump.c:66
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID * SdbQueryAppCompatData
Definition: env.c:47
enum _BASE_SEARCH_PATH_TYPE BASE_SEARCH_PATH_TYPE
DECLSPEC_NORETURN VOID WINAPI BaseThreadStartup(_In_ LPTHREAD_START_ROUTINE lpStartAddress, _In_ LPVOID lpParameter)
Definition: thread.c:56
base of all file and directory entries
Definition: entries.h:82
VOID WINAPI BaseThreadStartupThunk(VOID)
CPTABLEINFO CodePageTable
Definition: kernel32.h:68
UNICODE_STRING BaseDllDirectory
Definition: path.c:21
ULONG NTAPI BasepAnsiStringToUnicodeSize(IN PANSI_STRING String)
Definition: utils.c:56
struct _SXS_WIN32_NT_PATH_PAIR SXS_WIN32_NT_PATH_PAIR
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG SdbQueryAppCompatDataSize
Definition: env.c:47
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG ValueLength
Definition: wdfregistry.h:271
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68