Page 1 of 1

VC++ TO PB

Posted: Mon Nov 09, 2009 4:41 pm
by j50501313

Code: Select all

#include <windows.h>
#include <tchar.h>
int _tmain()
{
    DWORD (WINAPI *SfcFileException)(DWORD, LPWSTR, DWORD); 
    SfcFileException = (DWORD (WINAPI *)(DWORD, LPWSTR, DWORD)) 
    GetProcAddress(LoadLibrary(_T("SFC_OS.dll")), (LPCSTR)5); 
    if (!SfcFileException(0, L"c:\\windows\\explorer.exe", -1)) 
    {
         return 1;
    }
    return 0;
}

Re: VC++ TO PB

Posted: Mon Nov 09, 2009 4:56 pm
by milan1612
Nope

Re: VC++ TO PB

Posted: Mon Nov 09, 2009 5:40 pm
by traumatic
Hello, I'm j50501313 and I'm new to PureBasic. While I really enjoy what I see so far,
I stumbled across this piece of C code that I'd like to convert to PB.

Code: Select all

...original code...
This is what I've got:

Code: Select all

...my code fragment here...
I wonder if someone could please help me out. Thank you in advance.

Re: VC++ TO PB

Posted: Mon Nov 09, 2009 6:40 pm
by Rings
this post will deleted in a few minuts/hours.
The poster only ask for a dumb
conversation of a exploit.

nothing we should help IMHO.