Sample Code
windows driver samples/ Generic Text-Only Driver/ C++/ inc/ tty.h/
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright 1997-2003 Microsoft Corporation. All Rights Reserved. // // FILE: TTY.h // // PURPOSE: Define memory allocation functions. // #pragma once #include <stddef.h> #include <stdlib.h> #include <objbase.h> #include <stdarg.h> #include <windef.h> #include <winerror.h> #include <winbase.h> #include <wingdi.h> #include <winddi.h> #include <tchar.h> #include <excpt.h> // Macros for Memory Allocation #define MemAlloc(size) ((PVOID) LocalAlloc(LMEM_FIXED, (size))) #define MemFree(p) { if (p) LocalFree((HLOCAL) (p)); }
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials