Windows error 0x00000040, 64

Detailed Error Information

NETNAME_DELETED[1]

MessageThe specified network name is no longer available.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070040.

TARGET_MDL_TOO_SMALL[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x40: TARGET_MDL_TOO_SMALL.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code64 (0x0040)

Questions

37votes
1answer

Getting Symbols from debugged process MainModule

I started writing a debugger in C#, to debug any process on my operating system. For now, it only can handle breakpoints (HW, SW, and Memory), but now I wanted to show the opcode of the process. My first attempt was with nidsasm (NASM), but this is not suitable, because [...] read more
c#
debugging
pinvoke
debug-symbols
10votes
1answer

How to get the processes that have systray icon

I am trying to create application that get the list of processes that have systray icon. I searched alot and found number of references: 1. http://www.raymond.cc/blog/find-out-what-program-are-running-at-windows-system-tray/ 2. https://superuser.com/questions/708674/how-to-find-out-what-process-a-system-tray-icon-corresponds-to 3. Which Windows process is displaying a given taskbar system tray icon? 4. https://social.msdn.microsoft.com/Forums/vstudio/en-US/53e27f60-37af-406f-bbdc-45db2bd3dee6/how-to-find-a-system-tray-process 5. https://social.msdn.microsoft.com/Forums/vstudio/en-US/4c4f60ce-3573-433d-994e-9c17f95187f0/finding-which-applications-and-services-are-listed-in-the-system-tray?forum=csharpgeneral 6. http://www.codeproject.com/Articles/10497/A-tool-to-order-the-window-buttons-in-your-taskbar 7. Get ToolTip Text [...] read more
c#
c++
winapi
taskbar
7votes
4answers

One of two RAID 1s is not recognized in Ubuntu 13.04

I have a 256GB SSD (Ubuntu/Win8), and two 1TB drives in RAID 1. The problem is that I just recently added another two drives that are 4TB in RAID 1 but they aren't detected in Ubuntu as one drive but separate. I know it works because Windows detected my new [...] read more
ubuntu
raid
fakeraid
6votes
3answers

How to prevent TCP ZeroWindow on writing a large file to a Windows share?

I've been given access to a share on a Windows Server 2003 SP1 system (10.a.bbb.ccc) which is a file and printer server, and regularly large files get copied to that share. However, occasionally such a copy fails. When reproducing this issue using Robocopy (on 10.xxx.yy.zzz), I get something like 70.4% [...] read more
windows
networking
tcp
server-message-block
tcp-window
5votes
1answer

sms using adb shell not working

I am trying to send the sms by both adb shell am and adb shell service call .I am getting error for both . a)I am trying to send the sms following adb shell am command adb shell am start -a android.intent.action.SENDTO -d sms:"phoneNumber" --es sms_body "SMS BODY GOES HERE" [...] read more
adb
5votes
2answers

how to move a view via windowManager.UpdateViewLayout without any animation?

When i do : LayoutParams lp = getLayoutParams(view); lp.x = absoluteX; lp.y = absoluteY; this.mWindowManager.updateViewLayout(view, lp); Then i have one linear animation from the position where the view is to the new position absoluteX/absoluteY. how to move the view without any animation ? I try to set lp.windowAnimations = 0 [...] read more
android
android-animation
android-windowmanager
5votes
1answer

"Anomaly" in signed integer in C

I'm currently writing a lecture on ARM optimization, specifically on vector machines such as NEON as the final target. And since vector machines don't fare well with if-else slaloms, I'm trying to demonstrate how to get rid of them by bit-hacking. I picked the "saturating absolute" function as an example [...] read more
c
optimization
integer
arm
bit-manipulation
3votes
1answer

How to connect Linux to a HDD that has been "security locked"

In the process of playing around with several hard-drives, and hdparm's --security-set-pass and --security-erase options, I have a pile of HDDs that are in a "locked" state and I cannot unlock them. I know what the password is, and I am sure that if I can convince Linux to create [...] read more
linux
hard-drive
security
sata
kernel
3votes
1answer

How to call NtOpenFile?

I'm trying to call NtOpenFile, and it's failing with error: > STATUS_OBJECT_PATH_SYNTAX_BAD = NTSTATUS($C000003B); > > Object Path Component was not a directory object. The basic gist is: //The file we'll test with filename: UnicodeString := 'C:\Windows\Explorer.exe'; //23 characters //Convert the filename to counted UNICODE_STRING cs: UNICODE_STRING; cs.Length := Length(filename) [...] read more
delphi
winapi
3votes
2answers

Logging from multiple processes with nLog missing logs and inconsistent archives

I have a process that runs on a windows server from multiple users on multiple sessions (could be as many as 50 concurrent users), I would like to: 1. Log from all processes to a single log file 2. limit the size of the logs to 1.5MB (for the purposes [...] read more
c#
logging
nlog
3votes
1answer

ShellExecuteEx crashes in Excel VBA

Since Windows updates occurred, an API call to ShellExecuteEx(sExecuteInfo) crashes, saying: > unhandled exception at 0x75F7A529 (shell32.dll) Access violation reading > location 0x68686903 I have no clue what is wrong here, can you help me please? Definition : Private Type SHELLEXECUTEINFO cbSize As Long fMask As Long Hwnd As Long [...] read more
excel
vba
shellexecuteex
shell32.dll
3votes
1answer

First-chance exception at ...: Access violation reading location ... when debugging using Visual Studio 2010

I try so hard to catch from legacy code access violation keep getting : First-chance exception at 0x57e77e1c in YouTubeLocal.exe: 0xC0000005: Access violation reading location 0x0000000c. My stack looks like this: Qt5Guid.dll!57e77e1c() [Frames below may be incorrect and/or missing, no symbols loaded for Qt5Guid.dll] Qt5Guid.dll!57e75604() Qt5Guid.dll!57ed520b() Qt5Guid.dll!57dcf18b() > msvcr100d.dll!_unlock(int locknum=0x00000004) [...] read more
c++
visual-studio-2010
thread-safety
access-violation
3votes
1answer

How to specify to createfilew function get uncached result?

I need to check whether a file (on a remote server via UNC path) exists or not (permission is not a problem here; I make a required impersonation etc.). I use CreateFileW function for creating file handle. I've also tried GetFileAttributesEx but the behavior is the same. HANDLE CreateFileW( LPCWSTR [...] read more
c#
c++
.net
filesystems
3votes
0answers

Bluetooth Enable Disable ADB command and Opening Android Activity with Android Driver not working in Some Android 7 devices

Result: Parcel( 0x00000000: ffffffff 0000006e 0065004e 00640065 '....n...N.e.e.d.' 0x00000010: 00420020 0055004c 00540045 004f004f ' .B.L.U.E.T.O.O.' 0x00000020: 00480054 00410020 004d0044 004e0049 'T.H. .A.D.M.I.N.' 0x00000030: 00700020 00720065 0069006d 00730073 ' .p.e.r.m.i.s.s.' 0x00000040: 006f0069 003a006e 004e0020 00690065 'i.o.n.:. .N.e.i.' 0x00000050: 00680074 00720065 00750020 00650073 't.h.e.r. .u.s.e.' 0x00000060: 00200072 00300032 00300030 006e0020 'r. .2.0.0.0. [...] read more
java
automation
adb
appium
3votes
0answers

java.lang.Error: Structure.getFieldOrder() return names don't match declared field names (but they do)

I'm trying to obfuscate some code, and one of my methods in the main class references this Shell32X.java class. The method in the main class (not shown here) is supposed to call another program that has an admin manifest, so that the UAC prompt will appear. When I obfuscate the [...] read more
java
runtime-error
2votes
1answer

Hard resetting link, limiting SATA link speed to 1.5 Gbps

Lenovo G500 laptop, Debian Jessie 8.7 Here is my dmesg output: [22957.061286] ata3: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen [22957.061294] ata3: irq_stat 0x00000040, connection status changed [22957.061297] ata3: SError: { DevExch } [22957.061308] ata3: limiting SATA link speed to 1.5 Gbps [22957.061313] ata3: hard resetting link [...] read more
sata
2votes
4answers

RAID6 failed instantly and switched to RAID0 - any chance to rescue?

I´m running a server ob Ubuntu 16.04. Data storage on this system uses a lvm on top of a software raid 6 whereas the os is installed on a separate raid 1 with lvm. The raid 6 is built up of 7 partitions on 7 disks. After a raising amount [...] read more
linux
lvm
mdadm
raid6
2votes
1answer

Xen SATA PCI Passthrough to Ubutnu DomU not recognising disks

I have a Xen 4.1 server with a Debian Wheezy 7.4 Dom0 (hmpyxen01). It has a SATA PCI card that I am passing through to an Ubuntu Precise 12.04 DomU (hmvmtmp01), installed via xen-tools which in this case is just a wrapper for debootstrap so the DomU is very minimal [...] read more
ubuntu
xen
sata
domu
2votes
2answers

Segmentation fault using pthread and arm-linux-gnueabihf-gcc

I have been trying all day to fix a segmentation fault that only occurs on one device. But from the beginning... #include <string.h> #include <stdio.h> #include <stdlib.h> #include "pthread.h" void* start_rtn(void* param); int main(int argc, char **argv) { printf("Hallo World\n"); pthread_t tid; int err = pthread_create(&tid, NULL, start_rtn, NULL); pthread_join(tid, [...] read more
c
linux
gcc
pthreads
cross-compiling
2votes
0answers

SetThreadExecutionState(ES_DISPLAY_REQUIRED) does not turn the screen back on

I'm trying to write a powershell script to run a few tasks in order to test the batteries on a wide range of tablet PCs. A big part of this is controlling the display. I don't seem to have too much trouble turning it off, but when I come to [...] read more
windows
powershell
2votes
1answer

No success to simulate mouse click in C#

I'm new to C# and I want to simulate a mouse click(I'm using visual studio 2017 on windows 10). I found this code: using System; using System.Runtime.InteropServices; public class MouseOperations { [Flags] public enum MouseEventFlags { LeftDown = 0x00000002, LeftUp = 0x00000004, MiddleDown = 0x00000020, MiddleUp = 0x00000040, Move = [...] read more
c#
mouseevent
2votes
3answers

Java synthetic method and bridge method confusion

As stated in this Java Tutorial a bridge method implies that it is also a synthetic method. The question is, is it possible that invocation of isSynthetic method returns true but isBridge method returns false for a Method object, i.e., if a method is synthetic does it imply that it [...] read more
java
reflection
java-synthetic-methods
2votes
1answer

Control AMIS-30543 with STM32F030R8 via SPI

I'm attempting to get my STM32 board to control a stepper motor (using an AMIS-30543 driver, 26M024B2B stepper motor) using SPI. I'm using Keil uVision 5 and taking a bare-metal approach in C. My problem is that the motor is not spinning and I'm unsure where the error(s) are hiding. [...] read more
c
embedded
stm32
bare-metal
cmsis
2votes
0answers

Understand assembly code in a C function on x86

Let's say I have a C function: char* func(char* cp1, int i1, char* cp2, int* ip1); Questions: 1. the address cp1 pointing is passed in in RDI, value of i1 in RSI, address cp2 pointing in RDX, and address of ip1 in RCX? 2. if it is true that RDX [...] read more
c
assembly
x86-64
calling-convention
2votes
0answers

struct inode_operations permission function arguments

I'm trying to implement permission management for my device driver and found the following official Kernel documentation related to struct inode_operations: struct inode_operations { //... int (*permission) (struct inode *, int); //... }; The documentation for the permission function: > called by the VFS to check for access rights on [...] read more
c
linux
file-io
linux-kernel
linux-device-driver
2votes
0answers

WM_TOUCH event not received anymore after screen disconnection

I have a C# application handling touch by hooking to the Windows API message loop and listening to WM_TOUCH event. It work perfectly except when the screen is disconnected or switch off. Windows OS still has touch but the application don't receive touch event anymore. Here the code used. On [...] read more
c#
winapi
touch
pinvoke
setwindowshookex
2votes
1answer

stm32l476 ADC not ready

I am trying to bring up one of the ADC's on the STM32L476 Nucleo board. I think i have things configured ok, but i must be missing a step. I know this can be done use the HAL API and CubeMX, but i prefer register level access when bringing up [...] read more
stm32
keil
2votes
1answer

Alternative to dynamic creation of variable names

I have a header file (not written by me, which I cannot change) which contains definitions in the following format: #define SPC_TMASK0_NONE 0x00000000 #define SPC_TMASK0_CH0 0x00000001 #define SPC_TMASK0_CH1 0x00000002 #define SPC_TMASK0_CH2 0x00000004 #define SPC_TMASK0_CH3 0x00000008 #define SPC_TMASK0_CH4 0x00000010 #define SPC_TMASK0_CH5 0x00000020 #define SPC_TMASK0_CH6 0x00000040 #define SPC_TMASK0_CH7 0x00000080 #define SPC_TMASK0_CH8 0x00000100 [...] read more
c++
2votes
1answer

Trouble implementing code example using PInvoke Declarations

I am referencing the following thread here for my question: Get ToolTip Text from Icon in System Tray I basically want to do the same thing as the OP, but unlike some other users who responded to this thread, I am having trouble getting the code to work after adding [...] read more
c#
tooltip
pinvoke
tray
2votes
0answers

GetSecurityInfo always returns Access Denied

I am trying to get file owner using GetSecurityInfo, but get GetSecurityInfo is always returning 5, "ACCESS DENIED" even if I have access to get ownership of the file. The .NET method "GetOwner" works, but I need long filename support, and am restricted from using .NET 4.6.2 or 3rd party [...] read more
c#
winapi
pinvoke
2votes
1answer

Stack Pointer does not load at the startup in ARM Cortex M4 (Tiva C Series TM4C123GH6PM)

I'm trying to write the most simple program for Tiva C launchpad. Stack pointer value and program counter value are automaticaly taken from the two first 32-bits words of flash. But, for somehow reason, when I debug with gdb, the stack pointer gets 0x0. This causes that program fails. I'm [...] read more
gcc
arm
cortex-m
bare-metal
2votes
0answers

How to set a cursor of non-standard size in Windows 10?

I am attempting to change the cursor in Windows 10 (version 1703) to a custom made one (conditional on some event when a script activates), that is larger than the default 32 by 32 size. The MWE based on my Autohotkey script is the following: ImagePath = %A_ScriptDir%\foo.cur Cursor_ID := [...] read more
windows
winapi
windows-10
autohotkey
1vote
2answers

ata error on not hdd device

So my dmesg is spammed with this over and over again: [ 1478.880795] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen [ 1478.880803] ata5: irq_stat 0x00000040, connection status changed [ 1478.880808] ata5: SError: { DevExch } [ 1478.880816] ata5: limiting SATA link speed to 1.5 Gbps [ [...] read more
linux
ata
dmesg
1vote
1answer

Mechanical harddisk defect causing system troubles - SATA

So I hope this question won't get mark as too broad, as I really want to get familiar with the deeper related issues. Background: A friend of mine has troubles with a broken system harddisk, after he dropped his laptop. Normally I handle such issues with well known tools like [...] read more
hard-drive
data-recovery
hardware-failure
sata
1vote
1answer

How is the FID generated for a SMB “Create AndX Request?”

I see in the traces while accessing a network share, there are multiple CreateAndX requests (which opens the folders) with an FID associated with them. However, some of them don’t and they get a different response. 292 7.561217000 client_Ip cifs_Server_ip SMB 184 NT Create AndX Request, FID: 0x1781, Path: \share_folder\subfolder [...] read more
network-shares
samba
wireshark
smb
cifs
1vote
0answers

microSD card suddenly inaccessible

I have a microSd card with an adapter and suddenly it was inaccesible in my computer... I would like to recover the data and the micro sd card :( the output of dmesg command: [ 3431.211177] mmc0: error -110 whilst initialising SD card [ 3441.240046] mmc0: Timeout waiting for hardware [...] read more
sdhc
1vote
1answer

bond failing to start the backup network card on failure of main one

Our production server has 4 network cards, linked 2 by 2 on 2 bonds. External network: bond0 : eth0 up & running, eth1 active-backup Internal network: bond1 : eth2 up & running, eth3 active-backup We got at the same time failure of eth0 and eth2 : Mar 3 10:38:16 localhost [...] read more
networking
linux-networking
ethernet
bonding
1vote
0answers

CreateProcess function creates the process in de the default dekstop instead of creating it inside the new desktop

I am working on an small C# application and found a weird error. The goal of this application is to create a new Desktop and launch a process inside it. For this purpose, I am relying on the following win32 functions: [DllImport("user32.dll")] public static extern IntPtr CreateDesktop(string lpszDesktop, IntPtr lpszDevice, [...] read more
c#
windows
winapi
createprocess
1vote
1answer

Can't symbolicate using WinDBG, the exe and its associated pdb

I've been trying to use a crash reporter a previous colleague on a project. It outputs the stacktrace when a crash occurs which contains, for example, something like this (only showing the most important line of the stacktrace): Event: APPLICATION_CRASH SE EXCEPTION_ACCESS_VIOLATION at address 0x00007FF773D681E6 inside MyApp.exe loaded at base [...] read more
c++
windows
debugging
windbg
1vote
1answer

Emulate Touch Event in Windows 8 using Python

I am trying to write a sort of driver using python for windows 8. I will be receiving touch coordinates via serial which I then want to use to make it appear as though someone touched those coordinates on the screen (emulate a touch). My first question is: Is a [...] read more
python
windows-8
touch
simulation
ctypes
1vote
1answer

Invalid parameter implementing GetMenuItemInfoW with JNA

I am invoking the win32 API function GetMenuItemInfoW. When I invoke the function I it returns false, and Native.getLastError() returns 87: ERROR_INVALID_PARAMETER 87 (0x57) The parameter is incorrect. I think that my error is in my implementation of the structure MenuItemInfoW: @Structure.FieldOrder({"cbSize", "fMask", "fType", "fState", "wId", "hSubMenu", "hBmpChecked", "hBmpUnchecked", "dwItemData", [...] read more
java
winapi
jna
1vote
0answers

Zynq7000 I2C don't work, but register are set properly

I'm trying to write piece of code, to send data via I2C on my Zynq7020 device. There are 11 register asociated with I2C and I'm prety sure, that I have set this properly. I also double check registers asociated with CPU_1X clock enable a and I2C reset, but they are [...] read more
c
i2c
zynq
1vote
1answer

How i change console application project to windows form app. project

I made a console application project for my project but its console application so how I change it to Form application... can anyone help me to change this console application to Windows form application. Who know change console application codes to form application codes. Please help me.. i want put [...] read more
c#
process
console
mutex
pid
1vote
0answers

Android `service` command - how to use compound types as arguments?

I'm trying to automate replies to a group MMS with Tasker. So far, I've been able to write a couple shell scripts with Termux that can poke into the SQLite database where received messages are stored, and get the content of those messages and the numbers of the participants in [...] read more
android
tasker
1vote
0answers

Explanation of st_flags bits

I'm writing a python script to delete files on MacOS, and I run into SIP protected files. I know the presence of st_flags more than likely mean I can't delete the file. Like here: >>> os.stat(f).st_flags 524288 But I'm curious to know what that actually means. I looked in stat.h [...] read more
objective-c
linux
macos
file
unix
1vote
1answer

Link Error during Rust compilation (Cargo)

I'm calling some WinAPI functions with the Rust FFI (in this case MessageBoxA). My code was working until I did a little variable change and the compilation gave me an error as: = note: Non-UTF-8 output: WinAPI-dd8845a539e186b8.4ojwfrbxjnkzuhga.rcgu.o : er ror LNK2019: symbole externe non r\xe9solu MessageBoxA r\xe9f\xe9renc\xe9 dans l a [...] read more
winapi
rust
linker
ffi
rust-cargo
1vote
1answer

How to enable UART Interrupt in imx6q?

I am using I.MX6Q Sabre SD board. I am trying to build custom image with my own start script and ld script. The image is to be loaded with u-boot. I am trying to enable the UART receive interrupt for UART1. But it does not enter the Interrupt service routine. [...] read more
interrupt
uart
imx6
1vote
1answer

Trouble Converting Smart Card Program to UWP

I'm working on converting what was originally a web forms .NET application to UWP. The application is for using company-issued badges to record meeting attendance instead of our current paper sign in sheets. The original program uses an Omnikey 5427 CK in keyboard wedge mode and has no problems. For [...] read more
uwp
raspberry-pi
smartcard
windows-10-iot-core
smartcard-reader
1vote
1answer

How to load kmdf driver (wfp/inspect) on system boot

I wrote simple 64bit kmdf driver (wfp/inspect). This driver is located in: %WinDir%\System32\Drivers\Inspect.sys I can load this driver using: net start inspect. Now I would like to load this driver during Windows startup, so I have prepared this inf file: [Version] Signature = "$Windows NT$" Class = WFPCALLOUTS ClassGuid = [...] read more
windows
kmdf
1vote
0answers

What am I doing wrong with ThreadExecutionState?

I'm trying to prevent my laptop from going to sleep when I'm opening a program, I've set the sleep mode to 1 minute and am running a timer set to tick every 50 seconds. public partial class Form2 : Form { public Form2() { InitializeComponent(); timer1.Start(); } [FlagsAttribute] public enum [...] read more
c#
.net
sleep-mode
1vote
0answers

Solaris mdb debugger doesn't show correct stack info

I am analysing a core dump of a process under SPARC Solaris. mdb doesn't show functions in the stack correctly. Why could that be? No optimization compiler flags are used to build the process. -------------------------------------------------------------------------------- An update SPARC keeps return addresses in %i7 and %o7 registers. Code that doesn't manipulate [...] read more
c++
debugging
assembly
solaris
coredump
1vote
1answer

How to debug LoadLibraryEx when used from C#

I am trying to load a win32 dll in C# using the LoadLibraryEx. It is not working - I get a message stating in visual studio "vshost32.exe has stopped working". No exceptions or any clue as to why it doesn't work. I don't believe it is a dependency problem because [...] read more
c#
pinvoke
loadlibrary
1vote
1answer

Use of math in ALFA

How to get a rule like that working: rule adminCanViewAllExams { condition (integerOneAndOnly(my.company.attributes.subject.rights) & 0x00000040) == 0 permit } Syntax highlighter complains it doesn't know those items: * & (This is a binary math operation) * 0x00000040 (this is the hexadecimal representation of an integer) EDIT (adding OP's comment inside [...] read more
authorization
xacml
abac
alfa
1vote
1answer

Perl: Decimal to 32bits hex convert

I want to convert decimal number 64 into hex representation: 0x00000040. I am using printf("0x%X", 64); but it gives output: 0x40. Can anyone please help me how to represent the decimal number in 0x00000000 format? read more
perl
hex
decimal
1vote
2answers

How to upload a file with unique name in Visual Studio Webtest

Using Visual Studio 2015 I've recorded a web test which includes uploading a file to the website. This site doesn't allow to upload files with the same name. In webtest scenario I have a File Upload Parameter with the property Generate Unique Name set to True: enter image description here [...] read more
visual-studio
load-testing
web-testing
webtest
1vote
0answers

C - Get File Bytes as Unsigned Int

I need the bytes of a BIN file converted to a unsigned int, in this format (JavaScript): p.write4(shellcode.add32(0x00000000), 0x00000be9); p.write4(shellcode.add32(0x00000004), 0x90909000); p.write4(shellcode.add32(0x00000008), 0x90909090); p.write4(shellcode.add32(0x0000000c), 0x90909090); p.write4(shellcode.add32(0x00000010), 0x0082b955); p.write4(shellcode.add32(0x00000014), 0x8948c000); p.write4(shellcode.add32(0x00000018), 0x415741e5); p.write4(shellcode.add32(0x0000001c), 0x41554156); p.write4(shellcode.add32(0x00000020), 0x83485354); p.write4(shellcode.add32(0x00000024), 0x320f18ec); p.write4(shellcode.add32(0x00000028), 0x89d58949); p.write4(shellcode.add32(0x0000002c), 0x64b948c0); p.write4(shellcode.add32(0x00000030), 0x77737069); p.write4(shellcode.add32(0x00000034), 0x49000000); p.write4(shellcode.add32(0x00000038), 0x4120e5c1); p.write4(shellcode.add32(0x0000003c), 0x000200bc); p.write4(shellcode.add32(0x00000040), [...] read more
c
1vote
1answer

Functions which are in the linked library are not seen in executable

I am trying to compile FreeRTOS project for stm32f4 using cmake. Everything goes smooth except for linking syscalls.c. Project structure looks like this: project structure [https://i.stack.imgur.com/8RLe6.png] Everyting that is not in src folder is compiled as a static library i.e. SPL, startup files, FreeRTOS and etc. My last compilation step: [...] read more
c
linker
stm32
1vote
1answer

UWP app work fine on debug but give error "DllImport" in Release

I am reviewing one of GitHub Project and found a problem, It works fine in Debug Mode Following Error Comes if try in Release Mode > TypeLoadException: Unresolved P/Invoke method > 'MediaApi_GetRadioEnabled!radioapi.dll' in assembly > 'Microsoft.Devices.Radio.FMRadio, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=null' because it is not available in UWP applications. Please > [...] read more
c#
uwp
0votes
0answers

Broken external USB hard drive undetected by system

I have an external 1TB Intenso® USB hard drive, which stopped working after a small crash on the case. When I plug it into any computer, the light comes on and it makes noise (you can feel the disk running), but the volume is not detected anymore. On GNU/Linux, dmesg [...] read more
linux
hard-drive
data-recovery
forensics
0votes
1answer

My notebook Lenovo G780 lags. I use Linux Mint

I use Linux Mint 18.2 Sonya \n \l Here is my journalctl -b -p err: -- Logs begin at Thu 2017-10-05 17:07:22 MSK, end at Thu 2017-10-05 20:47:24 MSK Oct 05 17:07:22 ivan-Lenovo-G780 kernel: ata3: SError: { CommWake DevExch } Oct 05 17:07:24 ivan-Lenovo-G780 kernel: ata3: exception Emask 0x10 SAct [...] read more
linux
linux-mint
lenovo-laptop
lag
irq
0votes
1answer

ioctl error during btrfs send

I am getting this error when I try to back up my @home btrfs subvolume from my laptop running Arch Linux to my external drive. This seems like a straightforward error, but the strange thing is that I can back up two other subvolumes without seeing any errors. My backup [...] read more
linux
backup
btrfs
0votes
1answer

Ata2 exception Emask error showing in tty

I'm running Arch Linux, the problem is when I turn on my computer and enter the TTY, it's displaying: [ 5159.397489] ata2: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen [ 5159.397493] ata2: irq_stat 0x00000040, connection status changed [ 5159.397495] ata2: SError: { DevExch } Also sometimes it's [...] read more
linux
arch-linux
0votes
1answer

Software RAID 1 Configuration

I have created a software RAID 1 quite some while ago and it always seemed to work for me. However I am not completely sure that I have configured everything right and do not have the experience to check so I would be very grateful for some advice or just [...] read more
linux
hard-drive
sata
software-raid
0votes
1answer

linux hang + kernel messages about failed to assign mem

we have 5 Linux rhel machines , we noticed that all machines was hang with the same time from messages file we can se the following Dec 29 19:54:25 localhost kernel: pci 0000:ff:12.4: BAR 4: failed to assign [mem size 0x00000040] Dec 29 19:54:25 localhost kernel: pci 0000:ff:12.0: BAR 1: [...] read more
redhat
kernel
crash
0votes
1answer

Fakeraid doesn't show up in /dev/mapper

I have the following setup: 1 256GB SSD / Win8-Ubuntu 13.04 UEFI Dualboot 2x1TB in RAID 1 (Detected and working) 2x4TB in RAID 1 (Not Detected not showing up in /dev/mapper) The problem is that I just recently added another two drives that are 4TB in RAID 1 but they [...] read more
ubuntu
raid
fakeraid
0votes
0answers

Removing unused variables causes exception

Trying to find a way to execute a command as a different user with credentials I came across this great answer by Eryk Sun. Trying to melt it down to my needs, I saw some strange behaviour. For ease of copying, I put the code from that answer as a [...] read more
python-2.7
winapi
ctypes
pywin32
0votes
1answer

ESP32 kernel panic at random (network_event)

I'm working with an ESP at the moment and I have written alot of code that works on it's own, but once merged, it doesn't. My code boots, but then I get the following; 09:00:18.780 -> Device is now in pay-mode 09:00:18.780 -> ETH Started 09:00:22.779 -> ETH Connected 09:00:22.812 [...] read more
ethernet
esp32
0votes
0answers

Why The loader loads the xv6 kernel into memory at physical address 0x80000000?

I have read this in MIT6.828: > The loader loads the xv6 kernel into memory at physical address 0x80000000. > The reason it places the kernel at 0x80000000 rather than 0x0 is because the > address range 0x0:0x80000000 contains I/O devices. But How do I/O devices takes up these addresses?For [...] read more
operating-system
xv6
0votes
0answers

In appium how to check fingerprint setting is enabled i.e. fingerprint added or not

To verify fingerprint setting is enabled i.e. fingerprint added or not, I am using adb shell. Below is the command adb shell service call fingerprint 14 i32 1 s16 "android.permission.USE_FINGERPRINT" Below is the output that I am getting Result: Parcel( 0x00000000: ffffffff 00000095 0075004d 00740073 '........M.u.s.t.' 0x00000010: 00680020 00760061 00200065 [...] read more
appium
fingerprint
adb-shell
0votes
0answers

Total pages printed on python and winspool.drv

Recently I had copied this code (Thanks CristiFati): Python- How to communicate with printer While its working on its own, I can't figure out how can I get total page counting to work, I added it to DEFAULT_FIELDS var and to NotifyData method, without luck as follow: def NotifyData(self): if [...] read more
python
ctypes
pywin32
0votes
0answers

Why SSH_FXF_APPEND flag is commented out while calling the APPEND operation of JSCH

A quick brief, I am working with one of the implementations of SFTP server for .NET i.e. NSoftware IPWorks SSH. I wanted to deduce the APPEND operation invoked by the client and do some logic on that. I quickly implemented the SSH client using Renci's SSH.NET package and was able [...] read more
ssh2-sftp
0votes
0answers

Why I am not receive data with UART and without HAL?

I am using a stm32f407vg board. I am writing the program on atolic true. In addition, I use D-SUN USB TLL. I also use Termite to see the Data Receive and Send screen. When I send a 1 or 0 on the termite, I can't get out of port B. [...] read more
stm32f4discovery
usart
0votes
2answers

How to turn on LED on stm32 board using assembly language that generated by llvm?

My English skill is poor because I'm not a native English speaker. Please understand. I compiled some test code that operating alright in IAR with LLVM infra but the generated code was not operated on my test board. Detail are as follows. TEST GOAL I want to see operating the [...] read more
makefile
llvm
cortex-m3
segger-jlink
stm32l152
0votes
1answer

Determing the highest possible color and depth attachement sampled count in Vulkan

Do I need to set the value of VkAttachmentDescription::samples to a power of 2 or are arbitrary values allowed, as long as they don't exceed the maximum supported by the hardware? I'm really confused about this. The samples field is of type VkSampleCountFlagBits, which is declared in the following way [...] read more
graphics
vulkan
0votes
3answers

Why won't GetMenuItemInfo work?

I'm trying to read the label names of menu items in an active application and store them in a List<String>. Unfortunately, dwTypeData ALWAYS returns null. Why is this? List<string> ls = new List<string>(); IntPtr hMenu = Win32.GetMenu(hWnd); if (hMenu.ToInt32() != 0) { for (int i = Win32.GetMenuItemCount(hMenu); i >= 0; [...] read more
c#
wpf
winapi
pinvoke
0votes
0answers

Computer crashed after attempting to start bettercap http/api server. I copied some errors from journalctl --system. The output baffles me

There is something strange going on here. In the log, it mentions two other private IPs that I definitely do not use. Especially since it's on a different IP subnet. I've noticed this the other day and was actually able to ping them. Still can. The other thing I seen [...] read more
crash
out-of-memory
httpserver
0votes
0answers

Android adb send SMS error doent't work permissions

When i try to send SMS using adb with command: adb shell service call isms 7 i32 0 s16 "com.android.mms" s16 "+1234567890" s16 "null" s16 "Hey\ you\ !" s16 "null" s16 "null" there is error: Result: Parcel( 0x00000000: ffffffff 0000005e 006f0043 00790070 '....^...C.o.p.y.' 0x00000010: 006e0069 00200067 006d0073 00200073 'i.n.g. .s.m.s. [...] read more
android
sms
adb
0votes
1answer

Trying to read from switches and output in a LED switch board

I am wrtiing a program in PLP assembly that repeatedly reads the value of the switches (address: 0xf0100000) and displays a pattern on the LED array (address: 0xf0200000) based on what switches are clicked. Each time the switch value is read, the pattern should be displayed (regardless of whether the [...] read more
assembly
mips
0votes
1answer

Call GetMenuItemInfo returns 87

I have programming a new program where I can get shell context menu of the file(s). But I have a problem when I call win32 api function GetMenuItemInfo. This method returns me false as result and when I immediately call Marshall.GetLastWin32Error then I got the error code 87. This is [...] read more
c#
winapi
0votes
0answers

ctypes.ArgumentError: argument 3: <class 'ValueError'>: embedded null character

Hey can someone help me fix this error this is a code to inject shellcode in a running process however I cannot execute this, due this error import sys from ctypes import * we set the EXECUTE access mask so that our shell code will execute in the memory block [...] read more
python
python-3.x
security
ctypes
code-injection
0votes
1answer

GCC Posistion independent code: Variables are not loaded correctly

The Program works fine as a stand alone on CC2650 (M3). But it shall be used also as a firmware which is loaded over the radio channel. For this purpose the position independent code is needed. The problem is, all of the variables defined as described below are not set. [...] read more
c
gcc
position-independent-code
0votes
0answers

Freeling analizer is not working with NER, dates, numerals

I am trying to use freeling to recognize and classify named entities in Spanish, I am testing with the analizer as I still don't understand how to use the Python API. So when using the analizer in a text it doesn't recognize or classify named entities or dates or anything [...] read more
python
nlp
ner
freeling
0votes
1answer

Get path of process without Admin privileges in C#

I am trying to get the path of a running process without admin privileges. There is lots of tutorials online, but i can't get them to work. This is the basic premise that works great when running as administrator: // main Process pname = Process.GetProcessesByName(processName)[0]; string path = GetExecutablePath(pname); // [...] read more
c#
0votes
3answers

System Error Code 0x32 when trying to attach debugger to calc.exe

I am currently learning how debuggers function and I am trying to program one myself following the book 'Gray Hat Python' by Justin Seitz. I am quite new to python and using the Windows API so any help is appreciated. I am using python 2.7 and Windows 10 64bit (in [...] read more
python
ctypes
0votes
1answer

Code executes correctly only if prints are present (C)

I'm setting up a prototype for a DAQ system for Zynq FPGAs. I receive data from a server through ethernet, write it to a FIFO using the DMA and viceversa using two different pthreads. However, threads work correctly only if printf are executed. I expect there is a memory leak [...] read more
c
pointers
memory-leaks
shared-memory
mmap
0votes
1answer

AVR gcrt1.S weird call

So basically i have decompiled unoptimized simple program and saw that it runs through gcrt1.S, and i dived in to assembly language and tried to understand what exactly it does. here is my code and my assumption of what it does 00000034 CLR R1 Clear Register 00000035 OUT 0x3F,R1 Out [...] read more
avr
avr-gcc
0votes
1answer

XMS.NET fails when receiving JMS message with RFH2 header at ParseJmsFolder

Our partner started using custom properties for messages being sent over IBM WebSphere MQ and our application developed using XMS.NET started to fail because of that. It turned out that the error is being thrown inside parsing the JMS envelope and inside the ParseJmsFolder method. This is the exception we [...] read more
.net
jms
ibm-mq
xms
rfh2
0votes
0answers

File type returns empty string

I'm trying get file type name (like Folder, bitmap image, Text file etc...) with c#. I dont want get from registry because of privilege reasons. I found this method from internet. It working well for get file icon (SHGFI_LARGEICON, SHGFI_SMALLICON) But This method always returning blank szTypeName. I've tried different [...] read more
c#
shell32
shell32.dll
0votes
1answer

What is 'FT' means in Nginx NGX_HTTP_UPSTREAM_FT_* macro/const

There are some macro about nginx upstream and What is 'FT' means in these definitions? #define NGX_HTTP_UPSTREAM_FT_ERROR 0x00000002 #define NGX_HTTP_UPSTREAM_FT_TIMEOUT 0x00000004 #define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER 0x00000008 #define NGX_HTTP_UPSTREAM_FT_HTTP_500 0x00000010 #define NGX_HTTP_UPSTREAM_FT_HTTP_502 0x00000020 #define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000040 #define NGX_HTTP_UPSTREAM_FT_HTTP_504 0x00000080 #define NGX_HTTP_UPSTREAM_FT_HTTP_403 0x00000100 #define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000200 #define NGX_HTTP_UPSTREAM_FT_HTTP_429 0x00000400 #define NGX_HTTP_UPSTREAM_FT_UPDATING 0x00000800 #define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK [...] read more
nginx
0votes
1answer

How can I treat bit mask graceful in C++?

I have met code like this. #define JOB_STATUS_PAUSED 0x00000001 #define JOB_STATUS_ERROR 0x00000002 #define JOB_STATUS_DELETING 0x00000004 #define JOB_STATUS_SPOOLING 0x00000008 #define JOB_STATUS_PRINTING 0x00000010 #define JOB_STATUS_OFFLINE 0x00000020 #define JOB_STATUS_PAPEROUT 0x00000040 #define JOB_STATUS_PRINTED 0x00000080 #define JOB_STATUS_DELETED 0x00000100 #define JOB_STATUS_BLOCKED_DEVQ 0x00000200 #define JOB_STATUS_USER_INTERVENTION 0x00000400 #define JOB_STATUS_RESTART 0x00000800 DWORD func(); The func return a dword which [...] read more
c++
0votes
0answers

Make my WinForms application behave just like a Console application when using Console.WriteLine()

I have a .NET WinForms application written in C#. The application has two operational modes: * Regular GUI mode. * Possibility to execute calls with a CLI. When I run my application from a Cmd window, the output appears on screen, but the application does not close until I press [...] read more
c#
pinvoke
0votes
0answers

Analysing a discrepancy between heap and process memory in .NET

As you can see in the attached image, the total heap size is less than 9MB, but the process memory usage is almost 22GB. This is an intermittent bug that I can't reliably reproduce so I'm struggling to debug the problem. What do I need to be looking at to [...] read more
c#
.net
memory
memory-management
0votes
3answers

Ecplise Java JNI, java.lang.UnsatisfiedLinkError loading dll

I'm having a problem with loading printer dll. I have a dll file from the printer manufacturer (JniPrinterStatusLib.dll). I wrote code like printer manufacturer suggested. The code is: package com.printer.test public class JniPrinterStatus { static{ System.loadLibrary("JniPrinterStatusLib"); } public native int GetStatus(String printer); } package com.printer.test public class TestSample { public [...] read more
java
eclipse
java-native-interface
0votes
1answer

GetLogicalProcessorInformationEx SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX array size

related to: Confusing ReturnLength from Windows GetLogicalProcessorInformationEx function I have read the documentation for GetLogicalProcessorInformationEx. It states > Buffer [out, optional] > > A pointer to a buffer that receives an array of > SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structures. If the function fails, the > contents of this buffer are undefined. Nowhere is [...] read more
c++
windows
0votes
0answers

Addresses from bt in gdb

I am running a server application on a gentoo (3.4.66) machine. Sometimes the application segfaults nearly directly after start, but when it runs, there doesn't occur any segfault at all. For some reason, this did not happen (yet) in release build, but only occurs during debug build. This is quite [...] read more
linux
gdb
backtrace
0votes
1answer

Writing to socket fails with the addition of any single line of code to c program

I'm writing a c program designed to transfer data over a socket to python client. I've encountered a really strange issue where writing to the created socket stops working with the addition of virtually any line of code after a certain point in the program. To expand on the issue: [...] read more
c
sockets
memory
embedded
0votes
2answers

Why does LoadLibrary fail while DllImportAttribute works?

I'm creating a .NET application for a client that performs I/O with one of their third-party systems. As they regularly change the password of this system, I should retrieve it dynamically by calling a native DLL that they provide in a dedicated directory (not besides my EXE file). However, I [...] read more
c#
.net
dll
interop
pinvoke
0votes
1answer

Access is denied from WinAPI OpenProcess

So I decided I want to inject a DLL into a notepad process for educational purposes. IntPtr hProcess = OpenProcess(ProcessAccessFlags.VirtualMemoryWrite | ProcessAccessFlags.VirtualMemoryWrite | ProcessAccessFlags.VirtualMemoryOperation, false, process.Id); _log.Info({0}, new Win32Exception(Marshal.GetLastWin32Error()).Message); This seems to fail with "Access is denied". The strange thing is that hProcess is not IntPtr.Zero and it looks like [...] read more
c#
winapi
pinvoke
0votes
1answer

Inotify listening to moved_from/moved_to events

I'm using inotify to listen to events on a directory IN_MOVED_FROM/IN_MOVED_TO pair. Here is the simple assembly program: SYS_exit equ 0x3C SYS_inotify_init equ 253 SYS_read equ 0x00 MEMPAGE_SIZE equ 4096 SYS_inotify_add_watch equ 254 IN_MOVED_FROM equ 0x40 IN_MOVED_TO equ 0x80 section .text global _start _start: mov rax, SYS_inotify_init syscall mov r13, [...] read more
linux
assembly
x86-64
inotify
0votes
0answers

Standard output from CreateProcessAsUser Always Empty in C#

The first Call to Launch Method Write Into file echo1, but I can't capture the standard output of the second line of the test, what I am doing wrong? [TestMethod] public void Launch() { var resp = ProcessAsUserTest.ProcessAsUser.Launch("cmd.exe /c \"echo 1\" >> c:\\temp\\echo1"); var resp1 = ProcessAsUserTest.ProcessAsUser.Launch("cmd.exe /c \"echo 1\""); [...] read more
c#
redirectstandardoutput
createprocessasuser
0votes
1answer

Why is the process I am writing the memory to crash?

So I recently stumbled onto a blog that described how to run your WinForms application from another process. I instantly thought this was something really cool an unique and wanted to test it out myself. While there was no code it explained how to do so and this is what [...] read more
c#
.net
process
0votes
2answers

stm32f103c8t6 USART1 interrupt doesn't work

Good Day. I'm trying to run UART example script from Stm32 std library, and it seems it doesn't work. I'm using such board: enter image description here [https://i.stack.imgur.com/Ayx1N.png] Upload firmware via USART1. USART init code: #include <stm32f10x.h> #include <misc.h> volatile char received_string[MAX_STRLEN+1]; void Delay(__IO uint32_t nCount) { while(nCount--) { } [...] read more
c
stm32
0votes
1answer

Google Maps Static API not rendering last path of polygon

I have a software that allows users to define certain boundaries in a map. In order to accomplish that I use the drawing functionality of GoogleMaps. Once the user's finished drawing the boundaries I get and encode the path to store it. If I edit that same record, it works [...] read more
google-maps
google-maps-api-3
google-static-maps
0votes
1answer

SPARC LEON error: IU exception (tt = 0x2B, data store error)

Good morning, I need an help because I'm stuck and I cannot find any solution looking at the manuals. I want to use EDAC on Leon3. I'm programming in C using the BCC compiler. In particular, I have a GR-UT699 board. I'm using GRMON to flash my elf file in [...] read more
c
embedded
firmware
sparc
0votes
1answer

ClientToScreen API functions returns not the expected point

I'm currently designing a function that searches a subpicture on a picture of a window. If the search was successful, it clicks on the center of this subpicture. Strangely, it always clicks a below the expected position. The search algorithm works correct - I still checked it. The provided coordinates [...] read more
c#
winapi
0votes
2answers

Impersonate current user in windows 10 service

the following is a windows services which maps the home drive and a W drive. Everything works well if i execute the code under a user. Since this is a service running under local system I used an impersonation class to call it. The impersonation works perfectly when creating shortcuts [...] read more
c#
visual-studio
0votes
3answers

Reading through an char array passed as void* with pointer incrementation and later read as chars and other datatypes?

So to clear out misunderstandings from the title (not sure how to ask the question in the title) I want to read from a file(char array), pass it as an void* so i can read undependable of datatype by incrementing the pointer. So here's an simple example of what I [...] read more
c
arrays
pointers
types
0votes
0answers

Java Application crashes randomly

Our application crashes randomly. Platform is RedHat Linux, java version is jdk 1.6_17. It is a swing based application having lot of native code. The behavior is quite random. Sometimes it crashes in few minutes and some times it crashes after some hours or after long run. I the pid [...] read more
java
swing
memory-management
crash
-1votes
1answer

Dealing with an ATA error

my Xubuntu 16.04. produces a non-stop ATA error message. Here is the output of dmesg [ 4547.943159] ata7: hard resetting link [ 4548.657810] ata7: SATA link down (SStatus 0 SControl 300) [ 4548.657824] ata7: EH complete [ 4548.757449] ata7: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen [ [...] read more
linux
ubuntu
hard-drive
partition
sata
-1votes
0answers

Find and click default button on modal dialog?

I started with the code found here - https://color-of-code.de/programming/c-sharp/detect-waiting-for-user-input. I can find a modal dialog if one is open. I'm looking for a modal dialog that is open in a different app, not sure if that matters or not. Now what I want to do it click the default button. [...] read more
c#
pinvoke
ui-automation
-3votes
5answers

C# Loop While Left Mouse Click Is Pressed On Anywhere

I tried to make a system which runs loop anytime when left mouse click is pressed, not pressed on button or label, but anytime!!!. But here is the code: [DllImport("user32.dll")] static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo); [Flags] public enum MouseEventFlags { LEFTDOWN = [...] read more
c#
loops
-4votes
1answer

c# an object reference is required for the non static field in main

when attempting to debug this, even after asking help from friends and of course google, i cant seem to debug this stupid simple problem. namespace BO2_Console { class Program { #region Mem Functions & Defines [Flags] public enum ProcessAccessFlags : uint { All = 0x001F0FFF, Terminate = 0x00000001, CreateThread = [...] read more
c#
-5votes
1answer

Can anyone help explain me the answers to this mips question?

> 3. Given the following MIPS assembly program: > > data > > byte 2 > > word 9 10 17 18 20 22 > > word 4 8 > > -text > > global > > start > > la Ss0, h > > la Ssl, 6 (Ss0) > [...] read more
assembly
mips
mips64

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0