Prog 101 question here Sup Forums

prog 101 question here Sup Forums

How do I create an exe, that registers itself to run as a service on startup without a console appearing?

I'm not gay but vaginas are so fucking ugly, you literally can't deny it. They look like some alien shit man.

T.virgin

this but its not like cocks are any better

agreed.

...

I'd stick my dick in it but I wouldn't want to stare at it.

>what is /hklm/software/microsoft/windows/currentversion/run
Though, that shit will be caught easy af. You have a lot to learn.

This. They're some H.R. Giger lovecraftian edritch shit.
And so are dicks.

>.exe
>Using Windows ever
Top kek

no idea what is is, just need the codes

...

Read my post again. You're too stupid for this.

yeah, I just said I'm stupid, I just need the codez

You have your response here

Python:
import autorun
autorun.makeautorun('name_of_the_exe.exe');


Thank me later.

Not going to happen. Watch Mr. Robot in its entirety. Better use of your time.

I need it in C++ brother.

why, I just need these two things to get done and I'm golden.

Not a real lib.

You're not even a skid. Dude, you stand no chance.

I know, think I found my codez
LONG lnRes = RegOpenKeyEx(
HKEY_LOCAL_MACHINE, // handle of open key
// The following is the address of name of subkey to open
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
0L,KEY_WRITE,
&hKey // address of handle of open key
);

// now add program path to the RUN key
lstrcpy( (char *) szFilePath , LPCTSTR(m_strFileName) );
GetDlgItemText( IDC_KEYNAME, sKeyName ); //Get value name

if( ERROR_SUCCESS == lnRes )
{
lnRes = RegSetValueEx(hKey,
LPCTSTR( sKeyName ), // handle of the opened
// key to set value for
0,
REG_SZ,
szFilePath, //value data
REG_SZ );
}

I already managed to hide it, now I'll test the registry codez, wish me lucks brothers

#include
#include
using namespace std;

int main() {
autorun.makeautorun('exe_name.exe');
}


If it doesn't work you should compile it on Linux, with the appropriate flags and then run it on Windows once to make it work

>Not a real lib.
lmao, you are retarded.

No includes?
That shit isn't going to work brah.

>he fell for the "genitals are beautiful" meme

Source for libs? 'Cause they're not standard.

That kind user just gave you the solution.
So many brainlets on Sup Forums
Makes me sad that this is a technology board and stupid fucks like you fill this shithole up with your stupid question which belongs to the stupid general threads which is a trashplace for brainlets like you. Now open regedit and do stuff.

no I got my includes ready, alright

now, where is a good place to hide my exe?