|
//define in wincesdk/winbase.h
- #ifdef UNDER_CE
- #define GlobalAlloc(flags, cb) LocalAlloc(flags, cb)
- #define GlobalFree(handle) LocalFree(handle)
- #define GlobalReAlloc(handle, cb, flags) LocalReAlloc(handle, cb, LMEM_MOVEABLE)
- #define GlobalLock(lp) LocalLock(lp)
- #define GlobalHandle(lp) LocalHandle(lp)
- #define GlobalUnlock(hMem) LocalUnlock(hMem)
- #define GlobalSize(hMem) LocalSize(hMem)
- #define GlobalFlags(X) LocalFlags(X)
- #define LocalPtrHandle(lp) ((HLOCAL)LocalHandle(lp))
- #define LocalLockPtr(lp) ((BOOL)LocalLock(LocalPtrHandle(lp)))
- #define LocalUnlockPtr(lp) LocalUnlock(LocalPtrHandle(lp))
- #define LocalFreePtr(lp) (LocalUnlockPtr(lp), (BOOL)LocalFree(LocalPtrHandle(lp)))
- #endif
复制代码 |
|