2006-05-08 16:48:10 +00:00
|
|
|
DdDeleteDirectDrawObject
|
|
|
|
|
|
|
|
we need release directdraw handler the cache or not cache handler
|
|
|
|
1. check see if DirectDrawGlobal->hDD is NULL or not
|
|
|
|
|
|
|
|
2. if both cache directdraw handler and public handler is NULL
|
|
|
|
then we need return false, fail to release it or it was already release
|
|
|
|
|
2021-09-13 01:33:14 +00:00
|
|
|
3. if public directdraw handler is not null we need release it
|
|
|
|
and return if we susses or not.
|
2006-05-08 16:48:10 +00:00
|
|
|
|
|
|
|
4. we need check if we need rest the internal cache if public being release
|
|
|
|
|
2021-09-13 01:33:14 +00:00
|
|
|
|
|
|
|
use NtGdiDdDeleteDirectDrawObject((HANDLE)DirectDrawGlobal->hDD);
|
|
|
|
to release a directdraw handler.
|