Sample Code

Windows Driver Samples/ XPSDrv Driver and Filter Sample/ C++/ src/ filters/ xdcont/ xpsrels.h/

/*++

Copyright (c) 2005 Microsoft Corporation

All rights reserved.

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.

File Name:

   xpsrels.h

Abstract:

   Definition of the XPS rels part SAX handler. This class is responsible
   for retrieving all the rels parts for a particular rels file and storing
   them for access by the XPS processor.

--*/

#pragma once

#include "saxhndlr.h"
#include "xps.h"

class CRels : public CSaxHandler
{
public:
    CRels();

    virtual ~CRels();

    virtual HRESULT STDMETHODCALLTYPE
    startElement(
        CONST wchar_t*,
        INT,
        CONST wchar_t*,
        INT,
        _In_reads_(cchQName) CONST wchar_t*  pwchQName,
        _In_                  INT             cchQName,
        _In_                  ISAXAttributes* pAttributes
        );

    HRESULT
    GetRelsTypeList(
        _In_        PCSTR                szFileName,
        _Outptr_    CONST RelsTypeList** ppFileList
        );

    HRESULT
    SetCurrentFileName(
        _In_ PCSTR szFileName
        );

private:
    HRESULT
    GetRelsTypeFromString(
        _In_  CONST CStringXDA& cstrRelsType,
        _Out_ ERelsType*        pRelsType
        );

private:
    RelsMap  m_relsMap;

    CStringXDA m_cstrCurrentFileName;
};

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS