windows-nt/Source/XPSP1/NT/base/ntsetup/opktools/sprestrt/psp.h

35 lines
997 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#pragma once
//
// Define result codes.
//
#define SUCCESS 0
#define FAILURE 1
//
// Define helper macro to deal with subtleties of NT-level programming.
//
#define INIT_OBJA(Obja,UnicodeString,UnicodeText) \
\
RtlInitUnicodeString((UnicodeString),(UnicodeText)); \
\
InitializeObjectAttributes( \
(Obja), \
(UnicodeString), \
OBJ_CASE_INSENSITIVE, \
NULL, \
NULL \
)
BOOLEAN
SetupDelayedFileRename(
VOID
);
//
// Memory routines
//
#define MALLOC(size) RtlAllocateHeap(RtlProcessHeap(),0,(size))
#define FREE(block) RtlFreeHeap(RtlProcessHeap(),0,(block))