Windows error 0x00040000, 262144

Detailed Error Information

OLE_S_FIRST[1]

Declared inwinerror.h

OLE_S_USEREG[1]

MessageUse the registry database to provide the requested information
Declared inwinerror.h

HRESULT analysis[2]

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
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code0 (0x0000)

Questions

56votes
5answers

How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging - from the terminal?

The standard (low-cost) way to program ARM microcontrollers is using Eclipse with a complex toolchain plugged into it. Eclipse has definitely its merits, but I'd like to feel independent from this IDE. I'd like to discover what happens behind the scenes when I build (compile - link - flash) my [...] read more
gdb
gnu
jtag
openocd
12votes
2answers

Nand partitioning in u-boot

I am working on an Embedded ARM9 development board. In that i want rearrange my nand partitions. Can anybody tell me how to do that ? In my u-boot shell if i give the command mtdparts which gives following information . Boardcon> mtdparts device nand0 <nandflash0>, # parts = 7 [...] read more
embedded
kernel
arm
u-boot
8votes
1answer

How do I embed tabtip.exe inside windows

I'm trying to embed the osk in a wpf window or a user control and I've found the code below and it's working for notepad but for tabtip.exe, it's saying that it doesn't have a graphical interface?? WaitForInputIdle failed. This could be because the process does not have a graphical [...] read more
c#
wpf
window
on-screen-keyboard
8votes
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
6votes
1answer

core file memory analysis verification

An application is generating a core file. Here is the core info. The error stack was obtained and the objective is to check the data content within the myStruct variable as this is what gets passed into myFunction when the core occurs. (gdb) where #0 0x000000000041bba1 in myFunction (myStruct=0x7ffff9dd0c20) at [...] read more
c
gdb
coredump
6votes
1answer

Access Denied Error while trying to get the client process executable path

I am working on a WCF service that is hosted as a windows service which uses named pipes - NamedPipeServerStream (Users privilege) to establish secured connection between server and client processes. To check the authenticity of the client process, I need to verify the digital signature of the client process [...] read more
c#
windows
wcf
winapi
namedpipeserverstream
6votes
2answers

SO_ATTACH_REUSEPORT_CBPF socket option unexpected behavior

