ReactOS  0.4.12-dev-685-gf36cbf7
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
187  SIZE_T StackReserve,
188  SIZE_T StackCommit,
189  PINITIAL_TEB InitialTeb);
190 
191 VOID
192 WINAPI
195  IN PVOID StartAddress,
196  IN PVOID StackAddress,
198 
199 VOID
200 WINAPI
202 
203 VOID
204 WINAPI
206 
207 VOID
208 NTAPI
210  IN PBASEP_ACTCTX_BLOCK ActivationBlock
211 );
212 
213 NTSTATUS
214 NTAPI
216  IN DWORD Flags,
219  OUT PBASEP_ACTCTX_BLOCK *ActivationBlock
220 );
221 
222 NTSTATUS
223 NTAPI
225  IN PVOID DllHandle,
227  OUT PVOID *ActCtx
228 );
229 
230 __declspec(noreturn)
231 VOID
232 WINAPI
233 BaseThreadStartup(LPTHREAD_START_ROUTINE lpStartAddress,
235 
236 VOID
237 WINAPI
239  IN PINITIAL_TEB InitialTeb);
240 
241 __declspec(noreturn)
242 VOID
243 WINAPI
244 BaseFiberStartup(VOID);
245 
247 
248 VOID
249 WINAPI
251 
252 PVOID
253 WINAPI
255 
256 VOID
257 WINAPI
260 
262 WINAPI
264 
265 BOOLEAN
266 WINAPI
268  IN LPCSTR String);
269 
273 
275 
279 
281 
282 ULONG
283 NTAPI
285 
286 ULONG
287 NTAPI
289 
294 
297 
298 HANDLE
299 WINAPI
301 
302 NTSTATUS
303 WINAPI
304 BasepMapFile(IN LPCWSTR lpApplicationName,
307 
309 IntGetCodePageEntry(UINT CodePage);
310 
311 LPWSTR
312 WINAPI
314  IN LPWSTR FullPath,
316 );
317 
318 LPWSTR
319 WINAPI
321  IN LPWSTR FullPath
322 );
323 
324 ULONG
325 WINAPI
327  IN PUNICODE_STRING PathName,
329 );
330 
331 NTSTATUS
332 WINAPI
337  IN USHORT ExeType,
340  IN PVOID* SxsData,
343 );
344 
345 BOOLEAN
346 WINAPI
348  VOID
349 );
350 
351 VOID
352 WINAPI
354 
355 DWORD
356 WINAPI
358 
359 VOID
360 NTAPI
362  IN PVOID Context,
363  OUT BOOLEAN *StopEnumeration);
364 
365 typedef NTSTATUS
368  IN ULONG CertFlag
369 );
370 
371 typedef NTSTATUS
374 );
375 
376 typedef NTSTATUS
378  IN HANDLE Token,
379  IN HANDLE Process,
381 );
382 
383 typedef struct _BASEP_APPCERT_ENTRY
384 {
389 
390 typedef struct _BASE_MSG_SXS_HANDLES
391 {
397 
399 {
403 
405 {
410 
411 NTSTATUS
412 NTAPI
418  IN PVOID Context,
420 );
421 
424 
425 VOID
426 WINAPI
430 );
431 
432 BOOL
434  IN LPCWSTR lpExistingFileName,
435  IN LPCWSTR lpNewFileName,
436  IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
437  IN LPVOID lpData OPTIONAL,
438  IN LPBOOL pbCancel OPTIONAL,
439  IN DWORD dwCopyFlags,
440  IN DWORD dwBasepFlags,
441  OUT LPHANDLE lpExistingHandle,
442  OUT LPHANDLE lpNewHandle
443 );
444 
445 BOOL
447  IN LPCWSTR lpszMountPoint,
448  OUT LPWSTR lpszVolumeName,
449  IN DWORD cchBufferLength,
450  OUT LPBOOL IsAMountPoint
451 );
452 
453 BOOL
455  IN LPCWSTR lpszMountPoint,
456  OUT LPWSTR lpszVolumeName,
457  IN DWORD cchBufferLength,
458  OUT LPBOOL IsAMountPoint
459 );
460 
461 BOOL
464  IN PUNICODE_STRING NtPathName
465 );
466 
467 /* FIXME: This is EXPORTED! It should go in an external kernel32.h header */
468 VOID
469 WINAPI
471  IN PVOID AppCompatData,
472  IN PVOID AppCompatSxsData
473 );
474 
475 NTSTATUS
476 WINAPI
478  IN HANDLE UserToken,
481  OUT PBOOLEAN InJob,
482  OUT PHANDLE NewToken,
483  OUT PHANDLE JobHandle
484 );
UNICODE_STRING BaseWindowsSystemDirectory
Definition: path.c:20
DWORD FilenameW2A_FitOrFail(LPSTR DestA, INT destLen, LPCWSTR SourceW, INT sourceLen)
Definition: fileinfo.c:102
CONST WCHAR * PCWCH
Definition: ntbasedef.h:418
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:55
PVOID PVOID PWCHAR PVOID Environment
Definition: env.c:45
#define IN
Definition: typedefs.h:38
VOID WINAPI BasepFreeAppCompatData(IN PVOID AppCompatData, IN PVOID AppCompatSxsData)
Definition: appcache.c:336
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID PULONG PULONG FusionFlags
Definition: env.c:45
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:707
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:909
*BytesInUnicodeString PWCH UnicodeString
Definition: rtlfuncs.h:1980
ULONG(NTAPI * PRTL_COUNT_STRINGA)(IN PANSI_STRING UnicodeString)
Definition: kernel32.h:280
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
LARGE_INTEGER ViewBase
Definition: kernel32.h:395
PBASEP_APPCERT_PLUGIN_FUNC fPluginCertFunc
Definition: kernel32.h:387
BOOL IsThisARootDirectory(IN HANDLE VolumeHandle, IN PUNICODE_STRING NtPathName)
Definition: volume.c:154
LPSTR lpCmdLine
Definition: kernel32.h:74
#define DWORD
Definition: msvc.h:34
LPSTR lpEnvAddress
Definition: kernel32.h:73
uint16_t * PWSTR
Definition: typedefs.h:54
VOID WINAPI BaseMarkFileForDelete(IN HANDLE FileHandle, IN ULONG FileAttributes)
Definition: utils.c:864
PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize
Definition: utils.c:28
_In_ PCWSTR _In_z_ PCWSTR _In_ ULONG ValueType
Definition: rtlfuncs.h:4000
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:270
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
PLDR_DATA_TABLE_ENTRY BasepExeLdrEntry
Definition: proc.c:25
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
NTSTATUS(NTAPI * PBASEP_APPCERT_PLUGIN_FUNC)(IN LPWSTR ApplicationName, IN ULONG CertFlag)
Definition: kernel32.h:366
static WCHAR String[]
Definition: stringtable.c:55
uint16_t * PWCHAR
Definition: typedefs.h:54
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:239
Definition: kernel32.h:383
char * LPSTR
Definition: xmlstorage.h:182
WORD wMagicValue
Definition: kernel32.h:75
PRTL_CONVERT_STRING Basep8BitStringToUnicodeString
Definition: utils.c:26
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:385
WaitForInputIdleType UserWaitForInputIdleRoutine
Definition: proc.c:20
int32_t INT
Definition: typedefs.h:56
VOID WINAPI BaseFreeThreadStack(IN HANDLE hProcess, IN PINITIAL_TEB InitialTeb)
Definition: utils.c:486
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
_In_ PUNICODE_STRING ValueName
Definition: cmfuncs.h:264
HANDLE FileHandle
Definition: stats.c:38
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID WINAPI BaseInitializeContext(IN PCONTEXT Context, IN PVOID Parameter, IN PVOID StartAddress, IN PVOID StackAddress, IN ULONG ContextType)
Definition: utils.c:503
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
HMODULE hCurrentModule
Definition: dllmain.c:25
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
_Unreferenced_parameter_ PVOID * CompletionContext
Definition: cdprocs.h:1130
SYSTEM_BASIC_INFORMATION BaseCachedSysInfo
unsigned char BOOLEAN
DWORD WINAPI BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:3988
PVOID ActivationContext
Definition: kernel32.h:102
PCODEPAGE_ENTRY FASTCALL IntGetCodePageEntry(UINT CodePage)
Definition: nls.c:191
struct _BASEP_ACTCTX_BLOCK BASEP_ACTCTX_BLOCK
const char * LPCSTR
Definition: xmlstorage.h:183
_In_ PCWSTR FullDllName
Definition: ldrtypes.h:245
_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
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
unsigned int BOOL
Definition: ntddk_ex.h:94
LIST_ENTRY Entry
Definition: kernel32.h:64
struct _BASEP_ACTCTX_BLOCK * PBASEP_ACTCTX_BLOCK
VOID WINAPI BaseProcessStartup(PPROCESS_START_ROUTINE lpStartAddress)
Definition: proc.c:450
static DWORD LPDWORD LPCSTR DWORD srclen
Definition: directory.c:51
struct _SXS_OVERRIDE_MANIFEST SXS_OVERRIDE_MANIFEST
UNICODE_STRING Name
Definition: kernel32.h:386
struct _CODEPAGE_ENTRY * PCODEPAGE_ENTRY
unsigned int UINT
Definition: ndis.h:50
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
NTSTATUS(NTAPI * PBASEP_APPCERT_EMBEDDED_FUNC)(IN LPWSTR ApplicationName)
Definition: kernel32.h:372
_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:2653
_Must_inspect_result_ _Out_ PHANDLE VolumeHandle
Definition: fltkernel.h:2284
struct tagLOADPARMS32 LOADPARMS32
struct _BASEP_APPCERT_ENTRY * PBASEP_APPCERT_ENTRY
_In_ PCWSTR _Out_ PVOID * ActCtx
Definition: ldrtypes.h:245
struct _BASE_MSG_SXS_HANDLES * PBASE_MSG_SXS_HANDLES
LPWSTR WINAPI BaseComputeProcessDllPath(IN LPWSTR FullPath, IN PVOID Environment)
Definition: path.c:420
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:377
#define NTSTATUS
Definition: precomp.h:20
_In_ GUID _In_ PVOID _In_ ULONG ValueLength
Definition: hubbusif.h:311
LPVOID lpParameter
Definition: kernel32.h:234
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
#define VOID
Definition: acefi.h:82
PUNICODE_STRING Nt
Definition: kernel32.h:401
Definition: btrfs_drv.h:1801
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:1392
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:1406
NTSTATUS(NTAPI * PRTL_CONVERT_STRINGA)(IN PANSI_STRING AnsiString, IN PCUNICODE_STRING UnicodeString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:276
Definition: typedefs.h:117
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
#define WINAPI
Definition: msvc.h:20
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:1404
Status
Definition: gdiplustypes.h:24
VOID NTAPI BasepFreeActivationContextActivationBlock(IN PBASEP_ACTCTX_BLOCK ActivationBlock)
Definition: actctx.c:26
NTSTATUS WINAPI BaseCreateStack(HANDLE hProcess, SIZE_T StackReserve, SIZE_T StackCommit, PINITIAL_TEB InitialTeb)
Definition: utils.c:353
enum _BASE_SEARCH_PATH_TYPE * PBASE_SEARCH_PATH_TYPE
ULONG_PTR SIZE_T
Definition: typedefs.h:78
Definition: compat.h:484
PVOID AllocateMemory(IN UINT Size)
Definition: utility.c:20
PVOID PVOID PWCHAR ApplicationName
Definition: env.c:45
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:274
PVOID PVOID PWCHAR PVOID USHORT ExeType
Definition: env.c:45
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:45
DWORD FilenameW2A_N(LPSTR dest, INT destlen, LPCWSTR src, INT srclen)
Definition: fileinfo.c:150
PBASE_STATIC_SERVER_DATA BaseStaticServerData
Definition: dllmain.c:19
unsigned int * PULONG
Definition: retypes.h:1
#define alloc
Definition: rosglue.h:13
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:400
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define OUT
Definition: typedefs.h:39
BOOL bIsFileApiAnsi
Definition: utils.c:25
VOID WINAPI BaseProcessStartThunk(VOID)
struct _BASEP_APPCERT_ENTRY BASEP_APPCERT_ENTRY
_In_ PIRP _In_opt_ PVOID _In_opt_ POPLOCK_WAIT_COMPLETE_ROUTINE CompletionRoutine
Definition: fsrtlfuncs.h:673
unsigned int ULONG
Definition: retypes.h:1
UINT(WINAPI * PPROCESS_START_ROUTINE)(VOID)
Definition: kernel32.h:246
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE ContextType
Definition: fltkernel.h:1444
DWORD FilenameU2A_FitOrFail(LPSTR DestA, INT destLen, PUNICODE_STRING SourceU)
Definition: fileinfo.c:60
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:676
LPTOP_LEVEL_EXCEPTION_FILTER GlobalTopLevelExceptionFilter
Definition: except.c:158
enum _BASE_CURRENT_DIR_PLACEMENT BASE_CURRENT_DIR_PLACEMENT
UNICODE_STRING BaseDefaultPathAppend
Definition: path.c:21
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: fileinfo.c:22
_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:872
PVOID WINAPI BasepIsRealtimeAllowed(IN BOOLEAN Keep)
Definition: utils.c:653
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID * SxsData
Definition: env.c:45
#define UINT
Definition: msvc.h:27
PTEB GetTeb(VOID)
Definition: thread.c:400
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:3217
BYTE * PBYTE
Definition: pedump.c:66
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID * SdbQueryAppCompatData
Definition: env.c:45
enum _BASE_SEARCH_PATH_TYPE BASE_SEARCH_PATH_TYPE
base of all file and directory entries
Definition: entries.h:82
VOID WINAPI BaseThreadStartupThunk(VOID)
CPTABLEINFO CodePageTable
Definition: kernel32.h:68
__declspec(noreturn) VOID WINAPI BaseThreadStartup(LPTHREAD_START_ROUTINE lpStartAddress
Definition: thread.c:29
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:45
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68