ReactOS 0.4.17-dev-357-ga8f14ff
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

◆ 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 4732 of file ordinal.c.

4734{
4735 WCHAR *bufW;
4736 INT retval;
4737
4738 if (!buf || !size)
4739 return 0;
4740
4741 bufW = malloc(sizeof(WCHAR) * size);
4742 retval = SHFormatDateTimeW(fileTime, flags, bufW, size);
4743
4744 if (retval != 0)
4745 retval = WideCharToMultiByte(CP_ACP, 0, bufW, -1, buf, size, NULL, NULL);
4746
4747 free(bufW);
4748 return retval;
4749}
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
#define NULL
Definition: types.h:112
#define CP_ACP
Definition: compat.h:109
#define WideCharToMultiByte
Definition: compat.h:111
INT WINAPI SHFormatDateTimeW(const FILETIME UNALIGNED *fileTime, DWORD *flags, LPWSTR buf, UINT size)
Definition: ordinal.c:4667
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLbitfield flags
Definition: glext.h:7161
short WCHAR
Definition: pedump.c:58
int32_t INT
Definition: typedefs.h:58
int retval
Definition: wcstombs.cpp:91

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