Can someone kindly help me finish my attempt at pinvoke? HKL is a void* and
I don't know how to translate it.
[DllImport("user 32.dll", SetLastError = true)]
//static extern UInt32 MapVirtualKeyEx W(UInt32 uCode, UInt32 uMapType, HKL
dwhkl);
Here is the function: http://msdn.microsoft.com/en-us/libr...07(VS.85).aspx
Thanks!
Siegfried 3 2991
Wow! Great tip! I had to search seperately for the MAPVK constants but I
found them!
They were in VB though! I translated them by hand.
How can I search for constant definitions in C#?
How can I search for functions in VB?
Seems like there should be C#/VB checkbox.
The pinvoke site is user driven, meaning people submit the help. If there
is no C# or VB code for a function, then someone needs to submit it. The
constants are constants in any language, but you do have to convert &H0A to
10, for example.
"Siegfried Heintze" <si*******@hein tze.comwrote in message
news:u5******** ******@TK2MSFTN GP04.phx.gbl...
Wow! Great tip! I had to search seperately for the MAPVK constants but I
found them!
They were in VB though! I translated them by hand.
How can I search for constant definitions in C#?
How can I search for functions in VB?
Seems like there should be C#/VB checkbox. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ted |
last post by:
Is it possible to use mailslots in .NET using PInvoke?
I have a VC++ 6.0 based app that creates and listens to a
mailslot. I have a second VC++ 6.0 based app that opens
the mailslot and writes to it successfully. So this stuff
works.
Additionally, I have a VB.NET app that opens the mailslot
successfully using CreateFile() (with PInvoke). What looks
like a proper handle is returned and there is no error.
|
by: Carlos Guzmán Álvarez |
last post by:
Hello:
I'm trying to execute a function of a unmanaged dll using PInvoke, i
have definied the function as:
public static extern int isc_dsql_prepare(
int status_vector,
ref int trans_handle,
ref int stmt_handle,
|
by: Brett Robichaud |
last post by:
I have created a simple background thread to make one pinvoke call into a
DLL I've created. My Winforms app spawns the thread in the form load event
then go about it's business. The problem is that my form appears to be
blocked while the background thread is running.
I am very familir with threads in unmanaged code but am just getting into
them in C#. Are there issues I need to be aware of with regards to
threading a simple pinvoke...
|
by: vertigo |
last post by:
Hello
I use some win 32 API function for example:
HANDLE CreateFile(
LPCTSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreationDisposition,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile
|
by: Craig |
last post by:
I've seen many examples of how to call SHGetFileInfo in shell32.dll to get a
files associated icon, but I can't find anywhere how to get the file
information (size, last date modified, etc, etc) out of shell32 using pinvoke.
I have however seen how to get this information using COM:
Shell32.Shell shell = new Shell32.ShellClass();
Shell32.Folder folder = shell.NameSpace("C:\\");
Shell32.FolderItem folderItem =...
| |
by: _iycrd |
last post by:
After numerous problems, I'm having second thoughts about using
C++/CLI to wrap a native DLL. On the other hand, PInvoke seems like
it will take a huge amount of work, if it will work at all.
The native DLL uses raw data buffers that are normally handed to it
(via pointer) from another native function. If I'm piloting this with
C#/PInvoke, how could those raw data buffers be created and
immobilized? In C++/CLI, there is pin_ptr to...
|
by: Rajesh Soni |
last post by:
Hi!
I'm getting a PInvoke error while trying to execute the following code...
declaration:
Structure POINTAPI
Dim x As IntPtr
|
by: Benosham |
last post by:
I have been playing around with trying to PInvoke GDI+ from C#, I made recently made the transition from C/C++ to C# and I really like the language, however being the old fashioned programmer I am I don't like the idea of the framework slowing down my applications with uncessesary safety checks. So I decided to try and PInvoke into GDI+ directly so tweak some extra performance out of an application I am writing. But every time I try I get an...
|
by: Mohamed Mansour |
last post by:
Hey there, this will be somewhat a long post, but any response is
appreciated!
I have done many PInvoke in the past from C++ to C#, but I did PInvoke
within C# not C++/CLI.
Can someone explain more why C++/CLI would be better to PInvoke than doing
the PInvoke in
C#?
Because, usually in C# as you already know we use DLLImport and extern
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |