First  |  Prev |  Next  |  Last
Pages: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
Interlocked Singly Linked Lists (for Ben or anyone else).
Ben (C++ MVP) recommended using the Interlocked Singly Linked Lists API: http://msdn2.microsoft.com/en-us/library/ms686962.aspx as a more efficient synchronization method for a recent thread discussion in regards to a FIFO queue design. If Ben is reading or if anyone else is familiar with this API, I ... 10 Dec 2007 01:36
Howto convert IPv6 from WTSClientAddress to string?
With WTSQuerySessionInfo you can query the client address by passing in the WTSClientAddress constant. This returns a _WTS_CLIENT_ADDRESS structure: typedef struct _WTS_CLIENT_ADDRESS { DWORD AddressFamily; BYTE Address[20]; } WTS_CLIENT_ADDRESS, *PWTS_CLIENT_ADDRESS; I tried using RtlIpv6AddressToString but ... 14 Nov 2007 08:05
WTSQueryUserToken returns Get Last error of 6a6 (RPC_BIND_FAIL)
Hi, When I use WTSQueryUserToken() inside my service on session change notification, and I get error 6a6 on GetLastError(). I added a Wait on Global\\TermSrvReadyEvent, but it still gives the same error. Can anyone help? rgds, sai ... 27 Sep 2007 08:13
ReadDirectoryChangesW returning mutliple files
Here is snippets of my code: FILE_NOTIFY_INFORMATION info[8]; h = CreateFile( TEXT("C:\\abc"), FILE_LIST_DIRECTORY, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, NULL); ReadDirectoryChangesW(h, &info, sizeof(info), true, FILE_NOTI... 12 Sep 2007 11:48
Volume Shadow Copy - BackupComplete and VSS_E_BAD_STATE
Hi, I'm using the Volume Shadow Service (VSS) to backup some files that are exclusively opened. It works (locked files are opened and copied), but BackupComplete() always gives me VSS_E_BAD_STATE. The following VSS calls are done by my application : CreateVSSBackupComponents(); InitializeForBackup(); ... 19 Aug 2007 11:28
console right-click menu
When I write simple console app, there is no reaction when I click right mouse button. When I start cmd.exe, it displays simple menu, when I start powershell.exe, it just pastes from clipboard on right-click. So I thought mouse menu and selection support is done by console shell that starts the console (when I ... 6 Aug 2007 12:13
SwitchDesktop after first login
Hi, there was a message from "Reinhold Droege"/"Wed, 22 May 2002 03:11:35 -0700" with the topic "SwitchDesktop after first login" I tried to answer, but that failed. I know this message is rather old but it describes exactly my problem but Jonathans answer is dissatisfying. At first my situation: I have an int... 2 Jul 2007 13:29
Problem with HtmlHelpW HH_ALINK_LOOKUP
Hello, I have an unicode application which want to call htmlHelpW With HH_ALINK_LOOKUP. On some machines I get the errormessage The window name "$" passed to HH_GET_WIN_TYPE has not been specified. What can be the reason for that? Greetings ... 29 Jun 2007 09:21
HOMEDRIVE, HOMEPATH missing in CreateEnvironmentBlock
Hi, I'm using this code to create a process as user. LogonUser().... LoadUserProfile().... CreateEnvironmentBlock().... ImpersonateLogonUser().... CreateProcessAsUser().... RevertToSelf().... DestroyEnvironmentBlock()... So far so good this code works OK. However Cre... 21 Jun 2007 03:27
Using SetConsoleCtrlHandler
Hi, I've a console single threaded application and I'm trying to catch a Ctrl+C. No matter if I use SetConsoleCtrlHandler or a signal handler, my code to handle this gets called in another thread. Is there a way to have the handler called from the main thread? In the code below, simply comment the call to `sig... 8 Jun 2007 10:13
First  |  Prev |  Next  |  Last
Pages: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43