Search:
Type: Posts; User: AdaraCD
Search:
Search took 0.63 seconds.
-
December 20th, 2005, 08:43 AM
Only a members of the administrators group can call NetShareAdd
-
December 15th, 2005, 07:47 AM
The calling process need SE_DEBUG_NAME Privilege enabled to open process for termination
-
December 8th, 2005, 05:53 AM
You need to add the user account to the window station and desktop ACL
here is a sample
-
December 8th, 2005, 05:45 AM
try this:
LPSTR lpSid = NULL;
if (pConvertSidToStringSid)
{
/// call the fucntion with your parameter
-
September 5th, 2005, 11:46 AM
BTW
You can also use CreateFile() with FILE_FLAG_BACKUP_SEMANTICS
hDir = CreateFile(_T("C:\\windows"),
GENERIC_WRITE|GENERIC_READ,
0,
...
-
September 5th, 2005, 11:12 AM
Try to convert the path from "c:\windows\" to "\??\C:\windows\" with RtlDosPathNameToNtPathName()
-
August 10th, 2005, 01:56 AM
-
July 31st, 2005, 12:08 AM
try Debugging Tools and Symbols: Getting Started
-
July 25th, 2005, 02:37 AM
WTSEnumerateProcesses or PdhEnumObjectItems
check this thread.
-
July 18th, 2005, 10:29 AM
If any of these functions fails call for GetLastError(), if the error is 5 (Access denied) you will need to add permissions to the window station and desktop before SwitchToDesktop
-
July 18th, 2005, 09:51 AM
If the service is running in the security context of a user account, the system will create a unique Window station and Desktop for that service, use the SetProcessWindowStation() and...
-
July 17th, 2005, 11:44 PM
maybe this will help:
if(ptr != NULL)
{
hOffset = ptr-pData+4;
memcpy(pData, ptr+4, dwFileSize-hOffset);
SetFilePointer(hFile, dwFileSize-hOffset,NULL, FILE_BEGIN);
...
-
July 14th, 2005, 12:09 PM
wchar_t* wPath = (wchar_t*)malloc((strlen(Path) +1) * sizeof(wchar_t));
-
July 14th, 2005, 11:53 AM
wchar_t* wPath = (wchar_t*) calloc (strlen(Path) + 1, sizeof(wchar_t));
mbstowcs(wPath, Path, strlen(Path));
-
July 14th, 2005, 11:48 AM
You need the SE_BACKUP_NAME privilege enabled, which exists in your process token but not enabled by default, use AdjustTokenPrivileges
-
July 14th, 2005, 08:03 AM
try LsaEnumerateLogonSessions with LsaGetLogonSessionData
-
June 22nd, 2005, 02:46 AM
It seems that CreateProcessWithLogonW cannot be called from a process under the LocalSystem account, read KB285879
-
June 21st, 2005, 10:20 AM
I don’t think it's possible, maybe you need to build a new dacl with only one ace - everyone full control, and replace existing dacl with SetNamedSecurityInfo()/SetSecurityInfo()
-
June 21st, 2005, 12:13 AM
What do you want to accomplish? If you just want to add a NULL Dacl (everyone full control) to the handle, try SetSecurityInfo().
dwError = SetSecurityInfo(
(HANDLE)File.m_hFile,
...
-
June 20th, 2005, 11:24 AM
The security descriptor must be in absolute format, you got a self-relative format by specifying only DACL_SECURITY_INFORMATION in GetSecurityInfo()
-
June 20th, 2005, 11:10 AM
Does the user have full access to the interactive window station/desktop ?
check this sample, it doesn't use the same function but it could solve your problem
-
June 16th, 2005, 12:42 AM
-
June 15th, 2005, 11:57 PM
you can get it from the registry -
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
-
June 14th, 2005, 12:09 AM
In OpenProcessToken() use TOKEN_QUERY instead of TOKEN_READ
-
The function fails if the size value is less than SHMMIN or greater than SHMMAX as defined in /etc/system
|
Click Here to Expand Forum to Full Width
|