mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
#ifndef _DFHLPRS_H
|
|
#define _DFHLPRS_H
|
|
|
|
#include <objbase.h>
|
|
|
|
struct _sFLAG_DESCR
|
|
{
|
|
DWORD dwFlag;
|
|
LPTSTR pszDescr;
|
|
LPTSTR pszComment;
|
|
};
|
|
|
|
#define FLAG_DESCR(a) { (DWORD)a, TEXT(#a), NULL }
|
|
#define FLAG_DESCR_COMMENT(a, c) { (DWORD)a, TEXT(#a), c }
|
|
|
|
struct _sGUID_DESCR
|
|
{
|
|
GUID* pguid;
|
|
LPTSTR pszDescr;
|
|
LPTSTR pszComment;
|
|
};
|
|
|
|
#define GUID_DESCR(a, b) { (GUID*)a, b, NULL }
|
|
#define GUID_DESCR_COMMENT(a, b, c) { (GUID*)a, b, c }
|
|
|
|
int _PrintIndent(DWORD cch);
|
|
int _PrintCR();
|
|
int _PrintGUID(CONST GUID* pguid);
|
|
int _PrintGUIDEx(CONST GUID* pguid, _sGUID_DESCR rgguid[], DWORD cguid,
|
|
BOOL fPrintValue, DWORD cchIndent);
|
|
|
|
void _StartClock();
|
|
void _StopClock();
|
|
|
|
int _PrintElapsedTime(DWORD cchIndent, BOOL fCarriageReturn);
|
|
int _PrintGetLastError(DWORD cchIndent);
|
|
|
|
int _PrintFlag(DWORD dwFlag, _sFLAG_DESCR rgflag[], DWORD cflag,
|
|
DWORD cchIndent, BOOL fPrintValue, BOOL fHex, BOOL fComment, BOOL fORed);
|
|
|
|
HANDLE _GetDeviceHandle(LPTSTR psz, DWORD dwDesiredAccess, DWORD dwFileAttributes);
|
|
|
|
#endif // _DFHLPRS_H
|