|
@@ -13,12 +13,14 @@ type
|
|
|
TFPResourceHandle = PtrUInt;
|
|
|
TFPResourceHMODULE = PtrUInt;
|
|
|
TFPResourceHGLOBAL = PtrUInt;
|
|
|
+{$ifndef Win16}
|
|
|
{$ifdef FPC_OS_UNICODE}
|
|
|
{roozbeh : maybe it shoud be moved after ifndef mswindows,as there is one declared in wince,base.inc}
|
|
|
MAKEINTRESOURCE = pwidechar;
|
|
|
{$else}
|
|
|
MAKEINTRESOURCE = pchar;
|
|
|
{$endif}
|
|
|
+{$endif not Win16}
|
|
|
|
|
|
{$ifndef MSWINDOWS }
|
|
|
{ windows has this in the windows unit. It probably would better
|
|
@@ -64,6 +66,7 @@ Function HINSTANCE : TFPResourceHMODULE;
|
|
|
Function EnumResourceTypes(ModuleHandle : TFPResourceHMODULE; EnumFunc : EnumResTypeProc; lParam : PtrInt) : LongBool;
|
|
|
Function EnumResourceNames(ModuleHandle : TFPResourceHMODULE; ResourceType : PChar; EnumFunc : EnumResNameProc; lParam : PtrInt) : LongBool;
|
|
|
Function EnumResourceLanguages(ModuleHandle : TFPResourceHMODULE; ResourceType, ResourceName : PChar; EnumFunc : EnumResLangProc; lParam : PtrInt) : LongBool;
|
|
|
+{$ifndef Win16}
|
|
|
Function FindResource(ModuleHandle: TFPResourceHMODULE; ResourceName, ResourceType: PChar): TFPResourceHandle;
|
|
|
Function FindResourceEx(ModuleHandle: TFPResourceHMODULE; ResourceType, ResourceName: PChar; Language : word): TFPResourceHandle;
|
|
|
Function LoadResource(ModuleHandle: TFPResourceHMODULE; ResHandle: TFPResourceHandle): TFPResourceHGLOBAL;
|
|
@@ -71,6 +74,7 @@ Function SizeofResource(ModuleHandle: TFPResourceHMODULE; ResHandle: TFPResource
|
|
|
Function LockResource(ResData: TFPResourceHGLOBAL): Pointer;
|
|
|
Function UnlockResource(ResData: TFPResourceHGLOBAL): LongBool;
|
|
|
Function FreeResource(ResData: TFPResourceHGLOBAL): LongBool;
|
|
|
+{$endif Win16}
|
|
|
{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
|
|
|
Function FindResource(ModuleHandle: TFPResourceHMODULE; ResourceName, ResourceType: AnsiString): TFPResourceHandle;
|
|
|
Function FindResourceEx(ModuleHandle: TFPResourceHMODULE; ResourceType, ResourceName: AnsiString; Language : word): TFPResourceHandle;
|