Some Tips for the damn OS code name VISTA

Share your advanced PureBasic knowledge/code with the community.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Some Tips for the damn OS code name VISTA

Post by RASHAD »

When you stand in front of a lecturer you will notice that he is pretending that he knows a lot
Well he knows nothing
Even he does not know the purpose of an action
How can you change a Listicon Header height while XP theme is enabled ?
For how long shall we wait for v 1.0 ?
It does not matter as long as the Imagelist mystry is solved
The Gorillas are there out of order

Now for the Tips I gatherd it,Adopted for PureBasic,Tested it and it is OK

VISTA Enable UAC

Code: Select all

RunProgram("C:\Windows\System32\reg.exe"," ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f","",#PB_Program_Wait|#PB_Program_Hide)
VISTA Disable UAC

Code: Select all

 RunProgram("C:\Windows\System32\reg.exe"," ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f","",#PB_Program_Wait|#PB_Program_Hide)
Take Ownership of a file

Code: Select all

RunProgram("C:\Windows\System32\takeown.exe"," /f "+file$,"",#PB_Program_Wait|#PB_Program_Hide)
RunProgram("C:\Windows\System32\icacls.exe"," "+file$ + " /grant administrators:F","",#PB_Program_Wait|#PB_Program_Hide)
Be carefull
RASHAD
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

Tomi
Go ask Mama for a hot cup of milk
and go to sleep

RASHAD
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Some Tips for the damn OS code name VISTA

Post by freak »

RASHAD wrote:When you stand in front of a lecturer you will notice that he is pretending that he knows a lot
Well he knows nothing
Even he does not know the purpose of an action
How can you change a Listicon Header height while XP theme is enabled ?
For how long shall we wait for v 1.0 ?
It does not matter as long as the Imagelist mystry is solved
The Gorillas are there out of order
So what exactly are you trying to tell us !? :lol:
quidquid Latine dictum sit altum videtur
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

Tomi
Do you know now why the 1 pixel is for?
Remember go to mama now


Freak
Nothing


RASHAD
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Well, this is the Tips 'n' Tricks section. If you have nothing to say then post in off-topic (or better yet, not at all)
Tomi
Do you know now why the 1 pixel is for?
Remember go to mama now
And whatever your problem is with Tomi, this is not the place for it either.
quidquid Latine dictum sit altum videtur
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Post by RASHAD »

OK Freak

See you

RASHAD
Post Reply