Sample Code

Windows Driver Samples/ XPSDrv Driver and Filter Sample/ C++/ src/ filters/ watermark/ wmxps.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:

   wmxps.h

Abstract:

   Watermark XPS markup class definition. The CWatermarkMarkup class is responsible
   for creating a stream that contains markup loaded from a resource.

--*/

#pragma once

#include "wmptprop.h"

class CWatermarkMarkup
{
public:
    CWatermarkMarkup(
        _In_ CONST CWMPTProperties& wmProps,
        _In_ CONST INT              resourceID
        );

    ~CWatermarkMarkup();

    HRESULT
    GetImageDimensions(
        _Out_ SizeF* pDimensions
        );

    HRESULT
    GetStream(
        _Out_ IStream** ppStream
        );

private:
    HRESULT
    CreateXPSStream(
        VOID
        );

private:
    CWMPTProperties  m_WMProps;

    INT              m_resourceID;

    CComPtr<IStream> m_pXPSStream;
};

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