Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

[WinAPI] QueryServiceObjectSecurity

Name: Anonymous 2010-08-08 15:55

Calling QueryServiceObjectSecurity (http://msdn.microsoft.com/en-us/library/aa379312%28VS.85%29.aspx) with a SCManager handle works correctly on Vista, but it throws an ERROR_INVALID_HANDLE on XP. Am I doing something wrong (inb4 "writing Windows software"), or is it the correct behaviour for XP? There are no remarks on the msdn page for the function, but elsewhere it says:
Windows Server 2003 and Windows XP/2000: Unlike most other securable objects, the security descriptor for the SCM cannot be modified.
But if I can't get the security descriptor for the SCManager, how else am I supposed to do an AccessCheck?

Name: Anonymous 2010-08-08 16:18

QueryServ
Stopped reading right there:  identifier too long.

Name: Anonymous 2010-08-08 16:20

Thanks for cheering me up OP

Name: Anonymous 2010-08-08 16:28

Enjoying your NULL, NULL, NULL and your typedef void* HANDLE?

Name: Anonymous 2010-08-08 16:28

>>3
No problem, but why did my post cheer you up?

Name: Anonymous 2010-08-08 16:33

>>4
Why yes, I am. The only ridiculous function is CreateService, but most functions with lots of arguments use a struct.
Every time I write DoThisAndThatExExW(NULL, NULL, 0, NULL); I feel all warm and fuzzy inside :3

Name: Anonymous 2010-08-08 16:43

Name: Anonymous 2010-08-08 16:46

there's actually no data object, duh

Name: Anonymous 2010-08-08 16:59

>>7
WHAT IN THE NAME OF THE DICKS IS THAT?!?
WHAT THE FUCKING FUCK!!!

Name: Anonymous 2010-08-08 17:22

>>9
MSDN pages for the functions AccessCheckByTypeResultListAndAuditAlarmByHandle and ConvertSecurityDescriptorToStringSecurityDescriptor.

Name: Anonymous 2010-08-08 18:12

>>10
AccessCheckByTypeResultListAndAuditAlarmByHandle MY ANUS

Name: Anonymous 2010-08-08 23:07

AccessCheckByTypeResultListAndAuditAlarmByHandle(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, )

Name: Anonymous 2010-08-09 2:24

NULL, )
( ≖‿≖)

Don't change these.
Name: Email:
Entire Thread Thread List