Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

29 lines
1.0 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// HandleProcessor.h: interface for the CHandleProcessor class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HANDLEPROCESSOR_H__ED6713FF_814F_4CFD_9C92_DF1DF6CE7BC1__INCLUDED_)
#define AFX_HANDLEPROCESSOR_H__ED6713FF_814F_4CFD_9C92_DF1DF6CE7BC1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CHandleProcessor
{
public:
CHandleProcessor();
virtual ~CHandleProcessor();
UINT GetStyleFromHandle(DWORD dwHandle); //从句柄中取类型(dwHandle---in:句柄)
DWORD GetIDFromHandle(DWORD dwHandle); //从句柄中取ID(dwHandle---in:句柄)
void AnalyseHandle(DWORD dwHandle, DWORD& dwID, UINT& uStyle); //分析句柄(dwHandle---in:句柄,dwID---in:ID,uStyle---in:类型)
//句柄中,1-27位为ID28-32为style
DWORD GenerateHandle(DWORD dwID, UINT uStyle); //生成句柄(dwID---in:ID,uStyle---in:类型)
DWORD GenerateNewHandle(DWORD dwID, UINT uStyle);
};
#endif // !defined(AFX_HANDLEPROCESSOR_H__ED6713FF_814F_4CFD_9C92_DF1DF6CE7BC1__INCLUDED_)