VC++ TO PB

Windows specific forum
j50501313
User
User
Posts: 20
Joined: Fri Oct 23, 2009 11:51 am

VC++ TO PB

Post 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;
}
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Re: VC++ TO PB

Post by milan1612 »

Nope
Windows 7 & PureBasic 4.4
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: VC++ TO PB

Post 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.
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: VC++ TO PB

Post 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.
SPAMINATOR NR.1
Locked