2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2009-01-19 15:55:47 +00:00
|
|
|
|
2008-04-17 18:01:51 +00:00
|
|
|
#define _KSDDK_
|
2009-01-19 15:55:47 +00:00
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
|
2011-08-14 12:59:05 +00:00
|
|
|
#include <ndk/iofuncs.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
2009-01-19 15:55:47 +00:00
|
|
|
|
2008-04-17 18:01:51 +00:00
|
|
|
#include <ks.h>
|
2009-01-19 15:55:47 +00:00
|
|
|
|
2009-01-25 16:13:16 +00:00
|
|
|
#define ROUND_DOWN(n, align) \
|
|
|
|
(((ULONG)n) & ~((align) - 1l))
|
|
|
|
|
|
|
|
#define ROUND_UP(n, align) \
|
|
|
|
ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
|