[HELP] Invoke APIs

Iniciado por Swellow, 4 Mayo 2012, 08:12 AM

0 Miembros y 1 Visitante están viendo este tema.

Swellow

Hello guys, can anyone help me invoking these APIs:

Private Declare Function LoadLibraryEx _
                Lib "kernel32.dll" _
                Alias "LoadLibraryExA" (ByVal lpLibFileName As String, _
                                        ByVal hFile As Long, _
                                        ByVal dwFlags As Long) As Long

Private Declare Function EnumResourceNames _
                Lib "kernel32.dll" _
                Alias "EnumResourceNamesA" (ByVal hModule As Long, _
                                            ByVal lpType As Long, _
                                            ByVal lpEnumFunc As Long, _
                                            ByVal lParam As Long) As Boolean



hModule = LoadLibraryEx(szFileName, 0, LOAD_LIBRARY_AS_DATAFILE)


Do While EnumResourceNames(hModule, lResourceType, AddressOf EnumResNameProcSplit, 0) = True
Loop


Thanks a lot!

Swellow