¡@

Home 

c# Programming Glossary: win32

Is there a way to indefinitely pause a thread?

http://stackoverflow.com/questions/142826/is-there-a-way-to-indefinitely-pause-a-thread

may be acquiring releasing locks behind the scenes. Win32 has a similar API SuspendThread and ResumeThread . The following..

Win32 API function to programmatically enable/disable device

http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device

API function to programmatically enable disable device I am.. can someone with more experience with this part of the Win32 API just tell me quickly what one I should call to stop disable.. it is possible to enable or disable devices directly from Win32 and if so how so I will leave this question open. c# .net windows..

How can I programmatically generate keypress events in C#?

http://stackoverflow.com/questions/1645815/how-can-i-programmatically-generate-keypress-events-in-c

WPF but the answers so far are specific WinForms and Win32. To do this in WPF simply construct a KeyEventArgs and call..

Can I show file copy progress using FileInfo.CopyTo() in .NET?

http://stackoverflow.com/questions/187768/can-i-show-file-copy-progress-using-fileinfo-copyto-in-net

The FileInfo.CopyTo is basically a wrapper around the Win32 API call CopyFile in the kernel32.dll. This method does not..

What is a message pump?

http://stackoverflow.com/questions/2222365/what-is-a-message-pump

0 TranslateMessage msg DispatchMessage msg The GetMessage Win32 API retrieves a message from Windows. Your program typically..

How to provide user name and password when connecting to a network share

http://stackoverflow.com/questions/295538/how-to-provide-user-name-and-password-when-connecting-to-a-network-share

password have to be provided. I know how to do this with Win32 functions the WNet family from mpr.dll but would like to do..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

.Net remoting book Advanced .NET Remoting Second Edition Win32 RPC using csharptest net RpcLibrary I came across a project.. I came across a project recently that has wrapped the Win32 RPC library and created a .net class library that can be used..

Protect .NET code from reverse engineering?

http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering

packer to pack your .NET executable into an encrypted Win32 wrapper application. Themida is one of the better ones. This.. packer gives a ton of good information on writing your own Win32 packer. Ultimately though if people want your application cracked..

Access a Remote Directory from C#

http://stackoverflow.com/questions/5433570/access-a-remote-directory-from-c-sharp

credentials.UserName 0 if result 0 throw new Win32Exception result #endregion #region Events summary Occurs when.. Dispose false #region Objects needed for the Win32 functions #pragma warning disable 1591 summary The net resource...

NTFS Alternate Data Streams - .NET

http://stackoverflow.com/questions/604960/ntfs-alternate-data-streams-net

streams from .NET If there is no native .NET support which Win32 API's would I use Also how would I use them as I don't think..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

This is typically done using the NET USE command or the Win32 functions that duplicate NET USE . Access the file with a UNC.. this question The way to solve your problem is to use a Win32 API called WNetUseConnection . Use this function to connect..

Using C#, how does one figure out what process locked a file?

http://stackoverflow.com/questions/860656/using-c-how-does-one-figure-out-what-process-locked-a-file

on so far and uses threads to protect against some nasty Win32 bugs. Mostly stuff found on the Internet. Updated to prevent.. few managed memory exceptions. Made threads background so Win32 bugs won't stop your process from exiting. using System using.. using System.Threading namespace FileLockInfo public class Win32Processes summary Return a list of processes that hold on the..

Enumerating Network Shares with C#

http://stackoverflow.com/questions/2091126/enumerating-network-shares-with-c-sharp

share improve this question You can use NetShareEnum win32 api. http www.pinvoke.net default.aspx netapi32 netshareenum.html..

How to monitor clipboard content changes in C#? [duplicate]

http://stackoverflow.com/questions/2226920/how-to-monitor-clipboard-content-changes-in-c

question You could use SetClipboardViewer provided by win32 API through p invoke . Here is a page which contains code to..

Webcam usage in C#

http://stackoverflow.com/questions/233455/webcam-usage-in-c-sharp

with it. I have a working application that uses win32 api avicap32.dll to connect to the webcam and send messages..

What are the definitions for LPARAM and WPARAM?

http://stackoverflow.com/questions/2515261/what-are-the-definitions-for-lparam-and-wparam

is a typedef for LONG_PTR which is a long signed 32 bit on win32 and __int64 signed 64 bit on x86_64. WPARAM is a typedef for.. for UINT_PTR which is an unsigned int unsigned 32 bit on win32 and unsigned __int64 unsigned 64 bit on x86_64. MSDN link share..

How can I change text on a win32 window?

http://stackoverflow.com/questions/2668731/how-can-i-change-text-on-a-win32-window

can I change text on a win32 window Looking for hints tips and search terms for changing.. for hints tips and search terms for changing the text on a win32 window from C#. More specifically I'm trying to change the text..

Bringing Window to the Front in C# using Win32 API

