Leaked source code of windows server 2003
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.
|
|
//*******************************************************************************************
//
// Filename : CabItms.h
//
// Definitions of CCabItems and CCabExtract
//
// Copyright (c) 1994 - 1996 Microsoft Corporation. All rights reserved
//
//*******************************************************************************************
#ifndef _CABITMS_H_
#define _CABITMS_H_
#include "fdi.h"
class CCabItems { public: typedef void (CALLBACK *PFNCABITEM)(LPCTSTR pszFile, DWORD dwSize, UINT date, UINT time, UINT attribs, LPARAM lParam);
CCabItems(LPTSTR szCabFile) {lstrcpyn(m_szCabFile, szCabFile, ARRAYSIZE(m_szCabFile));} ~CCabItems() {}
BOOL EnumItems(PFNCABITEM pfnCallBack, LPARAM lParam);
private: TCHAR m_szCabFile[MAX_PATH]; } ;
class CCabExtract { public: #define DIR_MEM ((LPCTSTR)1)
#define EXTRACT_FALSE ((HGLOBAL *)0)
#define EXTRACT_TRUE ((HGLOBAL *)1)
typedef HGLOBAL * (CALLBACK *PFNCABEXTRACT)(LPCTSTR pszFile, DWORD dwSize, UINT date, UINT time, UINT attribs, LPARAM lParam);
CCabExtract(LPTSTR szCabFile) {lstrcpyn(m_szCabFile, szCabFile, ARRAYSIZE(m_szCabFile));} ~CCabExtract() {}
BOOL ExtractItems(HWND hwndOwner, LPCTSTR szDir, PFNCABEXTRACT pfnCallBack, LPARAM lParam); BOOL ExtractToFolder(HWND hwndOwner, IDataObject* pdo, PFNCABEXTRACT pfnCallBack, LPARAM lParam);
private: HRESULT _DoDragDrop(HWND hwnd, IDataObject* pdo, LPCITEMIDLIST pidlFolder);
TCHAR m_szCabFile[MAX_PATH]; } ;
#endif // _CABITMS_H_
|