First  |  Prev |  Next  |  Last
Pages: 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
How to set registry key permission in the code?
I am using the following code to modify a registry key's everyone permission from read to write #define REG1 "SYSTEM\\CurrentControlSet\\Enum\\Root\\IRCOMM2K\\0000\\" int _tmain() { SID_IDENTIFIER_AUTHORITY arg1 = SECURITY_WORLD_SID_AUTHORITY; SECURITY_DESCRIPTOR sd; PSID everyone; PACL pacl; HKEY hK... 16 Apr 2007 01:46
Find all open handles (Mutex, File, Key etc)
Hi, I want to write a command line program to show all open handles (e.g. registry keys held open in HKCU when the user logged off). I know there are tools such as Microsoft OH.EXE and SysInternals(MS) HANDLE.EXE, but I want to write my program using only official Microsoft SDKs and Documentation. From what I ... 25 Apr 2007 08:43
Disable power button programatically in Windows XP
Hi All, I need to disable the power button in Windows XP and I'm having a really hard time understanding the Power Management API's. I tried to use the following code: --------------------------------------------------------------------------------- BOOLEAN bResult; UINT i; GLOBAL_POWER_POLICY GlobalPowerPol... 14 Apr 2007 09:18
FlushViewOfFile returns ERROR_LOCK_VIOLATION
FlushViewOfFile flushes updated pages of a mapped file to disk. Sometimes we observe that it returns ERROR_LOCK_VIOLATION but the conditions under which this occurs are not clear. We suspect the issue is the NTFS transaction log is full and that FlushViewOfFile doesn't wait for the flush to be flushed. Is this a ... 24 Apr 2007 05:10
MS USBCCID Driver Problem
Dear All I've followed the guidlines from http://www.microsoft.com/whdc/device/input/smartcard/USB_CCID.mspx and added EscapeCommandEnable to the registry for CCID compatible smart card reader. I encountered a problem that SCardControl returned error code 0x00000001 on WinXP and 0x0000007A on Win2K when s... 22 Mar 2007 02:42
How to issue ACPI calls
Hello world; I need to query various ACPI objects and to call ACPI methods. How can I do this from either kernel or user mode? (Windows XP and newer) Where do I find the interface documentation to acpi.sys? Regards Frank ... 1 Mar 2007 01:55
RegQueryInfoKey and Vista
It seem's that RegQueryInfoKey returns always 0 in lpcMaxValueNameLen for registry keys in HKLM under Windows Vista. Any idea? ... 28 Feb 2007 23:51
Shadow Copy BackupComplete() gives me VSS_E_BAD_STATE
Hello, I am using XP SP2, and I'm trying to use the VSS to make a copy of some files that are opened exclusively. so, these are the steps I followed: CreateVssBackupComponents SetBackupState StartSnapshotSet AddToSnapshotSet AddComponent PrepareForBackup, wait DoSnapshotSet, wait GetSnapshotProperties (do... 27 Feb 2007 06:09
Performance problem with UnmapViewOfFile() in Vista and XP x64
Thanks for taking a look at this. As Raymond Chen posted on this technique a few years back, I imagine that we're not the only ones using it. "Pavel Lebedinsky [MSFT]" wrote: I will also try your program here. How much RAM does your system have? I've reproduced this behavior on a number of systems. ... 12 Mar 2007 09:56
Retrieving the filesystem name of each partition not mounted
Hi everyone. What I'm trying to do is that detecting all disks and all partitions (mounted or not) in system and then mounting (and assigning a drive letter) the partition if it's ext2 filesystem. So I try to write the APPLICATION program, which loads the ext2 filesystem driver for windows. In order to do ... 20 Feb 2007 08:33
First  |  Prev |  Next  |  Last
Pages: 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43