ReactOS 0.4.16-dev-976-g18fc5a1
precomp.h File Reference
#include <windows.h>
#include <atlbase.h>
#include <atlcom.h>
#include <strsafe.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <shlwapi.h>
#include <shellapi.h>
#include <shlguid_undoc.h>
#include <reactos/debug.h>
#include <shellutils.h>
#include <ntquery.h>
#include <fdi.h>
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NTOS_MODE_USER
 
#define NTSTATUS   LONG
 
#define SFGAO_SYSTEM   0x00001000
 
#define SIID_FOLDER   3
 
#define SIID_FOLDEROPEN   4
 

Functions

EXTERN_C INT WINAPI SHFormatDateTimeA (const FILETIME UNALIGNED *fileTime, DWORD *flags, LPSTR buf, UINT size)
 

Macro Definition Documentation

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 9 of file precomp.h.

◆ NTSTATUS

Definition at line 19 of file precomp.h.

◆ SFGAO_SYSTEM

#define SFGAO_SYSTEM   0x00001000

Definition at line 198 of file shobjidl.idl.

◆ SIID_FOLDER

#define SIID_FOLDER   3

Definition at line 30 of file precomp.h.

◆ SIID_FOLDEROPEN

#define SIID_FOLDEROPEN   4

Definition at line 31 of file precomp.h.

Function Documentation

◆ SHFormatDateTimeA()

EXTERN_C INT WINAPI SHFormatDateTimeA ( const FILETIME UNALIGNED fileTime,
DWORD flags,
LPSTR  buf,
UINT  size 
)

Definition at line 5334 of file ordinal.c.

5336{
5337 WCHAR *bufW;
5338 INT retval;
5339
5340 if (!buf || !size)
5341 return 0;
5342
5343 bufW = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * size);
5344 retval = SHFormatDateTimeW(fileTime, flags, bufW, size);
5345
5346 if (retval != 0)
5347 WideCharToMultiByte(CP_ACP, 0, bufW, -1, buf, size, NULL, NULL);
5348
5349 HeapFree(GetProcessHeap(), 0, bufW);
5350 return retval;
5351}
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define CP_ACP
Definition: compat.h:109
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
#define WideCharToMultiByte
Definition: compat.h:111
INT WINAPI SHFormatDateTimeW(const FILETIME UNALIGNED *fileTime, DWORD *flags, LPWSTR buf, UINT size)
Definition: ordinal.c:5269
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLbitfield flags
Definition: glext.h:7161
int32_t INT
Definition: typedefs.h:58
int retval
Definition: wcstombs.cpp:91
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CCabFolder::GetItemDetails(), and init_pointers().