InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WResourceShell.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge, Mouhammad Fakhoury, lance bushore
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __WResourceShell_h__
25 #define __WResourceShell_h__
26 
27 #include "RsrcSpec.h"
28 #include "PMLocaleId.h"
29 #include "CResourceShell.h"
30 
35 {
36 public:
37 #ifdef ID_DEPRECATED
38 
40  static void LockResourceHandle( SysHandle rsrcHandle);
41 
44  static void UnlockResourceHandle( SysHandle rsrcHandle);
45 #endif
46 
50  static void ReleaseResource(const SysHandle rsrcHandle);
51 
55  static void DetachResource(const SysHandle rsrcHandle){};
56 
61  static int32 GetSizeofResource(const SysHandle rsrcHandle);
62 
68  static SysHandle GetWinResource(LPTSTR rsrcType, LPTSTR id);
69 
70 
77  static SysHandle GetWinResource(HMODULE hModule, LPTSTR rsrcType, LPTSTR id);
78 
84  static SysHandle GetResourceByID(RsrcType type, RsrcID id);
85 
91  static SysHandle GetResourceByIndex(RsrcType type, RsrcID index /*1-based*/);
92 
97  static int16 CountResources(RsrcType type);
98 private:
99 
100  WResourceShell(){} // don't make one please
101 };
102 
105 inline SysHandle WResourceShell::GetResourceByID(RsrcType type, RsrcID rsrcID)
106 {
107  return WResourceShell::GetWinResource(MAKEINTRESOURCE(type),MAKEINTRESOURCE(rsrcID));
108 }
109 
112 inline void WResourceShell::LockResourceHandle(SysHandle rsrcHandle)
113 {
114 }
115 
118 inline void WResourceShell::UnlockResourceHandle(SysHandle rsrcHandle)
119 {
120 }
121 
122 #endif // __WResourceShell__