Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > privileges on program installing a device

Reply
Thread Tools Display Modes

privileges on program installing a device

 
 
Roberto Agostino
Guest
Posts: n/a

 
      05-17-2010
Hi all.

I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
install a device file-system on a pc. I would that the program could be
started as standard user on Vista, and then, if needed, it ask to user to
grant the authorization to do the needed things. How can I do?

Thank you.


 
Reply With Quote
 
 
 
 
Roberto Agostino
Guest
Posts: n/a

 
      05-31-2010
As witten in the other newsgroup:

Looking at http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
Vista, but because I was using a Windows Xp platform to develop my
application, the privilege is not present.


"Roberto Agostino" <> ha scritto nel messaggio
news:...
> Hi all.
>
> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
> install a device file-system on a pc. I would that the program could be
> started as standard user on Vista, and then, if needed, it ask to user to
> grant the authorization to do the needed things. How can I do?
>
> Thank you.
>
>



 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      06-01-2010
What is this "device file-system"?
Windows is not Linux.
-- pa

"Roberto Agostino" <> wrote in message
news:#...
> As witten in the other newsgroup:
>
> Looking at http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
> I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
> Vista, but because I was using a Windows Xp platform to develop my
> application, the privilege is not present.
>
>
> "Roberto Agostino" <> ha scritto nel messaggio
> news:...
>> Hi all.
>>
>> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
>> install a device file-system on a pc. I would that the program could be
>> started as standard user on Vista, and then, if needed, it ask to user to
>> grant the authorization to do the needed things. How can I do?
>>
>> Thank you.
>>
>>

>
>

 
Reply With Quote
 
Roberto Agostino
Guest
Posts: n/a

 
      06-06-2010
Sorry!
I did not want to mix up.
What is the more appropriate generic term for a ramdisk, a memory virtual
disk?

"Pavel A." <> ha scritto nel messaggio
news:...
> What is this "device file-system"?
> Windows is not Linux.
> -- pa
>
> "Roberto Agostino" <> wrote in message
> news:#...
>> As witten in the other newsgroup:
>>
>> Looking at http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
>> I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
>> Vista, but because I was using a Windows Xp platform to develop my
>> application, the privilege is not present.
>>
>>
>> "Roberto Agostino" <> ha scritto nel messaggio
>> news:...
>>> Hi all.
>>>
>>> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
>>> install a device file-system on a pc. I would that the program could be
>>> started as standard user on Vista, and then, if needed, it ask to user
>>> to grant the authorization to do the needed things. How can I do?
>>>
>>> Thank you.
>>>
>>>

>>
>>



 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      06-06-2010
"Roberto Agostino" <> wrote in message
news:...
> Sorry!
> I did not want to mix up.
> What is the more appropriate generic term for a ramdisk, a memory virtual
> disk?


Maybe, just a "virtual disk".

If you need to enable a privilege in runtime, see this
http://msdn.microsoft.com/en-us/libr...19(VS.85).aspx
or look for other examples for AdjustTokenPrivileges.


Regards,
-- pa

> "Pavel A." <> ha scritto nel messaggio
> news:...
>> What is this "device file-system"?
>> Windows is not Linux.
>> -- pa
>>
>> "Roberto Agostino" <> wrote in message
>> news:#...
>>> As witten in the other newsgroup:
>>>
>>> Looking at
>>> http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
>>> I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
>>> Vista, but because I was using a Windows Xp platform to develop my
>>> application, the privilege is not present.
>>>
>>>
>>> "Roberto Agostino" <> ha scritto nel messaggio
>>> news:...
>>>> Hi all.
>>>>
>>>> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
>>>> install a device file-system on a pc. I would that the program could be
>>>> started as standard user on Vista, and then, if needed, it ask to user
>>>> to grant the authorization to do the needed things. How can I do?
>>>>
>>>> Thank you.
>>>>



 
Reply With Quote
 
David Craig
Guest
Posts: n/a

 
      06-07-2010
A ramdisk is a "virtual disk" but so are other drivers such as OSR's
recently published driver that mounts disk images and iso files. I prefer
to use "ramdisk" only for those that use volatile memory to simulate a disk
drive and "virtual disk" for those with a permanent store.

