63 TempFileNameStringA.
Buffer = lpTempFileName;
76 RtlFreeHeap(RtlGetProcessHeap(), 0, lpTempFileNameW);
116 if (lpPathName != lpTempFileName)
127 lpTempFileName[(PathNameString.
Length /
sizeof(
WCHAR)) - 1] =
L'\\';
143 lpTempFileName[(PathNameString.
Length /
sizeof(
WCHAR)) - 1] =
L'\\';
151 TempFileName = lpTempFileName + PathNameString.
Length /
sizeof(
WCHAR);
153 TempFileName += PrefixString.
Length /
sizeof(
WCHAR);
164 sizeof(*GetTempFile));
208 DPRINT(
"Temp file: %S\n", lpTempFileName);
225 }
while (Num & 0xFFFF);
334 (lpOemName ==
NULL && OemNameSize != 0) ||
341 if(lpOemName !=
NULL)
343 AnsiName.
Buffer = lpOemName;
351 (lpOemName ? &AnsiName :
NULL),
353 if (*pbNameLegal && pbNameContainsSpaces)
379 (lpOemName ==
NULL && OemNameSize != 0) ||
386 if(lpOemName !=
NULL)
388 AnsiName.
Buffer = lpOemName;
406 (lpOemName ? &AnsiName :
NULL),
408 if (*pbNameLegal && pbNameContainsSpaces)
#define BASESRV_SERVERDLL_INDEX
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
#define ERROR_NOT_ENOUGH_MEMORY
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
#define ERROR_ACCESS_DENIED
#define ERROR_INVALID_NAME
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
PWCHAR FilenameA2W(LPCSTR NameA, BOOL alloc)
PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString
BOOLEAN WINAPI Basep8BitStringToDynamicUnicodeString(OUT PUNICODE_STRING UnicodeString, IN LPCSTR String)
PUNICODE_STRING WINAPI Basep8BitStringToStaticUnicodeString(IN LPCSTR String)
IN PDCB IN POEM_STRING IN PUNICODE_STRING IN OUT POEM_STRING ShortName
BOOL WINAPI CheckNameLegalDOS8Dot3W(LPCWSTR lpName, LPSTR lpOemName OPTIONAL, DWORD OemNameSize OPTIONAL, PBOOL pbNameContainsSpaces OPTIONAL, PBOOL pbNameLegal)
UINT WINAPI GetTempFileNameW(IN LPCWSTR lpPathName, IN LPCWSTR lpPrefixString, IN UINT uUnique, OUT LPWSTR lpTempFileName)
BOOL WINAPI SetFileShortNameW(HANDLE hFile, LPCWSTR lpShortName)
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)
BOOL WINAPI SetFileShortNameA(HANDLE hFile, LPCSTR lpShortName)
BOOL WINAPI CheckNameLegalDOS8Dot3A(LPCSTR lpName, LPSTR lpOemName OPTIONAL, DWORD OemNameSize OPTIONAL, PBOOL pbNameContainsSpaces OPTIONAL, PBOOL pbNameLegal)
_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
@ FileShortNameInformation
BOOLEAN NTAPI RtlIsNameLegalDOS8Dot3(_In_ PUNICODE_STRING Name, _Inout_opt_ POEM_STRING OemName, _Inout_opt_ PBOOLEAN NameContainsSpaces)
NTSYSAPI WCHAR WINAPI RtlAnsiCharToUnicodeChar(LPSTR *)
struct _FILE_NAME_INFORMATION FILE_NAME_INFORMATION
static struct proto Ext[]
#define memmove(s1, s2, n)
static OUT PIO_STATUS_BLOCK IoStatusBlock
NTSYSAPI ULONG NTAPI RtlIsDosDeviceName_U(_In_ PCWSTR Name)
_Inout_opt_ POEM_STRING _Out_opt_ PBOOLEAN NameContainsSpaces
NTSYSAPI NTSTATUS NTAPI RtlOemStringToUnicodeString(PUNICODE_STRING DestinationString, PCOEM_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI NTSTATUS NTAPI RtlIntegerToChar(_In_ ULONG Value, _In_ ULONG Base, _In_ ULONG Length, _Out_ PCHAR String)
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define FILE_ATTRIBUTE_DIRECTORY
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
DWORD BaseSetLastNTError(IN NTSTATUS Status)
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
#define IsConsoleHandle(h)
PULONG MinorVersion OPTIONAL
BASE_GET_TEMP_FILE GetTempFileRequest
union _BASE_API_MESSAGE::@3534 Data
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_FILE_IS_A_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
DWORD WINAPI GetLastError(void)
#define ERROR_BUFFER_OVERFLOW
#define ERROR_WRITE_PROTECT
#define ERROR_BAD_PATHNAME
#define ERROR_NO_INHERITANCE
#define ERROR_CANNOT_MAKE
#define ERROR_DISK_CORRUPT
#define ERROR_NETWORK_ACCESS_DENIED