-
Notifications
You must be signed in to change notification settings - Fork 32
/
NeroProgress.h
41 lines (38 loc) · 1.04 KB
/
NeroProgress.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/******************************************************************************
|* 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.
|*
|* Copyright 1995-2004 Ahead Software AG. All Rights Reserved.
|*-----------------------------------------------------------------------------
|* NeroSDK / NeroCmd
|*
|* PROGRAM: NeroProgress.h
|*
|* PURPOSE: Wrapper for NERO_PROGRESS structure
******************************************************************************/
#include "stdafx.h"
class CNeroProgress
{
protected:
NERO_PROGRESS * m_pNeroProgress;
public:
CNeroProgress ()
{
m_pNeroProgress = NeroCreateProgress ();
_ASSERTE (m_pNeroProgress != NULL);
}
~CNeroProgress ()
{
NeroFreeMem (m_pNeroProgress);
}
NERO_PROGRESS * operator-> ()
{
return m_pNeroProgress;
}
operator NERO_PROGRESS * ()
{
return m_pNeroProgress;
}
};