"Pavel A." <> wrote in message
news:...
> "Roberto Agostino" <> wrote in message
> news:...
>> Sorry!
>> I did not want to mix up.
>> What is the more appropriate generic term for a ramdisk, a memory virtual
>> disk?

>
> Maybe, just a "virtual disk".
>
> If you need to enable a privilege in runtime, see this
> http://msdn.microsoft.com/en-us/libr...19(VS.85).aspx
> or look for other examples for AdjustTokenPrivileges.
>
>
> Regards,
> -- pa
>
>> "Pavel A." <> ha scritto nel messaggio
>> news:...
>>> What is this "device file-system"?
>>> Windows is not Linux.
>>> -- pa
>>>
>>> "Roberto Agostino" <> wrote in message
>>> news:#...
>>>> As witten in the other newsgroup:
>>>>
>>>> Looking at
>>>> http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
>>>> I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
>>>> Vista, but because I was using a Windows Xp platform to develop my
>>>> application, the privilege is not present.
>>>>
>>>>
>>>> "Roberto Agostino" <> ha scritto nel messaggio
>>>> news:...
>>>>> Hi all.
>>>>>
>>>>> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
>>>>> install a device file-system on a pc. I would that the program could
>>>>> be started as standard user on Vista, and then, if needed, it ask to
>>>>> user to grant the authorization to do the needed things. How can I do?
>>>>>
>>>>> Thank you.
>>>>>

>
>

 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      06-07-2010
> or look for other examples for AdjustTokenPrivileges.

Just never ever do "disable all privileges" thing.

It also disables the traverse checking privilege, which ruins Win32 - the new processes with lack of such privilege cannot connect to CSRSS's API port and thus cannot start - the DllMain of kernel32.dll fails.

This was observed on XP with Fast User Switching on.

If you do AdjustTokenPrivileges in Explorer-loaded DLL, then you turn it off for the whole Explorer and thus for all new processes.

I think this was MS's error to provide the "disable all privileges" feature in AdjustTokenPrivileges, since some of them are mandatory for Win32 to work.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
Roberto Agostino
Guest
Posts: n/a

 
      06-11-2010
Thanks for your explanation.

Roberto


"Pavel A." <> ha scritto nel messaggio
news:...
> "Roberto Agostino" <> wrote in message
> news:...
>> Sorry!
>> I did not want to mix up.
>> What is the more appropriate generic term for a ramdisk, a memory virtual
>> disk?

>
> Maybe, just a "virtual disk".
>
> If you need to enable a privilege in runtime, see this
> http://msdn.microsoft.com/en-us/libr...19(VS.85).aspx
> or look for other examples for AdjustTokenPrivileges.
>
>
> Regards,
> -- pa
>
>> "Pavel A." <> ha scritto nel messaggio
>> news:...
>>> What is this "device file-system"?
>>> Windows is not Linux.
>>> -- pa
>>>
>>> "Roberto Agostino" <> wrote in message
>>> news:#...
>>>> As witten in the other newsgroup:
>>>>
>>>> Looking at
>>>> http://msdn.microsoft.com/en-us/libr...(PROT.13).aspx
>>>> I found that SE_CREATE_SYMBOLIC_LINK_NAME is a privilege introduced in
>>>> Vista, but because I was using a Windows Xp platform to develop my
>>>> application, the privilege is not present.
>>>>
>>>>
>>>> "Roberto Agostino" <> ha scritto nel messaggio
>>>> news:...
>>>>> Hi all.
>>>>>
>>>>> I want enable the SE_CREATE_SYMBOLIC_LINK_NAME to a process-token that
>>>>> install a device file-system on a pc. I would that the program could
>>>>> be started as standard user on Vista, and then, if needed, it ask to
>>>>> user to grant the authorization to do the needed things. How can I do?
>>>>>
>>>>> Thank you.
>>>>>

>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
Cannot reuse old Device name in WMDC (Final) mlai ActiveSync 3 03-06-2007 08:15 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59