I am trying use a port from two applications and have each of them receive the packet from a different set of IP addresses. In order to achieve this, I use the SO_REUSEPORT and SO_ATTACH_REUSEPORT_CBPF socket options. My code is as follows: parentfd = socket(AF_INET, SOCK_STREAM, 0); if (parentfd < [...] read more
linux
sockets
packet-capture
6votes
1answer

FSEvents file flags are set regardless of event stream creation options

According to Apple documentation, in the callback to FSEvents, /* These flags are only set if you specified the FileEvents */ /* flags when creating the stream. */ kFSEventStreamEventFlagItemCreated = 0x00000100, kFSEventStreamEventFlagItemRemoved = 0x00000200, kFSEventStreamEventFlagItemInodeMetaMod = 0x00000400, kFSEventStreamEventFlagItemRenamed = 0x00000800, kFSEventStreamEventFlagItemModified = 0x00001000, kFSEventStreamEventFlagItemFinderInfoMod = 0x00002000, kFSEventStreamEventFlagItemChangeOwner = 0x00004000, kFSEventStreamEventFlagItemXattrMod [...] read more
macos
cocoa
filesystems
osx-lion
fsevents
5votes
3answers

DEADLINE scheduling policy not found

I want to implement the DEADLINE scheduling policy in C. I know the feature is implemented since Linux 3.14.10 and I'm using Ubuntu 14.04 Linux #### 3.17.0-031700-lowlatency #201410060605 SMP PREEMPT which should be recent enough. I develop the program with Eclipse (launched as sudo). I've defined _GNU_SOURCE and included sched.h [...] read more
c
linux
linux-kernel
sched-deadline
5votes
2answers

Splitting embedded program in multiple parts in memory

I am working on an embedded system (Stellaris Launchpad) and writing a simple OS (as a hobby project). The used toolchain is gcc-none-eabi. My next step is to get used to the MPU to allow the kernel to prevent user programs from altering specific data. I have a bunch of [...] read more
linker
embedded
linker-scripts
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
2answers

Router cannot connect to Internet

I am having trouble setting up my router to connect to the Internet. I am currently renting a basement unit and I have an Ethernet port running upstairs to the owner's floor. I have verified that port is active by plugging my desktop into that port and being able to [...] read more
networking
router
3votes
3answers

Digitally signed driver not verified by Windows (Code 52)

I am installing the I2CTools USB-to-I2C Elite driver for Win 10 x64, but I got a dialog saying ”Jungo Connectivity: a digitally signed driver is required.” In device manager the two drivers JungoConnectivity WinDriver1251 and USB-to-I2C Elite drivers are marked with yellow triangles and Details says: Not digitally signed. I [...] read more
windows-10
usb
drivers
digital-signature
3votes
1answer

Getting full file attributes for files managed by Microsoft OneDrive

Microsoft OneDrive allows file to be stored either locally, remotely or in the both ways. This is determined by new file attributes which appeared in the Windows 10: FILE_ATTRIBUTE_PINNED 0x00080000 FILE_ATTRIBUTE_UNPINNED 0x00100000 FILE_ATTRIBUTE_RECALL_ON_OPEN 0x00040000 FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS 0x00400000 as well as some file attributes inherited from previous versions of Windows: FILE_ATTRIBUTE_SPARSE_FILE 0x00000200 [...] read more
winapi
attributes
onedrive
ntfs
reparsepoint
3votes
4answers

could logical negation have been implemented as bitwise negation in legacy compilers?

I just found legacy code which tests a flag like this: if( some_state & SOME_FLAG ) So far, so good! But further in code, I see an improper negation if( ! some_state & SOME_FLAG ) My understanding is that it is interpreted as (! some_state) & SOME_FLAG which is probably [...] read more
c
3votes
0answers

Change float double and 4 bytes values. C#

I am currently creating a program which can modify addresses, but I can't seem to get it working. I have multiple addresses in a Cheat Engine file but I want it to be editable from a C# form. The things I've tried are this: myMemory.ReadProcess = pname1[0]; myMemory.Open(); int[] a [...] read more
c#
2votes
2answers

Hard drive failure - Could unused sectors be fine?

So we had a hard drive failure today and it got me thinking. It was a 200GB, sata, hard drive and since it was installed there has only been one 20 GB ext2 partition on that drive. Could the rest of the drive be fine? No other partitions on that [...] read more
hard-drive
2votes
2answers

Windows 10 drops IKEv2 VPN connection to Cisco router in exactly 60 seconds after last data exchange

Update 3: 22 January 2017 I've narrowed down the update that causes this problem: KB3201845 OS Build 14393.479 from December 9 2016. I went through all these updates step by step. Looking at the changes files manifest, these files have been changed: * agilevpn.sys * vpnike.dll Other topics I've created: [...] read more
networking
windows-10
vpn
2votes
2answers

Programmatically change windows resolution

I am using the following code segment to change the screen resolution of windows via python and it works fine for 1366x768, 1024x768, 800x600 resolutions. But it is not working for 1440x810 resolution. What is wrong here? import ctypes import struct import sys def set_res(width, height, bpp=32): DM_BITSPERPEL = 0x00040000 [...] read more
python
windows
screen-resolution
2votes
1answer

Capturing PTP packets with Linux raw socket

I want to implement a C program that captures all the Precision-Time-Protocol (PTP) frames on the Ethernet, so I created a raw socket and attached a filter for PTP, I use recvmsg() to read data from the socket. The first issue is that I wasn't receiving any PTP frames so [...] read more
linux
ethernet
raw-sockets
bpf
2votes
0answers

Does "Webcam capture API" work with AdoptOpenJDK 11?

I am writing a simple webcam recorder using Webcam Capture API, Xuggler and Java's Sound API. I've been using JDK 1.8 for this project and almost completed it. I am able to record video with audio using those libraries. But when I switch to AdoptOpenJDK 11 (jdk-11.0.4.11-openj9) and run the [...] read more
java
javafx
segmentation-fault
webcam-capture
2votes
0answers

Understanding Context Switches in Xenomai-Linux POSIX skin

I'm running a RT program on BeagleBone Black with Xenomai and trying to figure how to monitor/understand context switches (I know the concept of context switches) so that I can determine when my program (in C using POSIX skin) switches from primary and secondary mode. Here's the program main_posix.c #ifndef [...] read more
c
linux
posix
beagleboneblack
xenomai
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
3answers

What are offsets in Assembly and how do I use them?

In the code below, the person points a register at an address, I get that. Why is it that later on he didn't just load R3 into R1, why did it have to be offset by 0x14? How did R1 move in a few lines of code and what made [...] read more
assembly
arm
2votes
1answer

How to get password failure count of crypto token (Smartcard) using PKCS11Interop

I have .Net application to interact with the crypto token (Smartcard) using PKCS11Interop library where users can login to the token and generate keypair and sign. If users enter the wrong password multiple time token will be locked, how can I get the remaining number of attempt to login to [...] read more
pkcs#11
pkcs11interop
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
1answer

Cross g++ compiler linker error

I am using Eclipse to cross compile a g++ project for an ARM processor. I am using the yagarto toolchain in a Windows environment. I have no issues with C projects, but with C++ I keep receiving the errors: libc.a(lib_a-abort.o): In function `abort': abort.c:63: undefined reference to `_exit' libc.a(lib_a-sbrkr.o): In [...] read more
c++
c
arm
eclipse-cdt
atmel
1vote
0answers

iptables redirect stop working after time

I have iptables rules that allows people to connect to Windows VPN. iptables -L -n -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1723 to:10.1.1.10:1723 DNAT 47 -- 0.0.0.0/0 0.0.0.0/0 to:10.1.1.10 DNAT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:1701 to:10.1.1.10:1701 DNAT udp [...] read more
debian
iptables
1vote
2answers

Virtual console size increased after upgrading to RHEL 6.8

After updating some VMware virtual machines to RHEL 6.8 (kernel 2.6.32-642) it appears that the size of the virtual console has been increased -- it is huge. No X server is running in the console, i.e., it is a classical text-based linux console. When I log in through the virtual [...] read more
vmware-esxi
rhel6
console
1vote
2answers

How to analyze system calls when your disk is in read only and strace output is "Bus error"?

We have a HW problem with the disks, that made all the mount points to be read only. Output of dmesg: end_request: I/O error, dev sda, sector 15574609 sd 0:0:0:0: SCSI error: return code = 0x00040000 We want to analyze a program that is currently running, because it should have [...] read more
unix
io
debug
strace
1vote
1answer

kernel: scsi 0:0:0:0: rejecting I/O to dead device

Yesterday, OSSEC sent me an alerting email: Jul 29 21:25:16 SVR4149 kernel: end_request: I/O error, dev sda, sector 334634969 Jul 29 21:25:16 SVR4149 kernel: sd 0:0:0:0: SCSI error: return code = 0x00040000 Jul 29 21:25:16 SVR4149 kernel: end_request: I/O error, dev sda, sector 334634977 Jul 29 21:28:28 SVR4149 kernel: sd [...] read more
scsi
io
controller
1vote
1answer

bootlin kernel doesn't boot from UBIFS

Following bootlin embedded linux course and faced an issue (similar to UBI layout volume not found but my problem is further than original one) I am creating rootfs and data volume images: mkfs.ubifs -d ./www/upload -o ../data.ubifs -e 124KiB -m 2048 -c 66 mkfs.ubifs -d ./ -o ../rootfs.ubifs -e 124KiB [...] read more
linux-kernel
boot
ubifs
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

Error with package com.sun.glass.ui while learning Java Native Access

I am trying to use an Undecorated stage in a JavaFX project, stage.initStyle(StageStyle.UNDECORATED);. It is a modular Gradle project. It is also a multi-project build, though because I am working on it in IntelliJ, it might be more appropriate to refer to it as a multi-module build. I wish to [...] read more
java
javafx
jna
module-info
1vote
0answers

PLL turning on when debugging on STM32F767 Nucleo

I have been scratching my head for the past 2 days trying to figure out what is wrong with my very simple UART program on System Workbench for STM32 from STMicroelectronics. For some reason when I set: USART3->BRR = (16000000/9600); //Sets the baud rate to 9600 with a clock of [...] read more
debugging
stm32
1vote
3answers

Having trouble converting external Windows Crypto API calls from C# to F#

I've got some working C# code to work with some Windows API calls (based on my Get-CertificatePath.ps1 PowerShell script), but the F# version fails. I'm sure I'm missing something, most likely an attribute, but I haven't been able to figure it out. Is there a way to get the F# [...] read more
winapi
f#
cryptoapi
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

Why I don't receive any packets using BPF with udp socket?

GOAL: write a BPF filter which allow just UDP packets from a specific src address and attach it to and UDP socket. PROBLEM: if I execute the program and I try to send udp packets from a VM which has the correct src IP I don't receive none of them [...] read more
c
sockets
udp
bpf
1vote
0answers

How to remove 'white area on the borderless window top side' builded Unity project

I am trying to make resizable borderless Unity project. I have no problem to make borderless window but when I try to make resizable it works however a white area appears at the top https://imgur.com/8nNWpN3 [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hWnd, int nIndex, uint dwNewLong); private const int GWL_STYLE [...] read more
c#
windows
unity3d
user32
borderless
1vote
1answer

Generated binary file from elf file explodes if NOLOAD is removed from section

We have a linker script with a custom section that was added for some IEC compliance test reasons. However, ever since adding this section the binary size created via objcopy -O binary input output has exploded from ~150kbytes to ~ 512Mbytes. I've traced it down to the section missing the [...] read more
gcc
linker
linker-scripts
objcopy
1vote
1answer

Buffer Overflow shellcode overwriting wrong address

> NOTE: This is a modified version of my original post here but poses a slightly > different question. I am going through this video on buffer overflows but am having some trouble replicating the demo. The issue appears to be when I execute the overflow the intended return address [...] read more
c
security
buffer-overflow
shellcode
1vote
2answers

What does fields in method table mean in this example?

I am trying to understand information stored in the method table. Here is my code. class MyClass { private int x = 60; private int y = 90; public void MethodB() { Console.WriteLine("MethodB"); } public void MethodC() { Console.WriteLine("MethodC"); } public void MethodA() { GetHashCode(); Monitor.Enter(this); Console.WriteLine("Attach debugger now"); Console.ReadKey(); [...] read more
c#
clr
windbg
sos
1vote
0answers

FSCTL_LOCK_VOLUME and WriteFile fail

I've created a small app to make backups of disks and to restore a disk from a backup. The logic is pretty simple: * Call CreateFile on \\.\PhysicalDrive<index> * Do the same for destination physical drive * Call DeviceIoControl with FSCTL_LOCK_VOLUME on source + destination handles * Call DeviceIoControl with [...] read more
c#
powershell
winapi
pinvoke
1vote
1answer

ADC interrupt not getting called

I want ADC Interrupt Service Routine to be called after each End of Conversion. However it is not being called. Here's is my code: #define RCC_APB2ENR (*((volatile unsigned long*) 0x40021018)) #define ADC1_CR1 (*((volatile unsigned long*) 0x40012404)) #define ADC1_CR2 (*((volatile unsigned long*) 0x40012408)) #define ADC1_SMPTR2 (*((volatile unsigned long*) 0x40012410)) #define ADC1_SQR1 [...] read more
c
keil
adc
isr
1vote
1answer

Spring boot shut downs (really) immediately on remote server with no error

I have built a jar of a spring application using package maven plugin. Locally, I can run it with java -jar -Dspring.profiles.active=dev target/my.jar and everything works. Then I copied the jar to a remote server using scp, logged in with ssh, copied all resources which my application requires and tried [...] read more
java
spring
spring-boot
deployment
1vote
1answer

Linker script :: Dynamic Memory section

I would like to have a dynamic Memory map, like example to have flash spliced in 5 sections and according to a define in some file .h to set a proper memory map. But have some problems to do it :) So this region would be dynamic allocated by defines [...] read more
embedded
linker-scripts
1vote
3answers

How to check if a TRUSTEE is me

I'm using the GetSecurityInfo funtion to get my own process's Discretional Access Control List (DACL): PACL oldAcl; Pointer se; GetSecurityInfo(GetCurrentProcess, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, null, null, ref oldAcl, nil, ref se); And then i can use the GetExplicitEntriesFromAcl to crack open the ACL to get at it's list of Access Control Entries [...] read more
windows
security
winapi
1vote
0answers

Access denied in SharePoint 2010

Some of the users are getting following access denied error upon looking in sharepoint logs. These users were earlier able to access the SharePoint site. But all of sudden they are getting "An Unexpected error has occured". PermissionMask check failed. asking for 0x00000005, have 0x400000300C231061 PermissionMask check failed. asking for [...] read more
sharepoint-2010
1vote
2answers

Can't Build OpenJFX with Eclipse OpenJ9+181

The new Eclipse J9 jvm does not come bundled with JavaFX, so I have tried to build OpenJFX but have failed. I believe I have followed all the build instructions on the OpenJFX website. I have Gradle 3.1, Ant, and the required libraries installed. I'm running Fedora 26. J9 appears [...] read more
java
eclipse
javafx
openj9
1vote
1answer

ClearQuest java api in websphere application

I'm developing a web application that access a clearquest database via the Java API. It works fine under Tomcat. Now I have to convert that application to WebSphere Application Server 8.5.5. At the first call to Clearquest the application and the JVM terminates: Unhandled exception Type=Segmentation error vmState=0x00040000 J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 [...] read more
java
java-native-interface
websphere-8
clearquest
ibm-jvm
1vote
1answer

AnimateWindow have no effect on maximazed form c#

I'm trying to animate the form on loading. I used AnimateWindow: public partial class AdministrationMDI : Form { [DllImport("user32")] static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags); public AdministrationMDI() { InitializeComponent(); } enum AnimateWindowFlags : uint { AW_HOR_POSITIVE = 0x00000001, AW_HOR_NEGATIVE = 0x00000002, AW_VER_POSITIVE = 0x00000004, AW_VER_NEGATIVE = 0x00000008, [...] read more
c#
animatewindow
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
0answers

Slow booting process after adding mem=16M in boot parameters

My linux-3.0 kernel was panicking saying ERROR: Failed to allocate 0x1000 bytes below 0x0. while booting. So I changed the bootargs and added a boot parameter mem = 16M. Now it boots fine but it takes a lot of time to boot. I have tried with higher mem value also [...] read more
linux-kernel
arm
linux-device-driver
embedded-linux
armv7
1vote
1answer

Creating a new dekstop using the Win32 API in Windows 8

I'm trying to write an application which will creates a new desktop using the Win32 API. The below code works in Windows 7 but but in Windows 8 the desktop is created with out the desktop icons and with an empty taskbar. public class Desktop { private const int NORMAL_PRIORITY_CLASS [...] read more
winapi
1vote
1answer

Access Other Process Memory

This line doesn't work in my code now here is the code and error uint PROCESS_ALL_ACCESS = (DELETE | READ_CONTROL | WRITE_DAC | WRITE_OWNER | SYNCHRONIZE | END); A field Initialize cannot reverence the non static field Here is the article i made this from: http://blackandodd.blogspot.com/2012/12/c-read-and-write-process-memory-in.html public class MAin { [...] read more
c#
memory
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
1vote
1answer

Eclipse RCP application crashes when using scroll in a SWT file browser

My Eclipse(version 3.7.2 32 bit) RCP application crashes on an RHEL 7 machine every time I open file browser and scroll through the folders list to select a folder--by scroll I mean: clicking on the navigation scroll bar on the right side of the file browser, or even typing the [...] read more
eclipse
swt
eclipse-rcp
jvm-crash
rhel7
1vote
2answers

Regex matching two strings in one group

I'm trying to match two strings from a text file.I wrote a function to perform the matching for both strings. Only one string is printed and the other one is ignored although the sequence works : matched the string and tested with an online regex tester. NVRAM_info.txt NvRam is available, [...] read more
regex
python-3.x
1vote
0answers

Disable all gestures in app on Windows multi touch device (e.g. MS Surface)

I have PyQt test application which opens window. I use event filter to disable all gestures on MS Surface for my application. Some guestures (e.g. "Press and hold") are not recognized now, but not all. If one finger presses the screen and you press a second finger, transparent square appears [...] read more
windows
qt
winapi
1vote
1answer

How to work with integer flags

I am trying to set an integer variable to a combination of an enum values, the enum is: public enum WebBrowserDownloadControlFlags : uint { DLIMAGES = 0x00000010, VIDEOS = 0x00000020, BGSOUNDS = 0x00000040, NO_SCRIPTS = 0x00000080, NO_JAVA = 0x00000100, NO_RUNACTIVEXCTLS = 0x00000200, NO_DLACTIVEXCTLS = 0x00000400, DOWNLOADONLY = 0x00000800, NO_FRAMEDOWNLOAD = [...] read more
c#
enums
0votes
2answers

Mount RootFS error: VFS: Cannot open root device “mtdblock4” or unknown-block(0,0)

My MTD partition is: Creating 5 MTD partitions on "Physically mapped flash": 0x00000000-0x00040000 : "UBoot" 0x00040000-0x00060000 : "BDINFO" 0x00060000-0x00100000 : "JFFS2" 0x00100000-0x00380000 : "Kernel" 0x00380000-0x00800000 : "Rootfs" Kernel command line is: Kernel command line: console=ttyS0,115200 mem=32M noinitrd root=/dev/mtdblock4 rw rootfstype=squashfs Now, error occurs when mount the root file system, kernel [...] read more
linux
rootfs
0votes
1answer

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
linux
embedded-linux
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
0answers

Runtime Error: undefined symbol: _ZN11IO_Expander14channel_selectEih

I have 3 files: a .cpp file containing definitions, a header file for declarations and macros and another file(.cc) that calls the header file. The problem I'm having is at runtime I seem to be getting an "undefined sysmbol error related to the function "channel select" that I'm trying to [...] read more
c++
compiler-errors
linker
runtime-error
undefined-symbol
0votes
0answers

Read Protected program memory with .sys driver c#

Sorry i am very newer in this part and i am going to confuse every step ... I Want to read a protected memory that need to bypass protection to enter. I have a hookdriver.sys file and want to bypass the protection and read How can i connect the hookdrv.sys [...] read more
c#
kernel
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

Remove title bar and border when hosting Putty.exe on WPF program

I'm trying to hosting an exe(Putty) on the WPF program by using WinfowsFormsHost and success, here is the code: [DllImport("user32")] static extern IntPtr SetParent(IntPtr hWnd, IntPtr hWndParent); //Putty.exe has been start by cmdline and here is the `process` public void AddPuttyPage(Process process) { var picPan = new System.Windows.Forms.Panel(); var winform [...] read more
c#
wpf
0votes
1answer

How to run exe application inside wpf application?

My question is how to run an application(.exe) inside WPF application. I mean running inside a window of an application, not an external running an application, in this code notepad work but if change .exe file (e.g calc.exe) application open in exte private Process _process; [DllImport("user32.dll")] private static extern int [...] read more
c#
wpf
0votes
1answer

Tkinter overridedirect (minimizing and windows task bar issues)

What I'm trying to achieve is a Tkinter window, using overridedirect, that show up in your taskbar. You can minimize it like a normal window, and bring it back up like a normal window. The problem that I'm having right now is that I've achieved adding it to the taskbar, [...] read more
python
tkinter
window
0votes
1answer

How change icon shown in task bar

I have this code in this code I have do custom design but when I try to change the icon it is not changing import tkinter as tk import tkinter.ttk as ttk from ctypes import windll GWL_EXSTYLE=-20 WS_EX_APPWINDOW=0x00040000 WS_EX_TOOLWINDOW=0x00000080 def set_appwindow(root): hwnd = windll.user32.GetParent(root.winfo_id()) style = windll.user32.GetWindowLongW(hwnd, GWL_EXSTYLE) style = [...] read more
python-3.x
0votes
0answers

how to translate from udev path to ACPI Device

I have a PCI device as follows > DEVPATH=/devices/pci0000:00/0000:00:0c.0/0000:04:00.0 % lspci -s 04:0 04:00.0 Non-VGA unclassified device: This publishes multiple i2c buses. So am attempting to learn how to translate this to ACPI. Investigation so far % cat /sys/bus/pci/devices/0000\:00\:0c.0/firmware_node/path \_SB_.PCI0.PEX3 So, I create the device within the scope of this [...] read more
linux-device-driver
device-tree
acpi
0votes
1answer

How to create an Outlook .msg file with Redemption C# that has an HTML body?

I can't seem to get any formatting when creating a HTML format .msg file. The text shows up in the body but the HTML formatting is not applied. Any suggestions? RDOSession rdoSession = new RDOSession(); rdoSession.Logon(); // Start with a seed.msg File.Copy(@".\seed.msg", @".\test.msg", true); RDOMail rdoMail = rdoSession.GetMessageFromMsgFile(@".\test.msg", false); // [...] read more
outlook-redemption
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
2answers

not able to figure out what is wrong with my nodemcu code

#include <ESP8266WiFi.h> #include <FirebaseArduino.h> //Firebase settings #define FIREBASE_HOST "..........firebaseio.com/" //cant share #define FIREBASE_AUTH "..............." //cant share //Wi-Fi settings #define WIFI_SSID "kello" #define WIFI_PASSWORD "8888" //Define trigger and echo digital pins const int trigPin = 4; const int echoPin = 3; // The amount of time the ultrassonic wave will be [...] read more
arduino
nodemcu
0votes
1answer

Embed the main window of a qt/C++ application in a wpf/mvvm application

I need to embed a qt/c++ application in a wpf mvvm application. The window of this qt/C++ has to be integrated in a wpf page displayed in a tab page. The page Control is the following : <page x:Class="Wpf_HostExe.Page1" xmlns:="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Page1" Loaded="OnLoaded"> <Grid> <Border x:Name="HostUi" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> [...] read more
c#
.net
wpf
qt
winapi
0votes
0answers

Why the size of the address in the stack is greater than the size of saved eip's address?

With gdb i want to put this adress 0x7fffffffe0f0 in rip register to succeed my buffer overflow. The issue is that the size of this address (0x7fffffffe0f0) is greater than the address where the rip register is saved (0x00ffff10). Why the address in the stack is greater than the saved [...] read more
assembly
gdb
x86-64
0votes
1answer

First time gcc linker script for microcontroller compiles but doesn't run

I created my first gcc linker script for a SAMD51J19 microcontroller through atmel studio and it compiles great without issues but when loaded into the device weird quirky errors happen. Sometimes it hard-faults, sometimes it doesn't, sometimes interrupts aren't sent to the handler, sometimes they are. Sometimes functions are run [...] read more
c++
gcc
embedded
atmel
linker-scripts
0votes
2answers

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
linux
linux-kernel
embedded-linux
u-boot
0votes
6answers

How to convert Hex to IEEE 754 32 bit float in C++

I am trying to convert hex values stored as int and convert them to floatting point numbers using the IEEE 32 bit rules. I am specifically struggling with getting the right values for the mantissa and exponent. The hex is stored from in a file in hex. I want to [...] read more
c++
c
floating-point
ieee-754
0votes
0answers

Use Control Send and Control Click In AutoIT to Automate Background Processes

I'm having Issue getting AutoITv3 to send a Control Down key stroke to a background program using the ControlSend function. I've been successful in getting the ControlClick function to work as shown below. I've tried using both the ClassnameNN and the Class as the Control ID, both Failed. I've also [...] read more
automation
autoit
0votes
1answer

Write packet filtering program in ebpf

If I want to write a cBPF program which filter icmp packet I can do it by execute tcpdump with -dd option which > Dump packet-matching code as a C program fragment. ..see the example below How can I write the same program with eBPF instructions ? #include <sys/socket.h> #include [...] read more
packet
bpf
ebpf
0votes
1answer

Why this program which use BPF and RAW SOCKET just hangs?

GOAL: write a simple packet filter using BPF. The packet filter should allow you to choose the interface. PROBLEM: if I uncomment the third to last instruction in the code (where there is a call to recvfrom, the execution just hangs and I can't see no output (neither "buffer zeroed" [...] read more
sockets
bpf
0votes
1answer

How to check for application request found in bootloader project

Iam doing a Bootloader for an arm cortex m0 based microcontroller and for that I have gone through some projects in github and I donot understand some of the lines in the following code. What is the meaning of the line *(__IO uint32_t*)APP_ADDRESS) & ~(RAM_SIZE-1) in the following code. It [...] read more
c
bootloader
cortex-m
0votes
1answer

How to use PathCreateFromUrlA API

I need to convert a uri path like file:///C:/test folder/file.text to windows style path C:/test folder/file.text. For that, I am trying to use PathCreatesFromUrlA API using the following code but I just don't understand how to set up the last two parameters to the API (marked as ??? in the [...] read more
c++
windows
visual-studio
uri
0votes
1answer

I need to use stm uart module

I would like to use usart communication on STM by using following code. I take this code from website.There are two buffers that stores rx and tx values. I can transmit data from tx buffer but when I connect GPIOB10 and GPIOB11(rx and tx pins) each other. I couldn't see [...] read more
c
uart
stm32f4discovery
0votes
1answer

certain parts of injected string are missing on stack frame

I'm trying return-to-libc exploit on simple program. I've managed to locate stack address where input string is stored, and locations of libc functions and build my payload base on it. [padding(252-byte)] + [system(4-byte)] + [exit(4-byte)] + [argument(4-byte)] I opened the vulnerable program with gdb and injected payload. When I check [...] read more
c
gcc
gdb
buffer-overflow
0votes
1answer

Unable to access Znyq AXI BRAM from Linux

In my project, data is written to a BRAM (generated through the Block Ram IP generator) from a custom IP. Then, I use an AXI BRAM controller to interface the memory with the AXI bus and make it accessible to the Linux running on the ARM. The base address for [...] read more
memory
embedded-linux
fpga
xilinx
zynq
0votes
1answer

Segmentation Fault ret2libc attack

i am trying to execute a ret2libc attack. For this, i need to call the System() from libc and passing the argument "/bin/sh" (address of /bin/sh). Unfortunately I get everytime "Segmentation Fault". Please can anybody tell me why? If I am looking to the stack, everything looks fine (for me). [...] read more
segmentation-fault
exploit
0votes
0answers

Program Blocked by Group Policy - Windows 7

I am facing issue while running a EXE. I ahve tried all possible way avialble on net as far as I did research. 1) Go to gpedit.msc-computer configuration-windows settings-security settings-local policies-security options.Change "User Account Control: Behavior of the elevation prompt for standard users:" to "prompt for credentials". 2) I tried [...] read more
windows-7
executable
windows-7-x64
group-policy
settings
0votes
2answers

GNU linker ARM - why my sections overlap?

I need to add a small heap to use standard library functions on a TM4C ARM microcontroller (_sbrk requires the end symbol). This is my linker script (came with a microcontroller demo): /* Entry Point */ ENTRY(Reset_Handler) HEAP_SIZE = 1024; MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = [...] read more
gcc
arm
ld
linker-scripts
0votes
2answers

C# wrapper for C++ deezer library : PLAYLIST_TRACK_NO_RIGHT

I'm currently trying to make deezer wrapper for native library to work. It works until it tries to play the track : I got a callback saying PLAYLIST_TRACK_NO_RIGHT. I've tried to read this track with online deezer website and it works well. I also tried with another tracks that works [...] read more
c#
c++
deezer
0votes
2answers

C# BackupRead, BackupWrite - System.AccessViolationException

I am trying to get BackupRead() and BackupWrite() to work using http://pinvoke.net as my reference. Most answers I find in google are referencing C++ or even Delphi... I want to backup a file/folder with their ACL. EDIT: This is my current code (I am setting privileges for SE_BACKUP_NAME and SE_RESTORE_NAME [...] read more
c#
winapi
pinvoke
0votes
1answer

LD and NOLOAD sections: Understanding strange LMA value

I'm writing a baremetal kernel, and I have trouble understanding the output of ld in the case of a NOLOAD section. I am declaring symbols that only exists with MMU activated, so the VMA and LMA are not the same. I used to declaring such a section like this: _foobar_start [...] read more
linker
ld
linker-scripts
0votes
1answer

Unrecognized jedec id

On linux 2.6.25 i have output: physmap platform flash device: 00800000 at ff800000 physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code [...] read more
c
linux
linux-kernel
linux-device-driver
spi
0votes
1answer

Host external app in a WPF panel

I am trying to host/run an Exe application within a panel inside of the main window of my program. The main window has a grid with 3 columns - two columns split evenly with a vertical grid splitter to section the left and right columns. The left column has a [...] read more
c#
wpf
window
exe
hwnd
0votes
1answer

HwndHost doesn't display content when Desktop Composition is enabled

I'm using HwndHost to embed an external application in my WPF window. I noticed on some Windows 7 machines, if an Aero Theme is selected and Desktop Composition is enabled, the external application starts, flickers on the screen for a split second and then it disappears. If I turn off [...] read more
wpf
hwndhost
0votes
1answer

Memory overlap in DS-5 when implementing code for arm Cortex-A9

I am already stuck for many days trying to implement a code in DS-5, targeting Cortex-A9 and using NEON SIMD intrinsics. I managed to execute some small programs through the debugger, but when I am trying to allocate memory bigger than 256KB I always get a message > Description Resource [...] read more
c
arm
neon
ds-5
0votes
1answer

Data race during nested thread creation

While trying to create nested threads, helgrind reports several different types of data races. ==4429== Possible data race during write of size 8 at 0x5673830 by thread #13 ==4429== Locks held: none ==4429== at 0x4C379EF: memset (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so) ==4429== by 0x5060C85: get_cached_stack (allocatestack.c:250) ==4429== by 0x5060C85: allocate_stack (allocatestack.c:501) ==4429== by [...] read more
c
multithreading
pthreads
valgrind
0votes
1answer

How to dereference a specific address in memory through dereferencing another address in memory?

I'm using a bootloader as a hex and s19 files in my project, so i'm not allowed to modify its content. In this bootloader there is a part implemented in the following way to verify if my application is a valid application: #define CHECK_PATTERN_ADDRESS ((int32)0x00020000) #define VALID_PATTERN ((int16)0xE900) #define VALID_PATTERN_MASK [...] read more
c++
c
assembly
embedded
bootloader
0votes
1answer

c# ReadProcessMemory - Reading address with a known value

Edit I found that my handle is returning a value of zero. Is it not detecting the process? Edit 2 Shortened the code and found the problem. Answer posted. -------------------------------------------------------------------------------- Okay, so let's jump right in. I am attempting to read the value of an address that I know the [...] read more
c#
memory
offset
type-conversion
memory-address
-1votes
1answer

What do the Mutex and Cache sqlite3_open_v2 flags mean?

EDIT: If I could navigate documents I'd be dangerous. http://www.sqlite.org/sharedcache.html ORIGINAL: The sqlite3_open_v2 function bears the signature: int sqlite3_open_v2( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb, /* OUT: SQLite db handle */ int flags, /* Flags */ const char *zVfs /* Name of VFS module to use [...] read more
c
database
sqlite
mutex
-1votes
1answer

i hope access the symbol table in python

First of all, since the writing is long, I say the apology first. I'm studying symbol table in Python and trying to extract the memory address of symbols by directly accessing the symbol table (without id()). So I referenced Eli bendersky's blog. I understand that PySTEntry_Type manages the symbol table(or [...] read more
python
memory-management
memory-leaks
memory-address
symbol-table
-1votes
1answer

Segmentation Fault during Exploit

I tried to execute a shellcode with buffer overflow. Unfortunately I get a segmentation error. In the following the c code asm code and exploit code: C Code: int main(int argc, char **argv) { char buffer[64]; gets(buffer); } ASM Code: 0x000055555555463a <+0>: push rbp 0x000055555555463b <+1>: mov rbp,rsp 0x000055555555463e <+4>: [...] read more
segmentation-fault
exploit
shellcode
-1votes
1answer

CreateWindowEx failing with error 1400

The title says it all. I'm just trying to create a window using CreateWindowEx in assembly and the call is failing with error 1400 (Bad Window Handle). I've verified that no other API calls are failing and DefWindowProc is returning 0 (pass) for WM_CREATE. The parameters going to CreateWindowEx look [...] read more
winapi
nasm

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0