English
Source / code snippets

List Dll Etc. names Ressourcen Types

 

KHR

CompileMarkSeparation
Danke an Andreas Miete
der dies aus seiner Schatzkiste zusammengestellt hat
 $H windows.ph

Proc Is_IntResource

    Declare IntResource$
    Parameters Type&
    IntResource$ = 1,2,3,4,5,6,7,8,9,10,11,12,14,16,17,19,20,21,22,23,24

    If Instr(Str$(Type&),IntResource$)

        Return 1

    Else

        Return 0

    Endif

EndProc

Proc IntResourceToString

    Parameters Type&
    Declare I_Str$
    Case Type& = 1 : I_str$ =CURSOR
    Case Type& = 2 : I_str$ =BITMAP
    Case Type& = 3 : I_str$ =ICON
    Case Type& = 4 : I_str$ =MENU
    Case Type& = 5 : I_str$ =DIALOG
    Case Type& = 6 : I_str$ =STRINGTABLE
    Case Type& = 7 : I_str$ =FONTDIR
    Case Type& = 8 : I_str$ =FONT
    Case Type& = 9 : I_str$ =ACCELERATOR
    Case Type& = 10 : I_str$ =RCDATA
    Case Type& = 11 : I_str$ =MESSAGETABLE
    Case Type& = 12 : I_str$ =GROUP_CURSOR
    Case Type& = 14 : I_str$ =GROUP_ICON
    Case Type& = 16 : I_str$ =VERSIONINFO
    Case Type& = 17 : I_str$ =DLGINCLUDE
    Case Type& = 19 : I_str$ =PLUGPLAY
    Case Type& = 20 : I_str$ =VXD
    Case Type& = 21 : I_str$ =ANICURSOR
    Case Type& = 22 : I_str$ =ANIICON
    Case Type& = 23 : I_str$ =HTML
    Case Type& = 24 : I_str$ =MANIFEST
    Return I_Str$

EndProc

Proc ResTypes

    Parameters hModul&,lpszType&,lParam&

    If Is_IntResource(lpszType&)

        Print IntResourceToString(lpszType&)

    else

        Print String$(lpszType&,0)

    Endif

    ~EnumResourceNames(hModul&,lpszType&,ProcAddr(ResNames,4),0)
    Return 1

EndProc

Proc ResNames

    Parameters hModul&,lpszType&,lpszName&,lParam&

    If lpszName& & $FFFF0000

        Print   +String$(lpszName&,0)

    else

        Print   +Str$(lpszName&)

    Endif

    Return 1

EndProc

Var Dll& = Usedll(lleer32.Dll)Pfad zur Dll anpassen
cls
~EnumResourceTypes(dll&,ProcAddr(ResTypes,3),0)
waitinput
end
 
Gruß
Karl-Heinz
WIN XP home/Pro / XPROFAN 11 / P2CPP
ATMEL + BASCOM Fan
02/17/09  
 



 
02/17/09  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.950 Views

Untitledvor 0 min.
AndreasS11/27/18
H.Brill09/01/14
Christian Hahn06/26/13
Untitled03/23/12
More...

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
KHR (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie