drive

Write my own version of DebugView

为君一笑 提交于 2019-12-24 10:45:55
问题 I wrote a Windows driver (file system). All my logs print by the DbgPrint function. With the DebugView program ( Capture Kernel - on) I can see all my logs. I want to show/save its logs. So, I want to listen to kernel messages. I tried to write some: struct DbWinBuffer { DWORD dwProcessId; char data[4096 - sizeof(DWORD)]; }; DbWinBuffer* dbBuffer; HANDLE hAckEvent; HANDLE hEvent; HANDLE hSharedFile; SECURITY_DESCRIPTOR sd; SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa

verilog driving signals on the same wire

做~自己de王妃 提交于 2019-12-23 23:13:25
问题 I looked through internet and couldn't find a clear and concise answer to my question. I want to know what'll happen if I drive same strength signals onto the same wire, one of them being logic 1 and the other being logic 0? What do I do if I want a signal to "win", for lack of a better word, depending on the situation? 回答1: Based on your comment, it sounds like you want a three-state bus. The basic structure to drive a three-state bus is: assign bus = enable ? out : 1'bz; Each module driving

Rename a mapped drive with shell API

荒凉一梦 提交于 2019-12-23 17:34:48
问题 How can I change the friendly name of a mapped drive using the Windows shell API and C#? My actual problem is that I am dealing with a disconected network drive without a UNC path, so the only way to rename it is from Explorer, but I want to do that programmatically. 回答1: I had a similar problem and solved it using the following code: Shell32.Shell shell = new Shell32.Shell(); ((Shell32.Folder2)shell.NameSpace("X:")).Self.Name = "Friendly Label"; With a reference to COM --> Microsoft Shell

Install Visual studio 2015 in different drive

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:45:50
问题 I have no space in my C drive. I want to install VIsual studio 2015 in D drive. But when i click exe file and run it shows the C drive path only.. How can i install in C drive ? Can anyone help me to done this? Thank you.. 回答1: This is because once a set of shared components is installed, we install all the other components to the same directory structure. The workaround is to find the products that also installed these shared components and remove them, follow the steps as below extract from

determine if drive is removable (flash or HDD) knowing only the drive letter

点点圈 提交于 2019-12-23 02:20:46
问题 I am trying to determine if a file is on a local drive. I found GetDriveType() WINAPI which retrieves the drive type. However reading the description of the return values it seems, and thats how I understand it, that it retrieves a flash drive as FIXED which is not what I want. Its working fine on local drives: bool IsDriveRemovableOrRemote(CString driveRoot) { UINT driveType = GetDriveType(driveRoot); return (DRIVE_REMOVABLE == driveType || DRIVE_CDROM == driveType || DRIVE_NO_ROOT_DIR ==

How to get drive information by volume id

痴心易碎 提交于 2019-12-22 04:30:12
问题 I have a txt file with volume id's in it. I need to get drive info (drive letter, drive size, etc.) from the drive volume id (Windows): the volume id is in the following format: \\?\Volume{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} The drive can be Removable/local disk It doesn't matter how the info is retrieved (it could be script, cpp ,c#, java code). EDIT: I tried to use DriveInfo, Win32_LogicalDisk, Win32_Volume, Win32_PnpDevices - but I couldn't find this weird id... in all cases the id has a

Windows: What happens if I finish drive letters? (they are 26!) [closed]

蓝咒 提交于 2019-12-20 09:12:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What happens if I finish the drive letters? It's just curiosity, but I have a lot of letters and it happens that I float around 20 when I have everything connected 回答1: This image is not mspaint. I subst'ed all drives, even B: Then, I plugged a card reader that has 4 drives. Nothing showed up! So, the answer to

How to Create a Virtual Windows Drive

筅森魡賤 提交于 2019-12-20 08:41:16
问题 I'm trying to create a Windows Virtual Drive ( like c:\ ) to map a remote storage. The main purpose is to do it in a clear way to the user. Therefore the user wouldn't know that he is writing/reading from another site. I was searching for available products, and i find that FUSE is not an option in Windows and WebDAV maps directly the drive, and i would like to build a middle layer between windows and remote storage to implement some kind of services. Another alternatives exists, such as

‘error 26 - error locating server’ when launching C# exe located on NW drive from Win7; MSSQL

情到浓时终转凉″ 提交于 2019-12-20 04:07:58
问题 I have several C# programs utilizing LINQ to SQL classes . If I put the exe files on a network drive and execute them from there, I get the ‘ error 26 ’, but only when I do it from Win7 . Step by step Create a new C# project (I use VS 2010 Premium on an XP machine). Add new ‘LINQ to SQL classes’. Drag and drop some table into the data context (from the server explorer). The database(s) I’m using are all MSSQL on remote servers. On the question: “The connection string contains credentials with

PHP is_dir() returns false on Windows network drive

不打扰是莪最后的温柔 提交于 2019-12-19 17:30:23
问题 I have a network drive mapped to drive letter X:\ going to an external hard drive with the path of "\\X-Drive\Public\Data". I am using Zend Server with Apache. My PHP command is simple $isFolder = is_dir("x:/"); echo($isFolder); //FALSE Things you should know: The code: $isFolder = is_dir("c:/"); echo($isFolder); //TRUE works as expected. I am running the Zend Apache service as an administrator user. I know this is working properly because in Task Manager the httpd.exe process shows the