http://stackoverflow.com/questions/2987/bringing-window-to-the-front-in-c-sharp-using-win32-api

focus . What is the best way to go about this using the win32 API I have tried SetForeground but it always steals focus and..

How do I find out which process is locking a file using .NET?

http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net

feeling that I'm going to have to spelunk around in the win32 API but if anyone has already done this and can put me on the..

Get URL from browser to C# application

http://stackoverflow.com/questions/3579649/get-url-from-browser-to-c-sharp-application

namespace YourProject summary Wrapper for native win32 calls summary public class NativeWIN32 const int WM_GETTEXT..

Using Process.Start() to start a process as a different user from within a Windows Service

http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo

above To run a process as a different user .NET calls the win32 function CreateProcessWithLogonW. This function requires a window..

How do I suspend painting for a control and its children?

http://stackoverflow.com/questions/487661/how-do-i-suspend-painting-for-a-control-and-its-children

and reflector usage I came across the WM_SETREDRAW win32 message. This really stops controls drawing whilst you update..

WPF MessageBox window style

http://stackoverflow.com/questions/5289328/wpf-messagebox-window-style

Vista dependency dependentAssembly assemblyIdentity type win32 name Microsoft.Windows.Common Controls version 6.0.0.0 processorArchitecture..

How to avoid System.IO.PathTooLongException?

http://stackoverflow.com/questions/530109/how-to-avoid-system-io-pathtoolongexception

expecting MAX_PATH to be obeyed . You could wrap all the win32 functions that support the syntax with these you would be able..

IPC Mechanisms in C# - Usage and Best Practices

http://stackoverflow.com/questions/56121/ipc-mechanisms-in-c-sharp-usage-and-best-practices

in C# Usage and Best Practices I have used IPC in win32 code a while ago. Critical sections events semaphores How is..

how to capture the '#' character on different locale keyboards in WPF/C#?

http://stackoverflow.com/questions/5825820/how-to-capture-the-character-on-different-locale-keyboards-in-wpf-c

Key key will do the trick. It uses a series of win32 calls to decode the key pressed. 1 get the virtual key from..

What is the fastest way to convert a float[] to a byte[]?

http://stackoverflow.com/questions/619041/what-is-the-fastest-way-to-convert-a-float-to-a-byte

binary writer wraps a file handle created with pinvoke 'd win32 API. The optimization occurs since this lessens the number of..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

if I can. I've searched MSDN for either a managed or a win32 means of using remote file sharing but I have failed to come.. so I ask Is there another way Did I miss a super secret win32 function that does what I want Or must I pursue some variant..

C# moving the mouse around realistically

http://stackoverflow.com/questions/913646/c-sharp-moving-the-mouse-around-realistically

and SetCursorPosition Point are wrappers around the win32 functions GetCursorPos and SetCursorPos. As far as the math..

preprocessor directive…C#

http://stackoverflow.com/questions/1313402/preprocessor-directive-c

the textbox labelled Conditional compilation symbols add WIN32 for your x86 platform selectable at the top of the dialog and.. my answer I notice that you don't actually need to put WIN32 into the conditional symbols list as it isn't used but it might..

How is GetHashCode() of C# string implemented?

http://stackoverflow.com/questions/15174477/how-is-gethashcode-of-c-sharp-string-implemented

4 0 Managed string should start at 4 bytes boundary #if WIN32 int hash1 5381 16 5381 #else int hash1 5381 #endif int hash2.. 16 5381 #else int hash1 5381 #endif int hash2 hash1 #if WIN32 32 bit machines. int pint int src int len this.Length while.. features off whole sale throughout the .NET source code. WIN32 is defined when the target is a version of the framework that..

What is the easiest way using .net to check if events have been logged in the eventlog?

http://stackoverflow.com/questions/182372/what-is-the-easiest-way-using-net-to-check-if-events-have-been-logged-in-the-ev

starting in Windows 2000. Essentially you use the WIN32 event log APIs to open the event log then you call this API..

Is it possible to intercept (or be aware of) COM Reference counting on CLR objects exposed to COM

http://stackoverflow.com/questions/2223147/is-it-possible-to-intercept-or-be-aware-of-com-reference-counting-on-clr-objec

Windows Scripting Host which is available on every major WIN32 WIN64 platform. I created a simple COM .NET Class called Calculator..

Viewing PDF in Windows forms using C#

http://stackoverflow.com/questions/4504442/viewing-pdf-in-windows-forms-using-c-sharp

you can use System.Diagnostics.Process.Start as well as WIN32 ShellExecute function by means of interop for opening PDF files..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

WM_COPYDATA For completeness it's also possible to use the WIN32 method with the WM_COPYDATA message. I've used this method before..

take picture from webcam c#

http://stackoverflow.com/questions/7887910/take-picture-from-webcam-c-sharp

get picture from webcam with DirectShowLib methods or with WIN32 API methods c# .net winapi directshow share improve this..