Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- #include "DummyWindow.h"
- #include "WinampShiz.h"
- int main( const int count, const char* const* const pszCommandLine )
- {
- const char* dllPath = pszCommandLine[ 0 ];
- if( count > 1 )
- {
- dllPath = pszCommandLine[ 1 ];
- }
- HMODULE hmod = LoadLibraryA( dllPath );
- winampVisHeader* (*pfn)() = reinterpret_cast< winampVisHeader* (*)() >( GetProcAddress( hmod, "winampVisGetHeader" ) );
- winampVisHeader& hdr = *pfn();
- winampVisModule& mod = *( hdr.getModule( 0 ) );
- mod.hwndParent = createDummyWindow();
- mod.hDllInstance = hmod;
- mod.Init(&mod);
- while( true )
- {
- mod.Render(&mod);
- Sleep( 50 );
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment