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
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
7votes
4answers

Use Windows API from C# to set primary monitor

I'm trying to use the Windows API to set the primary monitor. It doesn't seem to work - my screen just flicks and nothing happens. public const int DM_ORIENTATION = 0x00000001; public const int DM_PAPERSIZE = 0x00000002; public const int DM_PAPERLENGTH = 0x00000004; public const int DM_PAPERWIDTH = 0x00000008; public [...] read more
c#
windows
sdk
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
5votes
1answer

libvlc_media_player_set_position fails when seeking backward

I'm using libvlc 3.0.0 (I've also tried 2.2.0) to capture frames from a h264 encoded mp4 file (does not include sound, only video frames) on Windows 7 with Visual Studio 2012. I can play, pause, stop and seek forward without any problem. But when I try to seek backwards, I [...] read more
c++
c
windows
visual-studio
libvlc
5votes
2answers

Changes using Winspool.drv in Windows 7 64 bit from Windows XP 32 bit

I have some C# code (VS2010;fx2) which is used to carry out printer functions. This code works fine in Windows XP environment. Changing to Windows 7, it no longer works correctly. The first different behaviour is that the GetPrinterNames() method now only returns local printers. As you can see, the [...] read more
c#
windows-7
64-bit
network-printers
4votes
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
4votes
2answers

What is an analog Watchdog?

I Quote from Wikipedia: > A watchdog timer (WDT; sometimes called a computer operating properly or COP timer, or simply a watchdog) is an electronic timer that is used to detect and recover from computer malfunctions. While using STM32F429I-Discovery, I came across a term [in "stm32f4xx.h"] which uses a register [...] read more
embedded
stm32
watchdog
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

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
1answer

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
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
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 lpVerb [...] read more
excel-vba
shellexecuteex
shell32.dll
vba
excel
3votes
0answers

Query recycle bin whilst impersonating user

Long story short, I'm trying to query the recycle bin as another user. This is a WPF app with a service, and I need to query the recycle bin within the service... I know... We need to use NetNamedPipeBinding, and can't use the OperationBehavior attribute. Thus far, I've had success [...] read more
c#
winapi
impersonation
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
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
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

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
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
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
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
2votes
1answer

Close Handle after Duplicate

I was trying to close a handle to a Mutex of an extern process. Therefore I tried to use DuplicateHandle from the Win32API as seen in this thread. Closing the handle on the target process works. Closing it after duplicating it to my current process however does not. Strangely it [...] read more
c#
.net
winapi
2votes
1answer

Mac OS 10.9 doesn't display USB modem for Arduino

I am trying to select /dev/tty.usbmodem on my Arduino Lenardo device. The OS is Mac OSX 10.9. The problem is that it isn't displaying. I even tried installing FTDI but it was no use. Update: sh-3.2# dmesg luetoothUSBDFU::probe IOBluetoothUSBDFU::probe ProductID - 0x821A FirmwareVersion - 0x0042 **** [IOBluetoothHostControllerUSBTransport][start] -- completed -- [...] read more
macos
arduino
arduino-ide
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
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

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
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

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

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
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

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 these [...] read more
c++
debugging
assembly
solaris
coredump
1vote
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
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
0answers

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
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
0answers

Android OpenSL ES, how to choose speaker

Does anyone know how to play the sound through the speaker that we normally use during the phone conversation (not the loud speaker, but the ear speaker)? I have developed the app similar to Skype and my only problem is that when the sound is played through the loud speakers, [...] read more
android
opensl
1vote
2answers

Different results between step debugging and running program on tiva c

I have a TIVA tm4c123G I have been trying to create a communication between it and my ADXL345 sensor using I2C protocol which I succeeded in writing and reading from the accelerometer the readings of the device address and the register values that I just wrote to which means everything [...] read more
c
arm
embedded
accelerometer
i2c
1vote
2answers

Avoid or remove lock from StgOpenStorage()

Greets, I found a similar question at Opening OLE Compound Documents read-only with StgOpenStorage but that solution didn't work for me. I try to open an outlook .msg file with StgOpenStorage(). My problem is, that StgOpenStorage always locks my file. So, how can I avoid/remove the lock StgOpenStorage() adds to [...] read more
c#
winapi
com
1vote
2answers

How to initialize OpenGL with glXChooseFBConfig and ctypes module?

I want to make some simple OpenGL animation on my tkinter window. I dont want to include any needless dependencies so I'm writing everything from scratch with ctypes. So far I have this: #!/usr/bin/env python3 import tkinter import ctypes from ctypes import cdll GLX_PIXMAP_BIT = 0x00000002 GLX_WINDOW_BIT = 0x00000001 GLX_PBUFFER_BIT [...] read more
python
opengl
ctypes
glx
1vote
0answers

Detect color of pixel and click on that pixel in loop

With this code can be detect color of pixel and click on that pixel. I want to detect color of pixel after click Login button in infinite loop that each time color found program automatically play sound! For example, in an infinite loop or any one second! And finally, I [...] read more
c#
visual-studio
screenshot
1vote
0answers

How to find and kill a process who cause ioException?

I tried several solutions to find a process locking a file and kill this process. I found a solution who works fine but sometimes crashes my application and I don't know why. Look at the example and please if someone could help me, it would be appreciated. try { file.CopyTo(destAbsolutePath, [...] read more
c#
process
locking
kill
ioexception
1vote
2answers

c# exe encapsulation in wpf not work

I need to encapsulate exe on my wpf application. My wpf application is very large and with many UserControls. To do this, i've start the exe from my code, then get the handle and used the "setParent" to "bind" the exe to my application, but the only effect is to [...] read more
c#
wpf
exe
setparent
1vote
1answer

How to marshal WCHAR* in C#

I'm trying to pinvoke a function that receives a couple of WCHAR <paramName>[1] parameters. From what I've read in multiple places, in C/C++ you can't actually pass arrays to functions, instead they get converted to a pointer holding the first element of the array, which means that the array length [...] read more
c#
.net
winapi
pinvoke
0votes
0answers

How to track SID History parameter in AD?

If person has admin right on AD he can compromise whole Forest (Reference: https://dirkjanm.io/active-directory-forest-trusts-part-one-how-does-sid-filtering-work/ ) In order to do that, that person needs to enable SID History via this command "netdom trust /d:forest-a.local forest-b.local /enablesidhistory:yes" And that changes parameter TATE (TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL) 0x00000040 I found this information on Microsoft site: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/e9a2d23c-c31e-4a6f-88a0-6646fdb51a3c [...] read more
windows
active-directory
monitoring
parameters
domain-security
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

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
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

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
2answers

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

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

What when i try inject shellcode to process, the process will close?

I try injection shellcode to some progress, to open calc.exe. But event i try to 64bit program or 32bit program, when i work CreateRemoteThread, target program will auto close. I don't know what's wrong. I work on Win 10 64bit PC. I can write memory or read memory, but I [...] read more
python-3.x
code-injection
shellcode
dll-injection
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
2answers

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
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
0answers

Why is my ZwOpenKey function not returning a HANDLE?

I could be missing something obvious here but I've tried everything I could think of and still no luck. I'm trying to use ZwOpenKey and ZwCreateKey to add a value to the Run key in the registry. However, the ZwOpenKey never fills my RegKey HANDLE value and it instead returns [...] read more
c++
registry
0votes
0answers

Arduino Yun Mini Bricked linux (kernel panic) SQUASHFS ERROR, Reflashing with serial YMODEM or Kermit, O WIFI, SD card, Eth, or USB

INTRODUCTION I am actually newbie to this advanced perspective of linux routers based systems as openWRT and i faced a problem with my Arduino Yun Mini board which found to be operated with this firmware for linux interfacing and WiFi module, So: THE PROBLEM: i tried to upgrade the system [...] read more
arduino
openwrt
u-boot
squashfs
kermit
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 the number of elements defined. [...] 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
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
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
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
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
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 either use an another [...] read more
c#
uwp
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
0votes
0answers

Rendering in a NativeWindow OpenGL control

I've created my own OpenGL context using native API calls and NativeWindow in C#. I based on WIN32 OpenGL examples and got this: public class OpenGLControl : System.Windows.Forms.NativeWindow{ private IntPtr HDC; //private Form Parent; #region Imports [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)] static extern IntPtr GetDC(IntPtr [...] read more
c#
opengl
0votes
0answers

Calling SetThreadExecutionState before locking PC

I have a program which triggers evens when a user locks and unlocks their computer. I have added a function to keep the PC awake and unlocked if the user wants by calling the following code: private void changeUnlockState() { uint status = NativeMethods.SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_SYSTEM_REQUIRED); //Call ex state method [...] read more
c#
kernel32
0votes
0answers

OpenStack Newton Installation(using packstack) Error

I've recently installed the OpenStack Newton on a freshly installed CentOS-7. I followed the Packstack quickstart guide for the single node setup. I'm stuck in this from this monday. I have tow problems. 1. The installation stops with the error: > Error appeared during Puppet run: 192.168.x.xx_controller.pp When I open [...] read more
cloud
openstack
centos7
dashboard
failed-installation
0votes
0answers

tiva c I2C one master multiple slaves do not work

I was trying to create project which use I2C protocol to control multiple node. When I am trying to control only one node address on the bus, my code works perfectly, but when I tried to talk with two nodes, only first command work on all over the system. This [...] read more
c
arm
embedded
i2c
0votes
1answer

Login Error when using invoke-command as job

When i run PS script (robocopy cmd) on remote machine using invoke-command as job, it throws login error. The account i am running has admin privileges and when i run the same command onthe remote machine, it works fine. Invoke-Command -session $servers -FilePath D:\script.ps1 Error 2016/10/04 10:39:00 ERROR 64 (0x00000040) [...] read more
powershell
remoting
0votes
1answer

Pinvoke NtOpenFile and NtQueryEaFile in order to read NTFS Extended Attributes in C#

I am trying to code a simple NTFS reader function for Extended Attributes (not Alternate Data Streams !) in C#. It will be used in some powershell scripting later, so i need to strick with C#. So far i've gathered some infos about NtOpenFile: [StructLayout(LayoutKind.Sequential, Pack = 0)] public struct [...] read more
c#
pinvoke
ntfs
0votes
1answer

Why does my ReadProcessMemory() not work? (C#)

I have the following Code in C#: using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Linq; using System.Collections.Generic; using System.Text; using System.IO; namespace ProcessMemoryReaderLib { /// <summary> /// ProcessMemoryReader is a class that enables direct reading a process memory /// </summary> class ProcessMemoryReaderApi { /////// [DllImport("advapi32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] [...] read more
c#
memory
ram
0votes
0answers

Can a section in a Win32 PE contain a combination of both executable code, initialized data and unitialized data?

> Can a section in a Win32 PE contain a combination of both executable code, initialized data and unitialized data? Is it possible for a section to contain any combination of code and (un)initialized data as section data, or can the section only contain one type of data? It is [...] read more
c++
windows
assembly
portable-executable
0votes
1answer

mouse_event LEFTDOWN LEFTUP doesn't working in C#

I have some problem with my code. It can Set cursor position but it can't click. I read some post in this webstie, but I still can't fix my problem. So, what should I do? I am using C# .Net in Microsoft Visual Studio 2013 Ultimate. using System; using System.Collections.Generic; [...] read more
c#
windows
api
mouseevent
0votes
1answer

How to convert hex editor output of the form "0x00000040 20 66 6F 72 6D 2D 64 61 74 61 3B 20 6E 61 6D 65 form-data; name" to plain text?

I get output from visual studio as a string in the form of: 0x00000000 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D ---------------- 0x00000010 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 37 64 34 -------------7d4 0x00000020 [...] read more
visual-studio
hex-editors
-1votes
2answers

Set Icon of InternetExplorer Application to ico file [Ruby 1.9.3]

I have created a relatively simple Ruby script which allows the user to select an item from a drop down box. I do this by creating an instance of internet explorer and then automating it from ruby. Preferably I would want to take the UI further and change the ICON [...] read more
ruby
winapi
-1votes
1answer

c# - using LoadLibrary returns 0 with Win32Error 193

I'm building a c# class library that calls third party DLLs supplied by a vendor we're working with. The vendors examples are all in vc++ and are running and working. I'm trying to load one of the DLLs and it's returning an IntPtr 0. When I call Marshal.GetLastWin32Error() I get [...] read more
c#
c++
.net
visual-c++
dll
-1votes
2answers

Symbol not found but was included during linking

I've just built magic VLSI software on MacOs Sierra 10.12.2. This includes building tclmagic.dylib library. Now when testing Magic Exec I get: magic dyld: lazy symbol binding failed: Symbol not found: _HashInit Referenced from: /usr/local/lib/magic/tcl/tclmagic.dylib Expected in: flat namespace` I searched and found the HashInit function inside an utility library [...] read more
linker
dylib
undefined-symbol
nm
-2votes
1answer

How to perform doubleclick?

I know, there are a lot of questions like this. But every answer i read, did not helped me.. So i ask here. I want to perform a mouse double click. Before that i have already set the cursor to the correct position: Cursor.Position = new System.Drawing.Point(2225, 154); I already [...] read more
c#
winapi
mouse
-2votes
1answer

Improvement: detect the color of a pixel on screen and move the mouse

This code is written by someone and this function code is as follows: According to color pixel location can be found and click on position was found, so far, the performance is excellent but a problem with this code, quickly find the position and the color is too low that [...] read more
c#
winforms
-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#

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