Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//=======================================================================
//
// Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
//
// File: AUCatItem.h
//
// Creator: PeterWi
//
// Purpose: AU Catalog Item
//
//=======================================================================
#pragma once
#include "AUBaseCatalog.h"
//const DWORD AUCATITEM_UNSELECTED = 0;
//const DWORD AUCATITEM_SELECTED = 1;
//const DWORD AUCATITEM_HIDDEN = 2;
struct CatalogItem { void init(PUID puid, DWORD index, DWORD dwStatus = AUCATITEM_SELECTED) { m_puid = puid; m_dwStatus = dwStatus; m_index = index; } void SetStatus(DWORD dwStatus) { m_dwStatus = dwStatus; } void SetStatusHidden(void) { m_dwStatus = AUCATITEM_HIDDEN; }
DWORD GetStatus(void) { return m_dwStatus; } BOOL Selected(void) { return (AUCATITEM_SELECTED == m_dwStatus); } BOOL Unselected(void) { return (AUCATITEM_UNSELECTED == m_dwStatus); } BOOL Hidden(void) { return (AUCATITEM_HIDDEN == m_dwStatus); }
PUID m_puid; BOOL m_dwStatus; DWORD m_index; };
|