CreateFile returns Incorrect function
I get a list of physical disks with wmic diskdrive list command. There are two internal SSDs, one USB flash drive and one external SSD connected to USB-C port. CreateFile works for all of them except...
View ArticleCurious about CreateWindowEx etc.
Hi everyone! Out of curiosity - I know that VB6 likely uses Win32 API functions such as CreateWindowEx and SendMessage "under the hood" for the creation of forms and controls and such. Is this true of...
View ArticleWhat's wrong with DeviceIoControl?
I'm trying to do this in Visual Basic 6. I'm following, to the best of my understanding, how I'm supposed to use the DeviceIoControl API function, and I'm trying to use it with the...
View ArticleCan I call a function from wlanapi.h ?
Hi. It's my first day on the forum, so excuse any mis-steps. What I'm trying to get is this (Windows Settings|Network & Internet): It's the user's current Wifi Data usage. Google lead me eventually...
View ArticleWhat is the equivalent release function for CoCreateInstance?
I know that the Windows API function CoCreateInstance lets you create an instance of a specified class with a specified interface that's implemented by that class (based on the inteface GUID and class...
View ArticleWeb API Giving Error
hi i have been trying this for a week now but cant find any solution so putting here now. i have a Xamarin App which sends data to web api. now the prob is its giving me the below error : Code:...
View Articleuploading Image from Xamarin Forms to Server
hi i have a webservice running but say the webservice address is : estateservice.estate.com i can upload the image to the upload folder in this domain but my main application is in estate.com now the...
View ArticleAPI Write in external application DataGridView
Hi, Is there any solution using API to pass value from my windows form application to one datagridview control of other windows form application ? Basically I need to fill one column of one...
View ArticleCREATE_NO_WINDOW and DETACHED_PROCESS flags aren't working correctly
I'm using these flags in the STARTUPINFO structure to try to suppress the console spawning of a console program being run from my VB6 program by calling CreateProcess. There's no need for a...
View ArticleMS's description of the RTL_USER_PROCESS_PARAMETERS structure is wrong
I was using NtQueryProcessInformation to get the PEB of a process, and then using its pointer to the RTL_USER_PROCESS_PARAMETERS to find the command line of the process. But I discovered something, the...
View ArticleFile copy seems to fail on Windows Embedded
I need to monitor a network folder and copy down new files as they are posted. I have everything working except the actual copying. I'm developing on a windows 10 PC and everything works perfectly. The...
View ArticleWhat Windows APIs support debugging in a process?
I know debuggers can step instruction-by-instruction through machine code. What Windows API functions are used for this, if if I want to write my own debugger? Does Windows API have debugger functions...
View ArticleWhat are window properties?
Using the API (EnumPropsExA) a ton of property names are found but none of them appear to have any value assigned to them. The MSDN doesn't really explain what these properties are. Anyone know what...
View ArticleAccess the excel statusbar
Hi, Apologies if this is in the wrong forum and if it is would appreciate a mod moving it. Thanks. Longish post warning!! This is a multipart sort of question from a newbie to vbforums. I've been using...
View ArticleIs PeekNamedPipe broken in current version of Windows?
In my VB6 program, I'm trying to use PeekNamedPipe to see if the StdIn pipe for my program has any currently available bytes to read, so that I can know if it's safe to call ReadFile (calling ReadFile...
View ArticleCryptocurrency API
I signed up for a free tier API service with CoinMarketCap.com, to be able to quickly get the valuation of some cryptocurrencies I own. As it is, I use a web browser control to load up their page and...
View Article[VB2008 Express] API to determine selected ListBox item in an external...
Hello, this is my first post- I hope somebody can help. First of all, I am using Visual Basic 2008 Express. I am trying to write a Helper Utility for an application called RPG Maker MV, so in the...
View Articlewhy Polygon() don't use the brush?
i change the brush: Code: Dim oldbrush As Long oldbrush = GetDCBrushColor(Me.hDC) SetDCBrushColor Me.hDC, RGB(255, 0, 0) i call the Polygon() function by double a double vectors(draw 1 line at...
View Articlewhy Polygon() don't use the brush?
i change the brush: Code: Dim oldbrush As Long oldbrush = GetDCBrushColor(Me.hDC) SetDCBrushColor Me.hDC, RGB(255, 0, 0) i call the Polygon() function by double a double vectors(draw 1 line at...
View Article